{
   "library" : {
      "annotation" : [ {
         "translatorOptions" : "EnableAnnotations,EnableLocators,DisableListDemotion,DisableListPromotion",
         "type" : "CqlToElmInfo"
      }, {
         "type" : "Annotation",
         "t" : [ {
            "name" : "author",
            "value" : "Bryn Rhodes"
         }, {
            "name" : "description",
            "value" : "This library defines functions to expose extensions defined\nin QICore as fluent functions in CQL, as well as common terminology and functions\nused in writing CQL with FHIR and QICore profiles."
         } ],
         "s" : {
            "r" : "816",
            "s" : [ {
               "value" : [ "/*\n@author: Bryn Rhodes\n@description: This library defines functions to expose extensions defined\nin QICore as fluent functions in CQL, as well as common terminology and functions\nused in writing CQL with FHIR and QICore profiles.\n*/\n","library QICoreCommon version '4.1.0'" ]
            } ]
         }
      } ],
      "identifier" : {
         "id" : "QICoreCommon",
         "system" : "http://hl7.org/fhir/us/qicore",
         "version" : "4.1.0"
      },
      "schemaIdentifier" : {
         "id" : "urn:hl7-org:elm",
         "version" : "r1"
      },
      "usings" : {
         "def" : [ {
            "localIdentifier" : "System",
            "uri" : "urn:hl7-org:elm-types:r1"
         }, {
            "localId" : "1",
            "locator" : "9:1-9:26",
            "localIdentifier" : "FHIR",
            "uri" : "http://hl7.org/fhir",
            "version" : "4.0.1",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "1",
                  "s" : [ {
                     "value" : [ "","using " ]
                  }, {
                     "s" : [ {
                        "value" : [ "FHIR" ]
                     } ]
                  }, {
                     "value" : [ " version ","'4.0.1'" ]
                  } ]
               }
            } ]
         } ]
      },
      "includes" : {
         "def" : [ {
            "localId" : "2",
            "locator" : "11:1-11:35",
            "localIdentifier" : "FHIRHelpers",
            "path" : "http://hl7.org/fhir/us/qicore/FHIRHelpers",
            "version" : "4.0.1",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "2",
                  "s" : [ {
                     "value" : [ "","include " ]
                  }, {
                     "s" : [ {
                        "value" : [ "FHIRHelpers" ]
                     } ]
                  }, {
                     "value" : [ " version ","'4.0.1'" ]
                  } ]
               }
            } ]
         } ]
      },
      "codeSystems" : {
         "def" : [ {
            "localId" : "3",
            "locator" : "13:1-13:38",
            "name" : "LOINC",
            "id" : "http://loinc.org",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "3",
                  "s" : [ {
                     "value" : [ "","codesystem ","\"LOINC\"",": ","'http://loinc.org'" ]
                  } ]
               }
            } ]
         }, {
            "localId" : "4",
            "locator" : "14:1-14:47",
            "name" : "SNOMEDCT",
            "id" : "http://snomed.info/sct",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "4",
                  "s" : [ {
                     "value" : [ "","codesystem ","\"SNOMEDCT\"",": ","'http://snomed.info/sct'" ]
                  } ]
               }
            } ]
         }, {
            "localId" : "5",
            "locator" : "15:1-15:74",
            "name" : "RoleCode",
            "id" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "5",
                  "s" : [ {
                     "value" : [ "","codesystem ","\"RoleCode\"",": ","'http://terminology.hl7.org/CodeSystem/v3-RoleCode'" ]
                  } ]
               }
            } ]
         }, {
            "localId" : "6",
            "locator" : "16:1-16:83",
            "name" : "Diagnosis Role",
            "id" : "http://terminology.hl7.org/CodeSystem/diagnosis-role",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "6",
                  "s" : [ {
                     "value" : [ "","codesystem ","\"Diagnosis Role\"",": ","'http://terminology.hl7.org/CodeSystem/diagnosis-role'" ]
                  } ]
               }
            } ]
         }, {
            "localId" : "7",
            "locator" : "17:1-17:82",
            "name" : "RequestIntent",
            "id" : "http://terminology.hl7.org/CodeSystem/request-intent",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "7",
                  "s" : [ {
                     "value" : [ "","codesystem ","\"RequestIntent\"",": ","'http://terminology.hl7.org/CodeSystem/request-intent'" ]
                  } ]
               }
            } ]
         }, {
            "localId" : "8",
            "locator" : "18:1-18:106",
            "name" : "MedicationRequestCategory",
            "id" : "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "8",
                  "s" : [ {
                     "value" : [ "","codesystem ","\"MedicationRequestCategory\"",": ","'http://terminology.hl7.org/CodeSystem/medicationrequest-category'" ]
                  } ]
               }
            } ]
         }, {
            "localId" : "9",
            "locator" : "19:1-19:101",
            "name" : "ConditionClinicalStatusCodes",
            "id" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "9",
                  "s" : [ {
                     "value" : [ "","codesystem ","\"ConditionClinicalStatusCodes\"",": ","'http://terminology.hl7.org/CodeSystem/condition-clinical'" ]
                  } ]
               }
            } ]
         }, {
            "localId" : "10",
            "locator" : "20:1-20:107",
            "name" : "ConditionVerificationStatusCodes",
            "id" : "http://terminology.hl7.org/CodeSystem/condition-ver-status",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "10",
                  "s" : [ {
                     "value" : [ "","codesystem ","\"ConditionVerificationStatusCodes\"",": ","'http://terminology.hl7.org/CodeSystem/condition-ver-status'" ]
                  } ]
               }
            } ]
         }, {
            "localId" : "11",
            "locator" : "21:1-21:119",
            "name" : "AllergyIntoleranceClinicalStatusCodes",
            "id" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "11",
                  "s" : [ {
                     "value" : [ "","codesystem ","\"AllergyIntoleranceClinicalStatusCodes\"",": ","'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical'" ]
                  } ]
               }
            } ]
         }, {
            "localId" : "12",
            "locator" : "22:1-22:127",
            "name" : "AllergyIntoleranceVerificationStatusCodes",
            "id" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "12",
                  "s" : [ {
                     "value" : [ "","codesystem ","\"AllergyIntoleranceVerificationStatusCodes\"",": ","'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification'" ]
                  } ]
               }
            } ]
         } ]
      },
      "codes" : {
         "def" : [ {
            "localId" : "14",
            "locator" : "24:1-24:61",
            "name" : "Birthdate",
            "id" : "21112-8",
            "display" : "Birth date",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "14",
                  "s" : [ {
                     "value" : [ "","code ","\"Birthdate\"",": ","'21112-8'"," from " ]
                  }, {
                     "r" : "13",
                     "s" : [ {
                        "value" : [ "\"LOINC\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Birth date'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "13",
               "locator" : "24:34-24:40",
               "name" : "LOINC"
            }
         }, {
            "localId" : "16",
            "locator" : "25:1-25:55",
            "name" : "Dead",
            "id" : "419099009",
            "display" : "Dead",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "16",
                  "s" : [ {
                     "value" : [ "","code ","\"Dead\"",": ","'419099009'"," from " ]
                  }, {
                     "r" : "15",
                     "s" : [ {
                        "value" : [ "\"SNOMEDCT\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Dead'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "15",
               "locator" : "25:31-25:40",
               "name" : "SNOMEDCT"
            }
         }, {
            "localId" : "18",
            "locator" : "26:1-26:56",
            "name" : "ER",
            "id" : "ER",
            "display" : "Emergency room",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "18",
                  "s" : [ {
                     "value" : [ "","code ","\"ER\"",": ","'ER'"," from " ]
                  }, {
                     "r" : "17",
                     "s" : [ {
                        "value" : [ "\"RoleCode\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Emergency room'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "17",
               "locator" : "26:22-26:31",
               "name" : "RoleCode"
            }
         }, {
            "localId" : "20",
            "locator" : "27:1-27:63",
            "name" : "ICU",
            "id" : "ICU",
            "display" : "Intensive care unit",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "20",
                  "s" : [ {
                     "value" : [ "","code ","\"ICU\"",": ","'ICU'"," from " ]
                  }, {
                     "r" : "19",
                     "s" : [ {
                        "value" : [ "\"RoleCode\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Intensive care unit'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "19",
               "locator" : "27:24-27:33",
               "name" : "RoleCode"
            }
         }, {
            "localId" : "22",
            "locator" : "28:1-28:65",
            "name" : "Billing",
            "id" : "billing",
            "display" : "Billing",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "22",
                  "s" : [ {
                     "value" : [ "","code ","\"Billing\"",": ","'billing'"," from " ]
                  }, {
                     "r" : "21",
                     "s" : [ {
                        "value" : [ "\"Diagnosis Role\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Billing'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "21",
               "locator" : "28:32-28:47",
               "name" : "Diagnosis Role"
            }
         }, {
            "localId" : "24",
            "locator" : "31:1-31:59",
            "name" : "active",
            "id" : "active",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "24",
                  "s" : [ {
                     "value" : [ "// Condition Clinical Status Codes - Consider value sets for these\n","code ","\"active\"",": ","'active'"," from " ]
                  }, {
                     "r" : "23",
                     "s" : [ {
                        "value" : [ "\"ConditionClinicalStatusCodes\"" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "23",
               "locator" : "31:30-31:59",
               "name" : "ConditionClinicalStatusCodes"
            }
         }, {
            "localId" : "26",
            "locator" : "32:1-32:67",
            "name" : "recurrence",
            "id" : "recurrence",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "26",
                  "s" : [ {
                     "value" : [ "","code ","\"recurrence\"",": ","'recurrence'"," from " ]
                  }, {
                     "r" : "25",
                     "s" : [ {
                        "value" : [ "\"ConditionClinicalStatusCodes\"" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "25",
               "locator" : "32:38-32:67",
               "name" : "ConditionClinicalStatusCodes"
            }
         }, {
            "localId" : "28",
            "locator" : "33:1-33:61",
            "name" : "relapse",
            "id" : "relapse",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "28",
                  "s" : [ {
                     "value" : [ "","code ","\"relapse\"",": ","'relapse'"," from " ]
                  }, {
                     "r" : "27",
                     "s" : [ {
                        "value" : [ "\"ConditionClinicalStatusCodes\"" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "27",
               "locator" : "33:32-33:61",
               "name" : "ConditionClinicalStatusCodes"
            }
         }, {
            "localId" : "30",
            "locator" : "34:1-34:63",
            "name" : "inactive",
            "id" : "inactive",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "30",
                  "s" : [ {
                     "value" : [ "","code ","\"inactive\"",": ","'inactive'"," from " ]
                  }, {
                     "r" : "29",
                     "s" : [ {
                        "value" : [ "\"ConditionClinicalStatusCodes\"" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "29",
               "locator" : "34:34-34:63",
               "name" : "ConditionClinicalStatusCodes"
            }
         }, {
            "localId" : "32",
            "locator" : "35:1-35:65",
            "name" : "remission",
            "id" : "remission",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "32",
                  "s" : [ {
                     "value" : [ "","code ","\"remission\"",": ","'remission'"," from " ]
                  }, {
                     "r" : "31",
                     "s" : [ {
                        "value" : [ "\"ConditionClinicalStatusCodes\"" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "31",
               "locator" : "35:36-35:65",
               "name" : "ConditionClinicalStatusCodes"
            }
         }, {
            "localId" : "34",
            "locator" : "36:1-36:63",
            "name" : "resolved",
            "id" : "resolved",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "34",
                  "s" : [ {
                     "value" : [ "","code ","\"resolved\"",": ","'resolved'"," from " ]
                  }, {
                     "r" : "33",
                     "s" : [ {
                        "value" : [ "\"ConditionClinicalStatusCodes\"" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "33",
               "locator" : "36:34-36:63",
               "name" : "ConditionClinicalStatusCodes"
            }
         }, {
            "localId" : "36",
            "locator" : "39:1-39:71",
            "name" : "unconfirmed",
            "id" : "unconfirmed",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "36",
                  "s" : [ {
                     "value" : [ "// Condition Verification Status Codes - Consider value sets for these\n","code ","\"unconfirmed\"",": ","'unconfirmed'"," from " ]
                  }, {
                     "r" : "35",
                     "s" : [ {
                        "value" : [ "ConditionVerificationStatusCodes" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "35",
               "locator" : "39:40-39:71",
               "name" : "ConditionVerificationStatusCodes"
            }
         }, {
            "localId" : "38",
            "locator" : "40:1-40:71",
            "name" : "provisional",
            "id" : "provisional",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "38",
                  "s" : [ {
                     "value" : [ "","code ","\"provisional\"",": ","'provisional'"," from " ]
                  }, {
                     "r" : "37",
                     "s" : [ {
                        "value" : [ "ConditionVerificationStatusCodes" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "37",
               "locator" : "40:40-40:71",
               "name" : "ConditionVerificationStatusCodes"
            }
         }, {
            "localId" : "40",
            "locator" : "41:1-41:73",
            "name" : "differential",
            "id" : "differential",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "40",
                  "s" : [ {
                     "value" : [ "","code ","\"differential\"",": ","'differential'"," from " ]
                  }, {
                     "r" : "39",
                     "s" : [ {
                        "value" : [ "ConditionVerificationStatusCodes" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "39",
               "locator" : "41:42-41:73",
               "name" : "ConditionVerificationStatusCodes"
            }
         }, {
            "localId" : "42",
            "locator" : "42:1-42:67",
            "name" : "confirmed",
            "id" : "confirmed",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "42",
                  "s" : [ {
                     "value" : [ "","code ","\"confirmed\"",": ","'confirmed'"," from " ]
                  }, {
                     "r" : "41",
                     "s" : [ {
                        "value" : [ "ConditionVerificationStatusCodes" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "41",
               "locator" : "42:36-42:67",
               "name" : "ConditionVerificationStatusCodes"
            }
         }, {
            "localId" : "44",
            "locator" : "43:1-43:63",
            "name" : "refuted",
            "id" : "refuted",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "44",
                  "s" : [ {
                     "value" : [ "","code ","\"refuted\"",": ","'refuted'"," from " ]
                  }, {
                     "r" : "43",
                     "s" : [ {
                        "value" : [ "ConditionVerificationStatusCodes" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "43",
               "locator" : "43:32-43:63",
               "name" : "ConditionVerificationStatusCodes"
            }
         }, {
            "localId" : "46",
            "locator" : "44:1-44:81",
            "name" : "entered-in-error",
            "id" : "entered-in-error",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "46",
                  "s" : [ {
                     "value" : [ "","code ","\"entered-in-error\"",": ","'entered-in-error'"," from " ]
                  }, {
                     "r" : "45",
                     "s" : [ {
                        "value" : [ "ConditionVerificationStatusCodes" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "45",
               "locator" : "44:50-44:81",
               "name" : "ConditionVerificationStatusCodes"
            }
         }, {
            "localId" : "48",
            "locator" : "46:1-46:76",
            "name" : "allergy-active",
            "id" : "active",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "48",
                  "s" : [ {
                     "value" : [ "","code ","\"allergy-active\"",": ","'active'"," from " ]
                  }, {
                     "r" : "47",
                     "s" : [ {
                        "value" : [ "\"AllergyIntoleranceClinicalStatusCodes\"" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "47",
               "locator" : "46:38-46:76",
               "name" : "AllergyIntoleranceClinicalStatusCodes"
            }
         }, {
            "localId" : "50",
            "locator" : "47:1-47:80",
            "name" : "allergy-inactive",
            "id" : "inactive",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "50",
                  "s" : [ {
                     "value" : [ "","code ","\"allergy-inactive\"",": ","'inactive'"," from " ]
                  }, {
                     "r" : "49",
                     "s" : [ {
                        "value" : [ "\"AllergyIntoleranceClinicalStatusCodes\"" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "49",
               "locator" : "47:42-47:80",
               "name" : "AllergyIntoleranceClinicalStatusCodes"
            }
         }, {
            "localId" : "52",
            "locator" : "48:1-48:80",
            "name" : "allergy-resolved",
            "id" : "resolved",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "52",
                  "s" : [ {
                     "value" : [ "","code ","\"allergy-resolved\"",": ","'resolved'"," from " ]
                  }, {
                     "r" : "51",
                     "s" : [ {
                        "value" : [ "\"AllergyIntoleranceClinicalStatusCodes\"" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "51",
               "locator" : "48:42-48:80",
               "name" : "AllergyIntoleranceClinicalStatusCodes"
            }
         }, {
            "localId" : "54",
            "locator" : "51:1-51:88",
            "name" : "allergy-unconfirmed",
            "id" : "unconfirmed",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "54",
                  "s" : [ {
                     "value" : [ "// Allergy/Intolerance Verification Status Codes - Consider value sets for these\n","code ","\"allergy-unconfirmed\"",": ","'unconfirmed'"," from " ]
                  }, {
                     "r" : "53",
                     "s" : [ {
                        "value" : [ "AllergyIntoleranceVerificationStatusCodes" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "53",
               "locator" : "51:48-51:88",
               "name" : "AllergyIntoleranceVerificationStatusCodes"
            }
         }, {
            "localId" : "56",
            "locator" : "52:1-52:84",
            "name" : "allergy-confirmed",
            "id" : "confirmed",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "56",
                  "s" : [ {
                     "value" : [ "","code ","\"allergy-confirmed\"",": ","'confirmed'"," from " ]
                  }, {
                     "r" : "55",
                     "s" : [ {
                        "value" : [ "AllergyIntoleranceVerificationStatusCodes" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "55",
               "locator" : "52:44-52:84",
               "name" : "AllergyIntoleranceVerificationStatusCodes"
            }
         }, {
            "localId" : "58",
            "locator" : "53:1-53:80",
            "name" : "allergy-refuted",
            "id" : "refuted",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "58",
                  "s" : [ {
                     "value" : [ "","code ","\"allergy-refuted\"",": ","'refuted'"," from " ]
                  }, {
                     "r" : "57",
                     "s" : [ {
                        "value" : [ "AllergyIntoleranceVerificationStatusCodes" ]
                     } ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "57",
               "locator" : "53:40-53:80",
               "name" : "AllergyIntoleranceVerificationStatusCodes"
            }
         }, {
            "localId" : "60",
            "locator" : "56:1-56:82",
            "name" : "Community",
            "id" : "community",
            "display" : "Community",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "60",
                  "s" : [ {
                     "value" : [ "// MedicationRequest Category Codes\n","code ","\"Community\"",": ","'community'"," from " ]
                  }, {
                     "r" : "59",
                     "s" : [ {
                        "value" : [ "\"MedicationRequestCategory\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Community'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "59",
               "locator" : "56:36-56:62",
               "name" : "MedicationRequestCategory"
            }
         }, {
            "localId" : "62",
            "locator" : "57:1-57:82",
            "name" : "Discharge",
            "id" : "discharge",
            "display" : "Discharge",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "62",
                  "s" : [ {
                     "value" : [ "","code ","\"Discharge\"",": ","'discharge'"," from " ]
                  }, {
                     "r" : "61",
                     "s" : [ {
                        "value" : [ "\"MedicationRequestCategory\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Discharge'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "61",
               "locator" : "57:36-57:62",
               "name" : "MedicationRequestCategory"
            }
         }, {
            "localId" : "64",
            "locator" : "60:1-60:67",
            "name" : "AD",
            "id" : "AD",
            "display" : "Admission diagnosis",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "64",
                  "s" : [ {
                     "value" : [ "// Diagnosis Role Codes\n","code ","\"AD\"",": ","'AD'"," from " ]
                  }, {
                     "r" : "63",
                     "s" : [ {
                        "value" : [ "\"Diagnosis Role\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Admission diagnosis'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "63",
               "locator" : "60:22-60:37",
               "name" : "Diagnosis Role"
            }
         }, {
            "localId" : "66",
            "locator" : "61:1-61:67",
            "name" : "DD",
            "id" : "DD",
            "display" : "Discharge diagnosis",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "66",
                  "s" : [ {
                     "value" : [ "","code ","\"DD\"",": ","'DD'"," from " ]
                  }, {
                     "r" : "65",
                     "s" : [ {
                        "value" : [ "\"Diagnosis Role\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Discharge diagnosis'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "65",
               "locator" : "61:22-61:37",
               "name" : "Diagnosis Role"
            }
         }, {
            "localId" : "68",
            "locator" : "62:1-62:63",
            "name" : "CC",
            "id" : "CC",
            "display" : "Chief complaint",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "68",
                  "s" : [ {
                     "value" : [ "","code ","\"CC\"",": ","'CC'"," from " ]
                  }, {
                     "r" : "67",
                     "s" : [ {
                        "value" : [ "\"Diagnosis Role\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Chief complaint'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "67",
               "locator" : "62:22-62:37",
               "name" : "Diagnosis Role"
            }
         }, {
            "localId" : "70",
            "locator" : "63:1-63:69",
            "name" : "CM",
            "id" : "CM",
            "display" : "Comorbidity diagnosis",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "70",
                  "s" : [ {
                     "value" : [ "","code ","\"CM\"",": ","'CM'"," from " ]
                  }, {
                     "r" : "69",
                     "s" : [ {
                        "value" : [ "\"Diagnosis Role\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'Comorbidity diagnosis'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "69",
               "locator" : "63:22-63:37",
               "name" : "Diagnosis Role"
            }
         }, {
            "localId" : "72",
            "locator" : "64:1-64:72",
            "name" : "pre-op",
            "id" : "pre-op",
            "display" : "pre-op diagnosis",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "72",
                  "s" : [ {
                     "value" : [ "","code ","\"pre-op\"",": ","'pre-op'"," from " ]
                  }, {
                     "r" : "71",
                     "s" : [ {
                        "value" : [ "\"Diagnosis Role\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'pre-op diagnosis'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "71",
               "locator" : "64:30-64:45",
               "name" : "Diagnosis Role"
            }
         }, {
            "localId" : "74",
            "locator" : "65:1-65:75",
            "name" : "post-op",
            "id" : "post-op",
            "display" : "post-op diagnosis",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "74",
                  "s" : [ {
                     "value" : [ "","code ","\"post-op\"",": ","'post-op'"," from " ]
                  }, {
                     "r" : "73",
                     "s" : [ {
                        "value" : [ "\"Diagnosis Role\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'post-op diagnosis'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "73",
               "locator" : "65:32-65:47",
               "name" : "Diagnosis Role"
            }
         }, {
            "localId" : "76",
            "locator" : "66:1-66:75",
            "name" : "billing",
            "id" : "billing",
            "display" : "billing diagnosis",
            "accessLevel" : "Public",
            "annotation" : [ {
               "type" : "Annotation",
               "s" : {
                  "r" : "76",
                  "s" : [ {
                     "value" : [ "","code ","\"billing\"",": ","'billing'"," from " ]
                  }, {
                     "r" : "75",
                     "s" : [ {
                        "value" : [ "\"Diagnosis Role\"" ]
                     } ]
                  }, {
                     "value" : [ " display ","'billing diagnosis'" ]
                  } ]
               }
            } ],
            "codeSystem" : {
               "localId" : "75",
               "locator" : "66:32-66:47",
               "name" : "Diagnosis Role"
            }
         } ]
      },
      "contexts" : {
         "def" : [ {
            "locator" : "68:1-68:15",
            "name" : "Patient"
         } ]
      },
      "statements" : {
         "def" : [ {
            "locator" : "68:1-68:15",
            "name" : "Patient",
            "context" : "Patient",
            "expression" : {
               "type" : "SingletonFrom",
               "operand" : {
                  "locator" : "68:1-68:15",
                  "dataType" : "{http://hl7.org/fhir}Patient",
                  "templateId" : "http://hl7.org/fhir/StructureDefinition/Patient",
                  "type" : "Retrieve"
               }
            }
         }, {
            "localId" : "85",
            "locator" : "75:1-78:3",
            "name" : "isCommunity",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns true if the given MedicationRequest has a category of Community"
               } ],
               "s" : {
                  "r" : "85",
                  "s" : [ {
                     "value" : [ "/* Candidates for FHIRCommon */\n\n/*\n@description: Returns true if the given MedicationRequest has a category of Community\n*/\n","define fluent function ","isCommunity","(","medicationRequest"," " ]
                  }, {
                     "r" : "77",
                     "s" : [ {
                        "value" : [ "MedicationRequest" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "84",
                     "s" : [ {
                        "r" : "84",
                        "s" : [ {
                           "value" : [ "exists " ]
                        }, {
                           "r" : "83",
                           "s" : [ {
                              "value" : [ "(" ]
                           }, {
                              "r" : "83",
                              "s" : [ {
                                 "s" : [ {
                                    "r" : "79",
                                    "s" : [ {
                                       "r" : "78",
                                       "s" : [ {
                                          "s" : [ {
                                             "value" : [ "medicationRequest",".","category" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " ","C" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ "\n    " ]
                              }, {
                                 "r" : "82",
                                 "s" : [ {
                                    "value" : [ "where " ]
                                 }, {
                                    "r" : "82",
                                    "s" : [ {
                                       "r" : "80",
                                       "s" : [ {
                                          "value" : [ "C" ]
                                       } ]
                                    }, {
                                       "value" : [ " ","~"," " ]
                                    }, {
                                       "r" : "81",
                                       "s" : [ {
                                          "value" : [ "Community" ]
                                       } ]
                                    } ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "\n  )" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "84",
               "locator" : "76:3-78:3",
               "type" : "Exists",
               "operand" : {
                  "localId" : "83",
                  "locator" : "76:10-78:3",
                  "type" : "Query",
                  "source" : [ {
                     "localId" : "79",
                     "locator" : "76:11-76:38",
                     "alias" : "C",
                     "expression" : {
                        "localId" : "78",
                        "locator" : "76:11-76:36",
                        "path" : "category",
                        "type" : "Property",
                        "source" : {
                           "name" : "medicationRequest",
                           "type" : "OperandRef"
                        }
                     }
                  } ],
                  "relationship" : [ ],
                  "where" : {
                     "localId" : "82",
                     "locator" : "77:5-77:23",
                     "type" : "Equivalent",
                     "operand" : [ {
                        "name" : "ToConcept",
                        "libraryName" : "FHIRHelpers",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "80",
                           "locator" : "77:11",
                           "name" : "C",
                           "type" : "AliasRef"
                        } ]
                     }, {
                        "type" : "ToConcept",
                        "operand" : {
                           "localId" : "81",
                           "locator" : "77:15-77:23",
                           "name" : "Community",
                           "type" : "CodeRef"
                        }
                     } ]
                  }
               }
            },
            "operand" : [ {
               "name" : "medicationRequest",
               "operandTypeSpecifier" : {
                  "localId" : "77",
                  "locator" : "75:54-75:70",
                  "name" : "{http://hl7.org/fhir}MedicationRequest",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "94",
            "locator" : "83:1-86:3",
            "name" : "isDischarge",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns true if the given MedicationRequest has a category of Discharge"
               } ],
               "s" : {
                  "r" : "94",
                  "s" : [ {
                     "value" : [ "/*\n@description: Returns true if the given MedicationRequest has a category of Discharge\n*/\n","define fluent function ","isDischarge","(","medicationRequest"," " ]
                  }, {
                     "r" : "86",
                     "s" : [ {
                        "value" : [ "MedicationRequest" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "93",
                     "s" : [ {
                        "r" : "93",
                        "s" : [ {
                           "value" : [ "exists " ]
                        }, {
                           "r" : "92",
                           "s" : [ {
                              "value" : [ "(" ]
                           }, {
                              "r" : "92",
                              "s" : [ {
                                 "s" : [ {
                                    "r" : "88",
                                    "s" : [ {
                                       "r" : "87",
                                       "s" : [ {
                                          "s" : [ {
                                             "value" : [ "medicationRequest",".","category" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " ","C" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ "\n    " ]
                              }, {
                                 "r" : "91",
                                 "s" : [ {
                                    "value" : [ "where " ]
                                 }, {
                                    "r" : "91",
                                    "s" : [ {
                                       "r" : "89",
                                       "s" : [ {
                                          "value" : [ "C" ]
                                       } ]
                                    }, {
                                       "value" : [ " ","~"," " ]
                                    }, {
                                       "r" : "90",
                                       "s" : [ {
                                          "value" : [ "Discharge" ]
                                       } ]
                                    } ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "\n  )" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "93",
               "locator" : "84:3-86:3",
               "type" : "Exists",
               "operand" : {
                  "localId" : "92",
                  "locator" : "84:10-86:3",
                  "type" : "Query",
                  "source" : [ {
                     "localId" : "88",
                     "locator" : "84:11-84:38",
                     "alias" : "C",
                     "expression" : {
                        "localId" : "87",
                        "locator" : "84:11-84:36",
                        "path" : "category",
                        "type" : "Property",
                        "source" : {
                           "name" : "medicationRequest",
                           "type" : "OperandRef"
                        }
                     }
                  } ],
                  "relationship" : [ ],
                  "where" : {
                     "localId" : "91",
                     "locator" : "85:5-85:23",
                     "type" : "Equivalent",
                     "operand" : [ {
                        "name" : "ToConcept",
                        "libraryName" : "FHIRHelpers",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "89",
                           "locator" : "85:11",
                           "name" : "C",
                           "type" : "AliasRef"
                        } ]
                     }, {
                        "type" : "ToConcept",
                        "operand" : {
                           "localId" : "90",
                           "locator" : "85:15-85:23",
                           "name" : "Discharge",
                           "type" : "CodeRef"
                        }
                     } ]
                  }
               }
            },
            "operand" : [ {
               "name" : "medicationRequest",
               "operandTypeSpecifier" : {
                  "localId" : "86",
                  "locator" : "83:54-83:70",
                  "name" : "{http://hl7.org/fhir}MedicationRequest",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "229",
            "locator" : "96:1-116:5",
            "name" : "toInterval",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Normalizes a value that is a choice of timing-valued types to an equivalent interval"
               }, {
                  "name" : "comment",
                  "value" : "Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource. NOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String."
               } ],
               "s" : {
                  "r" : "229",
                  "s" : [ {
                     "value" : [ "/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource. NOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\n","define fluent function ","toInterval","(","choice"," " ]
                  }, {
                     "r" : "102",
                     "s" : [ {
                        "value" : [ "Choice<" ]
                     }, {
                        "r" : "95",
                        "s" : [ {
                           "value" : [ "FHIR",".","dateTime" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "96",
                        "s" : [ {
                           "value" : [ "FHIR",".","Period" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "97",
                        "s" : [ {
                           "value" : [ "FHIR",".","Timing" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "98",
                        "s" : [ {
                           "value" : [ "FHIR",".","instant" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "99",
                        "s" : [ {
                           "value" : [ "FHIR",".","string" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "100",
                        "s" : [ {
                           "value" : [ "FHIR",".","Age" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "101",
                        "s" : [ {
                           "value" : [ "FHIR",".","Range" ]
                        } ]
                     }, {
                        "value" : [ ">" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "228",
                     "s" : [ {
                        "r" : "228",
                        "s" : [ {
                           "value" : [ "case\n    " ]
                        }, {
                           "r" : "117",
                           "s" : [ {
                              "value" : [ "when " ]
                           }, {
                              "r" : "105",
                              "s" : [ {
                                 "r" : "103",
                                 "s" : [ {
                                    "value" : [ "choice" ]
                                 } ]
                              }, {
                                 "value" : [ " is " ]
                              }, {
                                 "r" : "104",
                                 "s" : [ {
                                    "value" : [ "FHIR",".","dateTime" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ " then\n      " ]
                           }, {
                              "r" : "116",
                              "s" : [ {
                                 "value" : [ "Interval[" ]
                              }, {
                                 "r" : "110",
                                 "s" : [ {
                                    "r" : "106",
                                    "s" : [ {
                                       "value" : [ "FHIRHelpers" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "110",
                                    "s" : [ {
                                       "value" : [ "ToDateTime","(" ]
                                    }, {
                                       "r" : "109",
                                       "s" : [ {
                                          "r" : "107",
                                          "s" : [ {
                                             "value" : [ "choice" ]
                                          } ]
                                       }, {
                                          "value" : [ " as " ]
                                       }, {
                                          "r" : "108",
                                          "s" : [ {
                                             "value" : [ "FHIR",".","dateTime" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ ")" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ", " ]
                              }, {
                                 "r" : "115",
                                 "s" : [ {
                                    "r" : "111",
                                    "s" : [ {
                                       "value" : [ "FHIRHelpers" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "115",
                                    "s" : [ {
                                       "value" : [ "ToDateTime","(" ]
                                    }, {
                                       "r" : "114",
                                       "s" : [ {
                                          "r" : "112",
                                          "s" : [ {
                                             "value" : [ "choice" ]
                                          } ]
                                       }, {
                                          "value" : [ " as " ]
                                       }, {
                                          "r" : "113",
                                          "s" : [ {
                                             "value" : [ "FHIR",".","dateTime" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ ")" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ "]" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "126",
                           "s" : [ {
                              "value" : [ "when " ]
                           }, {
                              "r" : "120",
                              "s" : [ {
                                 "r" : "118",
                                 "s" : [ {
                                    "value" : [ "choice" ]
                                 } ]
                              }, {
                                 "value" : [ " is " ]
                              }, {
                                 "r" : "119",
                                 "s" : [ {
                                    "value" : [ "FHIR",".","Period" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ " then\n      " ]
                           }, {
                              "r" : "125",
                              "s" : [ {
                                 "r" : "121",
                                 "s" : [ {
                                    "value" : [ "FHIRHelpers" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "125",
                                 "s" : [ {
                                    "value" : [ "ToInterval","(" ]
                                 }, {
                                    "r" : "124",
                                    "s" : [ {
                                       "r" : "122",
                                       "s" : [ {
                                          "value" : [ "choice" ]
                                       } ]
                                    }, {
                                       "value" : [ " as " ]
                                    }, {
                                       "r" : "123",
                                       "s" : [ {
                                          "value" : [ "FHIR",".","Period" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "141",
                           "s" : [ {
                              "value" : [ "when " ]
                           }, {
                              "r" : "129",
                              "s" : [ {
                                 "r" : "127",
                                 "s" : [ {
                                    "value" : [ "choice" ]
                                 } ]
                              }, {
                                 "value" : [ " is " ]
                              }, {
                                 "r" : "128",
                                 "s" : [ {
                                    "value" : [ "FHIR",".","instant" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ " then\n      " ]
                           }, {
                              "r" : "140",
                              "s" : [ {
                                 "value" : [ "Interval[" ]
                              }, {
                                 "r" : "134",
                                 "s" : [ {
                                    "r" : "130",
                                    "s" : [ {
                                       "value" : [ "FHIRHelpers" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "134",
                                    "s" : [ {
                                       "value" : [ "ToDateTime","(" ]
                                    }, {
                                       "r" : "133",
                                       "s" : [ {
                                          "r" : "131",
                                          "s" : [ {
                                             "value" : [ "choice" ]
                                          } ]
                                       }, {
                                          "value" : [ " as " ]
                                       }, {
                                          "r" : "132",
                                          "s" : [ {
                                             "value" : [ "FHIR",".","instant" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ ")" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ", " ]
                              }, {
                                 "r" : "139",
                                 "s" : [ {
                                    "r" : "135",
                                    "s" : [ {
                                       "value" : [ "FHIRHelpers" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "139",
                                    "s" : [ {
                                       "value" : [ "ToDateTime","(" ]
                                    }, {
                                       "r" : "138",
                                       "s" : [ {
                                          "r" : "136",
                                          "s" : [ {
                                             "value" : [ "choice" ]
                                          } ]
                                       }, {
                                          "value" : [ " as " ]
                                       }, {
                                          "r" : "137",
                                          "s" : [ {
                                             "value" : [ "FHIR",".","instant" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ ")" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ "]" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "168",
                           "s" : [ {
                              "value" : [ "when " ]
                           }, {
                              "r" : "144",
                              "s" : [ {
                                 "r" : "142",
                                 "s" : [ {
                                    "value" : [ "choice" ]
                                 } ]
                              }, {
                                 "value" : [ " is " ]
                              }, {
                                 "r" : "143",
                                 "s" : [ {
                                    "value" : [ "FHIR",".","Age" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ " then\n      " ]
                           }, {
                              "r" : "167",
                              "s" : [ {
                                 "value" : [ "Interval[" ]
                              }, {
                                 "r" : "154",
                                 "s" : [ {
                                    "r" : "148",
                                    "s" : [ {
                                       "r" : "145",
                                       "s" : [ {
                                          "value" : [ "FHIRHelpers" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "148",
                                       "s" : [ {
                                          "value" : [ "ToDate","(" ]
                                       }, {
                                          "r" : "147",
                                          "s" : [ {
                                             "r" : "146",
                                             "s" : [ {
                                                "value" : [ "Patient" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "147",
                                             "s" : [ {
                                                "value" : [ "birthDate" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ ")" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ " + " ]
                                 }, {
                                    "r" : "153",
                                    "s" : [ {
                                       "r" : "149",
                                       "s" : [ {
                                          "value" : [ "FHIRHelpers" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "153",
                                       "s" : [ {
                                          "value" : [ "ToQuantity","(" ]
                                       }, {
                                          "r" : "152",
                                          "s" : [ {
                                             "r" : "150",
                                             "s" : [ {
                                                "value" : [ "choice" ]
                                             } ]
                                          }, {
                                             "value" : [ " as " ]
                                          }, {
                                             "r" : "151",
                                             "s" : [ {
                                                "value" : [ "FHIR",".","Age" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ ")" ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ",\n        " ]
                              }, {
                                 "r" : "166",
                                 "s" : [ {
                                    "r" : "164",
                                    "s" : [ {
                                       "r" : "158",
                                       "s" : [ {
                                          "r" : "155",
                                          "s" : [ {
                                             "value" : [ "FHIRHelpers" ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "158",
                                          "s" : [ {
                                             "value" : [ "ToDate","(" ]
                                          }, {
                                             "r" : "157",
                                             "s" : [ {
                                                "r" : "156",
                                                "s" : [ {
                                                   "value" : [ "Patient" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "157",
                                                "s" : [ {
                                                   "value" : [ "birthDate" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ ")" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " + " ]
                                    }, {
                                       "r" : "163",
                                       "s" : [ {
                                          "r" : "159",
                                          "s" : [ {
                                             "value" : [ "FHIRHelpers" ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "163",
                                          "s" : [ {
                                             "value" : [ "ToQuantity","(" ]
                                          }, {
                                             "r" : "162",
                                             "s" : [ {
                                                "r" : "160",
                                                "s" : [ {
                                                   "value" : [ "choice" ]
                                                } ]
                                             }, {
                                                "value" : [ " as " ]
                                             }, {
                                                "r" : "161",
                                                "s" : [ {
                                                   "value" : [ "FHIR",".","Age" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ ")" ]
                                          } ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ " + " ]
                                 }, {
                                    "r" : "165",
                                    "s" : [ {
                                       "value" : [ "1 ","year" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ")" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "197",
                           "s" : [ {
                              "value" : [ "when " ]
                           }, {
                              "r" : "171",
                              "s" : [ {
                                 "r" : "169",
                                 "s" : [ {
                                    "value" : [ "choice" ]
                                 } ]
                              }, {
                                 "value" : [ " is " ]
                              }, {
                                 "r" : "170",
                                 "s" : [ {
                                    "value" : [ "FHIR",".","Range" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ " then\n      " ]
                           }, {
                              "r" : "196",
                              "s" : [ {
                                 "value" : [ "Interval[" ]
                              }, {
                                 "r" : "182",
                                 "s" : [ {
                                    "r" : "175",
                                    "s" : [ {
                                       "r" : "172",
                                       "s" : [ {
                                          "value" : [ "FHIRHelpers" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "175",
                                       "s" : [ {
                                          "value" : [ "ToDate","(" ]
                                       }, {
                                          "r" : "174",
                                          "s" : [ {
                                             "r" : "173",
                                             "s" : [ {
                                                "value" : [ "Patient" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "174",
                                             "s" : [ {
                                                "value" : [ "birthDate" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ ")" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ " + " ]
                                 }, {
                                    "r" : "181",
                                    "s" : [ {
                                       "r" : "176",
                                       "s" : [ {
                                          "value" : [ "FHIRHelpers" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "181",
                                       "s" : [ {
                                          "value" : [ "ToQuantity","(" ]
                                       }, {
                                          "r" : "180",
                                          "s" : [ {
                                             "r" : "179",
                                             "s" : [ {
                                                "value" : [ "(" ]
                                             }, {
                                                "r" : "179",
                                                "s" : [ {
                                                   "r" : "177",
                                                   "s" : [ {
                                                      "value" : [ "choice" ]
                                                   } ]
                                                }, {
                                                   "value" : [ " as " ]
                                                }, {
                                                   "r" : "178",
                                                   "s" : [ {
                                                      "value" : [ "FHIR",".","Range" ]
                                                   } ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "180",
                                             "s" : [ {
                                                "value" : [ "low" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ ")" ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ",\n        " ]
                              }, {
                                 "r" : "195",
                                 "s" : [ {
                                    "r" : "193",
                                    "s" : [ {
                                       "r" : "186",
                                       "s" : [ {
                                          "r" : "183",
                                          "s" : [ {
                                             "value" : [ "FHIRHelpers" ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "186",
                                          "s" : [ {
                                             "value" : [ "ToDate","(" ]
                                          }, {
                                             "r" : "185",
                                             "s" : [ {
                                                "r" : "184",
                                                "s" : [ {
                                                   "value" : [ "Patient" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "185",
                                                "s" : [ {
                                                   "value" : [ "birthDate" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ ")" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " + " ]
                                    }, {
                                       "r" : "192",
                                       "s" : [ {
                                          "r" : "187",
                                          "s" : [ {
                                             "value" : [ "FHIRHelpers" ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "192",
                                          "s" : [ {
                                             "value" : [ "ToQuantity","(" ]
                                          }, {
                                             "r" : "191",
                                             "s" : [ {
                                                "r" : "190",
                                                "s" : [ {
                                                   "value" : [ "(" ]
                                                }, {
                                                   "r" : "190",
                                                   "s" : [ {
                                                      "r" : "188",
                                                      "s" : [ {
                                                         "value" : [ "choice" ]
                                                      } ]
                                                   }, {
                                                      "value" : [ " as " ]
                                                   }, {
                                                      "r" : "189",
                                                      "s" : [ {
                                                         "value" : [ "FHIR",".","Range" ]
                                                      } ]
                                                   } ]
                                                }, {
                                                   "value" : [ ")" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "191",
                                                "s" : [ {
                                                   "value" : [ "high" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ ")" ]
                                          } ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ " + " ]
                                 }, {
                                    "r" : "194",
                                    "s" : [ {
                                       "value" : [ "1 ","year" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ")" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "210",
                           "s" : [ {
                              "value" : [ "when " ]
                           }, {
                              "r" : "200",
                              "s" : [ {
                                 "r" : "198",
                                 "s" : [ {
                                    "value" : [ "choice" ]
                                 } ]
                              }, {
                                 "value" : [ " is " ]
                              }, {
                                 "r" : "199",
                                 "s" : [ {
                                    "value" : [ "FHIR",".","Timing" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ " then\n      " ]
                           }, {
                              "r" : "209",
                              "s" : [ {
                                 "value" : [ "Message","(" ]
                              }, {
                                 "r" : "204",
                                 "s" : [ {
                                    "r" : "201",
                                    "value" : [ "null"," as " ]
                                 }, {
                                    "r" : "203",
                                    "s" : [ {
                                       "value" : [ "Interval<" ]
                                    }, {
                                       "r" : "202",
                                       "s" : [ {
                                          "value" : [ "DateTime" ]
                                       } ]
                                    }, {
                                       "value" : [ ">" ]
                                    } ]
                                 } ]
                              }, {
                                 "r" : "205",
                                 "value" : [ ", ","true",", " ]
                              }, {
                                 "r" : "206",
                                 "s" : [ {
                                    "value" : [ "'1'" ]
                                 } ]
                              }, {
                                 "value" : [ ", " ]
                              }, {
                                 "r" : "207",
                                 "s" : [ {
                                    "value" : [ "'Error'" ]
                                 } ]
                              }, {
                                 "value" : [ ", " ]
                              }, {
                                 "r" : "208",
                                 "s" : [ {
                                    "value" : [ "'Cannot compute a single interval from a Timing type'" ]
                                 } ]
                              }, {
                                 "value" : [ ")" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "223",
                           "s" : [ {
                              "value" : [ "when " ]
                           }, {
                              "r" : "213",
                              "s" : [ {
                                 "r" : "211",
                                 "s" : [ {
                                    "value" : [ "choice" ]
                                 } ]
                              }, {
                                 "value" : [ " is " ]
                              }, {
                                 "r" : "212",
                                 "s" : [ {
                                    "value" : [ "FHIR",".","string" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ " then\n      " ]
                           }, {
                              "r" : "222",
                              "s" : [ {
                                 "value" : [ "Message","(" ]
                              }, {
                                 "r" : "217",
                                 "s" : [ {
                                    "r" : "214",
                                    "value" : [ "null"," as " ]
                                 }, {
                                    "r" : "216",
                                    "s" : [ {
                                       "value" : [ "Interval<" ]
                                    }, {
                                       "r" : "215",
                                       "s" : [ {
                                          "value" : [ "DateTime" ]
                                       } ]
                                    }, {
                                       "value" : [ ">" ]
                                    } ]
                                 } ]
                              }, {
                                 "r" : "218",
                                 "value" : [ ", ","true",", " ]
                              }, {
                                 "r" : "219",
                                 "s" : [ {
                                    "value" : [ "'1'" ]
                                 } ]
                              }, {
                                 "value" : [ ", " ]
                              }, {
                                 "r" : "220",
                                 "s" : [ {
                                    "value" : [ "'Error'" ]
                                 } ]
                              }, {
                                 "value" : [ ", " ]
                              }, {
                                 "r" : "221",
                                 "s" : [ {
                                    "value" : [ "'Cannot compute an interval from a String value'" ]
                                 } ]
                              }, {
                                 "value" : [ ")" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    else\n      " ]
                        }, {
                           "r" : "227",
                           "s" : [ {
                              "r" : "224",
                              "value" : [ "null"," as " ]
                           }, {
                              "r" : "226",
                              "s" : [ {
                                 "value" : [ "Interval<" ]
                              }, {
                                 "r" : "225",
                                 "s" : [ {
                                    "value" : [ "DateTime" ]
                                 } ]
                              }, {
                                 "value" : [ ">" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n  end" ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "228",
               "locator" : "97:3-116:5",
               "type" : "Case",
               "caseItem" : [ {
                  "localId" : "117",
                  "locator" : "98:5-99:112",
                  "when" : {
                     "localId" : "105",
                     "locator" : "98:10-98:32",
                     "type" : "Is",
                     "operand" : {
                        "localId" : "103",
                        "locator" : "98:10-98:15",
                        "name" : "choice",
                        "type" : "OperandRef"
                     },
                     "isTypeSpecifier" : {
                        "localId" : "104",
                        "locator" : "98:20-98:32",
                        "name" : "{http://hl7.org/fhir}dateTime",
                        "type" : "NamedTypeSpecifier"
                     }
                  },
                  "then" : {
                     "localId" : "116",
                     "locator" : "99:7-99:112",
                     "lowClosed" : true,
                     "highClosed" : true,
                     "type" : "Interval",
                     "low" : {
                        "localId" : "110",
                        "locator" : "99:16-99:62",
                        "name" : "ToDateTime",
                        "libraryName" : "FHIRHelpers",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "109",
                           "locator" : "99:39-99:61",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "107",
                              "locator" : "99:39-99:44",
                              "name" : "choice",
                              "type" : "OperandRef"
                           },
                           "asTypeSpecifier" : {
                              "localId" : "108",
                              "locator" : "99:49-99:61",
                              "name" : "{http://hl7.org/fhir}dateTime",
                              "type" : "NamedTypeSpecifier"
                           }
                        } ]
                     },
                     "high" : {
                        "localId" : "115",
                        "locator" : "99:65-99:111",
                        "name" : "ToDateTime",
                        "libraryName" : "FHIRHelpers",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "114",
                           "locator" : "99:88-99:110",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "112",
                              "locator" : "99:88-99:93",
                              "name" : "choice",
                              "type" : "OperandRef"
                           },
                           "asTypeSpecifier" : {
                              "localId" : "113",
                              "locator" : "99:98-99:110",
                              "name" : "{http://hl7.org/fhir}dateTime",
                              "type" : "NamedTypeSpecifier"
                           }
                        } ]
                     }
                  }
               }, {
                  "localId" : "126",
                  "locator" : "100:5-101:51",
                  "when" : {
                     "localId" : "120",
                     "locator" : "100:10-100:30",
                     "type" : "Is",
                     "operand" : {
                        "localId" : "118",
                        "locator" : "100:10-100:15",
                        "name" : "choice",
                        "type" : "OperandRef"
                     },
                     "isTypeSpecifier" : {
                        "localId" : "119",
                        "locator" : "100:20-100:30",
                        "name" : "{http://hl7.org/fhir}Period",
                        "type" : "NamedTypeSpecifier"
                     }
                  },
                  "then" : {
                     "localId" : "125",
                     "locator" : "101:7-101:51",
                     "name" : "ToInterval",
                     "libraryName" : "FHIRHelpers",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "124",
                        "locator" : "101:30-101:50",
                        "strict" : false,
                        "type" : "As",
                        "operand" : {
                           "localId" : "122",
                           "locator" : "101:30-101:35",
                           "name" : "choice",
                           "type" : "OperandRef"
                        },
                        "asTypeSpecifier" : {
                           "localId" : "123",
                           "locator" : "101:40-101:50",
                           "name" : "{http://hl7.org/fhir}Period",
                           "type" : "NamedTypeSpecifier"
                        }
                     } ]
                  }
               }, {
                  "localId" : "141",
                  "locator" : "102:5-103:110",
                  "when" : {
                     "localId" : "129",
                     "locator" : "102:10-102:31",
                     "type" : "Is",
                     "operand" : {
                        "localId" : "127",
                        "locator" : "102:10-102:15",
                        "name" : "choice",
                        "type" : "OperandRef"
                     },
                     "isTypeSpecifier" : {
                        "localId" : "128",
                        "locator" : "102:20-102:31",
                        "name" : "{http://hl7.org/fhir}instant",
                        "type" : "NamedTypeSpecifier"
                     }
                  },
                  "then" : {
                     "localId" : "140",
                     "locator" : "103:7-103:110",
                     "lowClosed" : true,
                     "highClosed" : true,
                     "type" : "Interval",
                     "low" : {
                        "localId" : "134",
                        "locator" : "103:16-103:61",
                        "name" : "ToDateTime",
                        "libraryName" : "FHIRHelpers",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "133",
                           "locator" : "103:39-103:60",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "131",
                              "locator" : "103:39-103:44",
                              "name" : "choice",
                              "type" : "OperandRef"
                           },
                           "asTypeSpecifier" : {
                              "localId" : "132",
                              "locator" : "103:49-103:60",
                              "name" : "{http://hl7.org/fhir}instant",
                              "type" : "NamedTypeSpecifier"
                           }
                        } ]
                     },
                     "high" : {
                        "localId" : "139",
                        "locator" : "103:64-103:109",
                        "name" : "ToDateTime",
                        "libraryName" : "FHIRHelpers",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "138",
                           "locator" : "103:87-103:108",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "136",
                              "locator" : "103:87-103:92",
                              "name" : "choice",
                              "type" : "OperandRef"
                           },
                           "asTypeSpecifier" : {
                              "localId" : "137",
                              "locator" : "103:97-103:108",
                              "name" : "{http://hl7.org/fhir}instant",
                              "type" : "NamedTypeSpecifier"
                           }
                        } ]
                     }
                  }
               }, {
                  "localId" : "168",
                  "locator" : "104:5-106:100",
                  "when" : {
                     "localId" : "144",
                     "locator" : "104:10-104:27",
                     "type" : "Is",
                     "operand" : {
                        "localId" : "142",
                        "locator" : "104:10-104:15",
                        "name" : "choice",
                        "type" : "OperandRef"
                     },
                     "isTypeSpecifier" : {
                        "localId" : "143",
                        "locator" : "104:20-104:27",
                        "name" : "{http://hl7.org/fhir}Age",
                        "type" : "NamedTypeSpecifier"
                     }
                  },
                  "then" : {
                     "type" : "Interval",
                     "low" : {
                        "type" : "ToDateTime",
                        "operand" : {
                           "path" : "low",
                           "type" : "Property",
                           "source" : {
                              "localId" : "167",
                              "locator" : "105:7-106:100",
                              "lowClosed" : true,
                              "highClosed" : false,
                              "type" : "Interval",
                              "low" : {
                                 "localId" : "154",
                                 "locator" : "105:16-105:97",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "148",
                                    "locator" : "105:16-105:52",
                                    "name" : "ToDate",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "147",
                                       "locator" : "105:35-105:51",
                                       "path" : "birthDate",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "146",
                                          "locator" : "105:35-105:41",
                                          "name" : "Patient",
                                          "type" : "ExpressionRef"
                                       }
                                    } ]
                                 }, {
                                    "localId" : "153",
                                    "locator" : "105:56-105:97",
                                    "name" : "ToQuantity",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "152",
                                       "locator" : "105:79-105:96",
                                       "strict" : false,
                                       "type" : "As",
                                       "operand" : {
                                          "localId" : "150",
                                          "locator" : "105:79-105:84",
                                          "name" : "choice",
                                          "type" : "OperandRef"
                                       },
                                       "asTypeSpecifier" : {
                                          "localId" : "151",
                                          "locator" : "105:89-105:96",
                                          "name" : "{http://hl7.org/fhir}Age",
                                          "type" : "NamedTypeSpecifier"
                                       }
                                    } ]
                                 } ]
                              },
                              "high" : {
                                 "localId" : "166",
                                 "locator" : "106:9-106:99",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "164",
                                    "locator" : "106:9-106:90",
                                    "type" : "Add",
                                    "operand" : [ {
                                       "localId" : "158",
                                       "locator" : "106:9-106:45",
                                       "name" : "ToDate",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "157",
                                          "locator" : "106:28-106:44",
                                          "path" : "birthDate",
                                          "type" : "Property",
                                          "source" : {
                                             "localId" : "156",
                                             "locator" : "106:28-106:34",
                                             "name" : "Patient",
                                             "type" : "ExpressionRef"
                                          }
                                       } ]
                                    }, {
                                       "localId" : "163",
                                       "locator" : "106:49-106:90",
                                       "name" : "ToQuantity",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "162",
                                          "locator" : "106:72-106:89",
                                          "strict" : false,
                                          "type" : "As",
                                          "operand" : {
                                             "localId" : "160",
                                             "locator" : "106:72-106:77",
                                             "name" : "choice",
                                             "type" : "OperandRef"
                                          },
                                          "asTypeSpecifier" : {
                                             "localId" : "161",
                                             "locator" : "106:82-106:89",
                                             "name" : "{http://hl7.org/fhir}Age",
                                             "type" : "NamedTypeSpecifier"
                                          }
                                       } ]
                                    } ]
                                 }, {
                                    "localId" : "165",
                                    "locator" : "106:94-106:99",
                                    "value" : 1,
                                    "unit" : "year",
                                    "type" : "Quantity"
                                 } ]
                              }
                           }
                        }
                     },
                     "lowClosedExpression" : {
                        "path" : "lowClosed",
                        "type" : "Property",
                        "source" : {
                           "localId" : "167",
                           "locator" : "105:7-106:100",
                           "lowClosed" : true,
                           "highClosed" : false,
                           "type" : "Interval",
                           "low" : {
                              "localId" : "154",
                              "locator" : "105:16-105:97",
                              "type" : "Add",
                              "operand" : [ {
                                 "localId" : "148",
                                 "locator" : "105:16-105:52",
                                 "name" : "ToDate",
                                 "libraryName" : "FHIRHelpers",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "147",
                                    "locator" : "105:35-105:51",
                                    "path" : "birthDate",
                                    "type" : "Property",
                                    "source" : {
                                       "localId" : "146",
                                       "locator" : "105:35-105:41",
                                       "name" : "Patient",
                                       "type" : "ExpressionRef"
                                    }
                                 } ]
                              }, {
                                 "localId" : "153",
                                 "locator" : "105:56-105:97",
                                 "name" : "ToQuantity",
                                 "libraryName" : "FHIRHelpers",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "152",
                                    "locator" : "105:79-105:96",
                                    "strict" : false,
                                    "type" : "As",
                                    "operand" : {
                                       "localId" : "150",
                                       "locator" : "105:79-105:84",
                                       "name" : "choice",
                                       "type" : "OperandRef"
                                    },
                                    "asTypeSpecifier" : {
                                       "localId" : "151",
                                       "locator" : "105:89-105:96",
                                       "name" : "{http://hl7.org/fhir}Age",
                                       "type" : "NamedTypeSpecifier"
                                    }
                                 } ]
                              } ]
                           },
                           "high" : {
                              "localId" : "166",
                              "locator" : "106:9-106:99",
                              "type" : "Add",
                              "operand" : [ {
                                 "localId" : "164",
                                 "locator" : "106:9-106:90",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "158",
                                    "locator" : "106:9-106:45",
                                    "name" : "ToDate",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "157",
                                       "locator" : "106:28-106:44",
                                       "path" : "birthDate",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "156",
                                          "locator" : "106:28-106:34",
                                          "name" : "Patient",
                                          "type" : "ExpressionRef"
                                       }
                                    } ]
                                 }, {
                                    "localId" : "163",
                                    "locator" : "106:49-106:90",
                                    "name" : "ToQuantity",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "162",
                                       "locator" : "106:72-106:89",
                                       "strict" : false,
                                       "type" : "As",
                                       "operand" : {
                                          "localId" : "160",
                                          "locator" : "106:72-106:77",
                                          "name" : "choice",
                                          "type" : "OperandRef"
                                       },
                                       "asTypeSpecifier" : {
                                          "localId" : "161",
                                          "locator" : "106:82-106:89",
                                          "name" : "{http://hl7.org/fhir}Age",
                                          "type" : "NamedTypeSpecifier"
                                       }
                                    } ]
                                 } ]
                              }, {
                                 "localId" : "165",
                                 "locator" : "106:94-106:99",
                                 "value" : 1,
                                 "unit" : "year",
                                 "type" : "Quantity"
                              } ]
                           }
                        }
                     },
                     "high" : {
                        "type" : "ToDateTime",
                        "operand" : {
                           "path" : "high",
                           "type" : "Property",
                           "source" : {
                              "localId" : "167",
                              "locator" : "105:7-106:100",
                              "lowClosed" : true,
                              "highClosed" : false,
                              "type" : "Interval",
                              "low" : {
                                 "localId" : "154",
                                 "locator" : "105:16-105:97",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "148",
                                    "locator" : "105:16-105:52",
                                    "name" : "ToDate",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "147",
                                       "locator" : "105:35-105:51",
                                       "path" : "birthDate",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "146",
                                          "locator" : "105:35-105:41",
                                          "name" : "Patient",
                                          "type" : "ExpressionRef"
                                       }
                                    } ]
                                 }, {
                                    "localId" : "153",
                                    "locator" : "105:56-105:97",
                                    "name" : "ToQuantity",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "152",
                                       "locator" : "105:79-105:96",
                                       "strict" : false,
                                       "type" : "As",
                                       "operand" : {
                                          "localId" : "150",
                                          "locator" : "105:79-105:84",
                                          "name" : "choice",
                                          "type" : "OperandRef"
                                       },
                                       "asTypeSpecifier" : {
                                          "localId" : "151",
                                          "locator" : "105:89-105:96",
                                          "name" : "{http://hl7.org/fhir}Age",
                                          "type" : "NamedTypeSpecifier"
                                       }
                                    } ]
                                 } ]
                              },
                              "high" : {
                                 "localId" : "166",
                                 "locator" : "106:9-106:99",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "164",
                                    "locator" : "106:9-106:90",
                                    "type" : "Add",
                                    "operand" : [ {
                                       "localId" : "158",
                                       "locator" : "106:9-106:45",
                                       "name" : "ToDate",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "157",
                                          "locator" : "106:28-106:44",
                                          "path" : "birthDate",
                                          "type" : "Property",
                                          "source" : {
                                             "localId" : "156",
                                             "locator" : "106:28-106:34",
                                             "name" : "Patient",
                                             "type" : "ExpressionRef"
                                          }
                                       } ]
                                    }, {
                                       "localId" : "163",
                                       "locator" : "106:49-106:90",
                                       "name" : "ToQuantity",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "162",
                                          "locator" : "106:72-106:89",
                                          "strict" : false,
                                          "type" : "As",
                                          "operand" : {
                                             "localId" : "160",
                                             "locator" : "106:72-106:77",
                                             "name" : "choice",
                                             "type" : "OperandRef"
                                          },
                                          "asTypeSpecifier" : {
                                             "localId" : "161",
                                             "locator" : "106:82-106:89",
                                             "name" : "{http://hl7.org/fhir}Age",
                                             "type" : "NamedTypeSpecifier"
                                          }
                                       } ]
                                    } ]
                                 }, {
                                    "localId" : "165",
                                    "locator" : "106:94-106:99",
                                    "value" : 1,
                                    "unit" : "year",
                                    "type" : "Quantity"
                                 } ]
                              }
                           }
                        }
                     },
                     "highClosedExpression" : {
                        "path" : "highClosed",
                        "type" : "Property",
                        "source" : {
                           "localId" : "167",
                           "locator" : "105:7-106:100",
                           "lowClosed" : true,
                           "highClosed" : false,
                           "type" : "Interval",
                           "low" : {
                              "localId" : "154",
                              "locator" : "105:16-105:97",
                              "type" : "Add",
                              "operand" : [ {
                                 "localId" : "148",
                                 "locator" : "105:16-105:52",
                                 "name" : "ToDate",
                                 "libraryName" : "FHIRHelpers",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "147",
                                    "locator" : "105:35-105:51",
                                    "path" : "birthDate",
                                    "type" : "Property",
                                    "source" : {
                                       "localId" : "146",
                                       "locator" : "105:35-105:41",
                                       "name" : "Patient",
                                       "type" : "ExpressionRef"
                                    }
                                 } ]
                              }, {
                                 "localId" : "153",
                                 "locator" : "105:56-105:97",
                                 "name" : "ToQuantity",
                                 "libraryName" : "FHIRHelpers",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "152",
                                    "locator" : "105:79-105:96",
                                    "strict" : false,
                                    "type" : "As",
                                    "operand" : {
                                       "localId" : "150",
                                       "locator" : "105:79-105:84",
                                       "name" : "choice",
                                       "type" : "OperandRef"
                                    },
                                    "asTypeSpecifier" : {
                                       "localId" : "151",
                                       "locator" : "105:89-105:96",
                                       "name" : "{http://hl7.org/fhir}Age",
                                       "type" : "NamedTypeSpecifier"
                                    }
                                 } ]
                              } ]
                           },
                           "high" : {
                              "localId" : "166",
                              "locator" : "106:9-106:99",
                              "type" : "Add",
                              "operand" : [ {
                                 "localId" : "164",
                                 "locator" : "106:9-106:90",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "158",
                                    "locator" : "106:9-106:45",
                                    "name" : "ToDate",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "157",
                                       "locator" : "106:28-106:44",
                                       "path" : "birthDate",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "156",
                                          "locator" : "106:28-106:34",
                                          "name" : "Patient",
                                          "type" : "ExpressionRef"
                                       }
                                    } ]
                                 }, {
                                    "localId" : "163",
                                    "locator" : "106:49-106:90",
                                    "name" : "ToQuantity",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "162",
                                       "locator" : "106:72-106:89",
                                       "strict" : false,
                                       "type" : "As",
                                       "operand" : {
                                          "localId" : "160",
                                          "locator" : "106:72-106:77",
                                          "name" : "choice",
                                          "type" : "OperandRef"
                                       },
                                       "asTypeSpecifier" : {
                                          "localId" : "161",
                                          "locator" : "106:82-106:89",
                                          "name" : "{http://hl7.org/fhir}Age",
                                          "type" : "NamedTypeSpecifier"
                                       }
                                    } ]
                                 } ]
                              }, {
                                 "localId" : "165",
                                 "locator" : "106:94-106:99",
                                 "value" : 1,
                                 "unit" : "year",
                                 "type" : "Quantity"
                              } ]
                           }
                        }
                     }
                  }
               }, {
                  "localId" : "197",
                  "locator" : "107:5-109:109",
                  "when" : {
                     "localId" : "171",
                     "locator" : "107:10-107:29",
                     "type" : "Is",
                     "operand" : {
                        "localId" : "169",
                        "locator" : "107:10-107:15",
                        "name" : "choice",
                        "type" : "OperandRef"
                     },
                     "isTypeSpecifier" : {
                        "localId" : "170",
                        "locator" : "107:20-107:29",
                        "name" : "{http://hl7.org/fhir}Range",
                        "type" : "NamedTypeSpecifier"
                     }
                  },
                  "then" : {
                     "type" : "Interval",
                     "low" : {
                        "type" : "ToDateTime",
                        "operand" : {
                           "path" : "low",
                           "type" : "Property",
                           "source" : {
                              "localId" : "196",
                              "locator" : "108:7-109:109",
                              "lowClosed" : true,
                              "highClosed" : false,
                              "type" : "Interval",
                              "low" : {
                                 "localId" : "182",
                                 "locator" : "108:16-108:105",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "175",
                                    "locator" : "108:16-108:52",
                                    "name" : "ToDate",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "174",
                                       "locator" : "108:35-108:51",
                                       "path" : "birthDate",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "173",
                                          "locator" : "108:35-108:41",
                                          "name" : "Patient",
                                          "type" : "ExpressionRef"
                                       }
                                    } ]
                                 }, {
                                    "localId" : "181",
                                    "locator" : "108:56-108:105",
                                    "name" : "ToQuantity",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "180",
                                       "locator" : "108:79-108:104",
                                       "path" : "low",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "179",
                                          "locator" : "108:79-108:100",
                                          "strict" : false,
                                          "type" : "As",
                                          "operand" : {
                                             "localId" : "177",
                                             "locator" : "108:80-108:85",
                                             "name" : "choice",
                                             "type" : "OperandRef"
                                          },
                                          "asTypeSpecifier" : {
                                             "localId" : "178",
                                             "locator" : "108:90-108:99",
                                             "name" : "{http://hl7.org/fhir}Range",
                                             "type" : "NamedTypeSpecifier"
                                          }
                                       }
                                    } ]
                                 } ]
                              },
                              "high" : {
                                 "localId" : "195",
                                 "locator" : "109:9-109:108",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "193",
                                    "locator" : "109:9-109:99",
                                    "type" : "Add",
                                    "operand" : [ {
                                       "localId" : "186",
                                       "locator" : "109:9-109:45",
                                       "name" : "ToDate",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "185",
                                          "locator" : "109:28-109:44",
                                          "path" : "birthDate",
                                          "type" : "Property",
                                          "source" : {
                                             "localId" : "184",
                                             "locator" : "109:28-109:34",
                                             "name" : "Patient",
                                             "type" : "ExpressionRef"
                                          }
                                       } ]
                                    }, {
                                       "localId" : "192",
                                       "locator" : "109:49-109:99",
                                       "name" : "ToQuantity",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "191",
                                          "locator" : "109:72-109:98",
                                          "path" : "high",
                                          "type" : "Property",
                                          "source" : {
                                             "localId" : "190",
                                             "locator" : "109:72-109:93",
                                             "strict" : false,
                                             "type" : "As",
                                             "operand" : {
                                                "localId" : "188",
                                                "locator" : "109:73-109:78",
                                                "name" : "choice",
                                                "type" : "OperandRef"
                                             },
                                             "asTypeSpecifier" : {
                                                "localId" : "189",
                                                "locator" : "109:83-109:92",
                                                "name" : "{http://hl7.org/fhir}Range",
                                                "type" : "NamedTypeSpecifier"
                                             }
                                          }
                                       } ]
                                    } ]
                                 }, {
                                    "localId" : "194",
                                    "locator" : "109:103-109:108",
                                    "value" : 1,
                                    "unit" : "year",
                                    "type" : "Quantity"
                                 } ]
                              }
                           }
                        }
                     },
                     "lowClosedExpression" : {
                        "path" : "lowClosed",
                        "type" : "Property",
                        "source" : {
                           "localId" : "196",
                           "locator" : "108:7-109:109",
                           "lowClosed" : true,
                           "highClosed" : false,
                           "type" : "Interval",
                           "low" : {
                              "localId" : "182",
                              "locator" : "108:16-108:105",
                              "type" : "Add",
                              "operand" : [ {
                                 "localId" : "175",
                                 "locator" : "108:16-108:52",
                                 "name" : "ToDate",
                                 "libraryName" : "FHIRHelpers",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "174",
                                    "locator" : "108:35-108:51",
                                    "path" : "birthDate",
                                    "type" : "Property",
                                    "source" : {
                                       "localId" : "173",
                                       "locator" : "108:35-108:41",
                                       "name" : "Patient",
                                       "type" : "ExpressionRef"
                                    }
                                 } ]
                              }, {
                                 "localId" : "181",
                                 "locator" : "108:56-108:105",
                                 "name" : "ToQuantity",
                                 "libraryName" : "FHIRHelpers",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "180",
                                    "locator" : "108:79-108:104",
                                    "path" : "low",
                                    "type" : "Property",
                                    "source" : {
                                       "localId" : "179",
                                       "locator" : "108:79-108:100",
                                       "strict" : false,
                                       "type" : "As",
                                       "operand" : {
                                          "localId" : "177",
                                          "locator" : "108:80-108:85",
                                          "name" : "choice",
                                          "type" : "OperandRef"
                                       },
                                       "asTypeSpecifier" : {
                                          "localId" : "178",
                                          "locator" : "108:90-108:99",
                                          "name" : "{http://hl7.org/fhir}Range",
                                          "type" : "NamedTypeSpecifier"
                                       }
                                    }
                                 } ]
                              } ]
                           },
                           "high" : {
                              "localId" : "195",
                              "locator" : "109:9-109:108",
                              "type" : "Add",
                              "operand" : [ {
                                 "localId" : "193",
                                 "locator" : "109:9-109:99",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "186",
                                    "locator" : "109:9-109:45",
                                    "name" : "ToDate",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "185",
                                       "locator" : "109:28-109:44",
                                       "path" : "birthDate",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "184",
                                          "locator" : "109:28-109:34",
                                          "name" : "Patient",
                                          "type" : "ExpressionRef"
                                       }
                                    } ]
                                 }, {
                                    "localId" : "192",
                                    "locator" : "109:49-109:99",
                                    "name" : "ToQuantity",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "191",
                                       "locator" : "109:72-109:98",
                                       "path" : "high",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "190",
                                          "locator" : "109:72-109:93",
                                          "strict" : false,
                                          "type" : "As",
                                          "operand" : {
                                             "localId" : "188",
                                             "locator" : "109:73-109:78",
                                             "name" : "choice",
                                             "type" : "OperandRef"
                                          },
                                          "asTypeSpecifier" : {
                                             "localId" : "189",
                                             "locator" : "109:83-109:92",
                                             "name" : "{http://hl7.org/fhir}Range",
                                             "type" : "NamedTypeSpecifier"
                                          }
                                       }
                                    } ]
                                 } ]
                              }, {
                                 "localId" : "194",
                                 "locator" : "109:103-109:108",
                                 "value" : 1,
                                 "unit" : "year",
                                 "type" : "Quantity"
                              } ]
                           }
                        }
                     },
                     "high" : {
                        "type" : "ToDateTime",
                        "operand" : {
                           "path" : "high",
                           "type" : "Property",
                           "source" : {
                              "localId" : "196",
                              "locator" : "108:7-109:109",
                              "lowClosed" : true,
                              "highClosed" : false,
                              "type" : "Interval",
                              "low" : {
                                 "localId" : "182",
                                 "locator" : "108:16-108:105",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "175",
                                    "locator" : "108:16-108:52",
                                    "name" : "ToDate",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "174",
                                       "locator" : "108:35-108:51",
                                       "path" : "birthDate",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "173",
                                          "locator" : "108:35-108:41",
                                          "name" : "Patient",
                                          "type" : "ExpressionRef"
                                       }
                                    } ]
                                 }, {
                                    "localId" : "181",
                                    "locator" : "108:56-108:105",
                                    "name" : "ToQuantity",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "180",
                                       "locator" : "108:79-108:104",
                                       "path" : "low",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "179",
                                          "locator" : "108:79-108:100",
                                          "strict" : false,
                                          "type" : "As",
                                          "operand" : {
                                             "localId" : "177",
                                             "locator" : "108:80-108:85",
                                             "name" : "choice",
                                             "type" : "OperandRef"
                                          },
                                          "asTypeSpecifier" : {
                                             "localId" : "178",
                                             "locator" : "108:90-108:99",
                                             "name" : "{http://hl7.org/fhir}Range",
                                             "type" : "NamedTypeSpecifier"
                                          }
                                       }
                                    } ]
                                 } ]
                              },
                              "high" : {
                                 "localId" : "195",
                                 "locator" : "109:9-109:108",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "193",
                                    "locator" : "109:9-109:99",
                                    "type" : "Add",
                                    "operand" : [ {
                                       "localId" : "186",
                                       "locator" : "109:9-109:45",
                                       "name" : "ToDate",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "185",
                                          "locator" : "109:28-109:44",
                                          "path" : "birthDate",
                                          "type" : "Property",
                                          "source" : {
                                             "localId" : "184",
                                             "locator" : "109:28-109:34",
                                             "name" : "Patient",
                                             "type" : "ExpressionRef"
                                          }
                                       } ]
                                    }, {
                                       "localId" : "192",
                                       "locator" : "109:49-109:99",
                                       "name" : "ToQuantity",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "191",
                                          "locator" : "109:72-109:98",
                                          "path" : "high",
                                          "type" : "Property",
                                          "source" : {
                                             "localId" : "190",
                                             "locator" : "109:72-109:93",
                                             "strict" : false,
                                             "type" : "As",
                                             "operand" : {
                                                "localId" : "188",
                                                "locator" : "109:73-109:78",
                                                "name" : "choice",
                                                "type" : "OperandRef"
                                             },
                                             "asTypeSpecifier" : {
                                                "localId" : "189",
                                                "locator" : "109:83-109:92",
                                                "name" : "{http://hl7.org/fhir}Range",
                                                "type" : "NamedTypeSpecifier"
                                             }
                                          }
                                       } ]
                                    } ]
                                 }, {
                                    "localId" : "194",
                                    "locator" : "109:103-109:108",
                                    "value" : 1,
                                    "unit" : "year",
                                    "type" : "Quantity"
                                 } ]
                              }
                           }
                        }
                     },
                     "highClosedExpression" : {
                        "path" : "highClosed",
                        "type" : "Property",
                        "source" : {
                           "localId" : "196",
                           "locator" : "108:7-109:109",
                           "lowClosed" : true,
                           "highClosed" : false,
                           "type" : "Interval",
                           "low" : {
                              "localId" : "182",
                              "locator" : "108:16-108:105",
                              "type" : "Add",
                              "operand" : [ {
                                 "localId" : "175",
                                 "locator" : "108:16-108:52",
                                 "name" : "ToDate",
                                 "libraryName" : "FHIRHelpers",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "174",
                                    "locator" : "108:35-108:51",
                                    "path" : "birthDate",
                                    "type" : "Property",
                                    "source" : {
                                       "localId" : "173",
                                       "locator" : "108:35-108:41",
                                       "name" : "Patient",
                                       "type" : "ExpressionRef"
                                    }
                                 } ]
                              }, {
                                 "localId" : "181",
                                 "locator" : "108:56-108:105",
                                 "name" : "ToQuantity",
                                 "libraryName" : "FHIRHelpers",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "180",
                                    "locator" : "108:79-108:104",
                                    "path" : "low",
                                    "type" : "Property",
                                    "source" : {
                                       "localId" : "179",
                                       "locator" : "108:79-108:100",
                                       "strict" : false,
                                       "type" : "As",
                                       "operand" : {
                                          "localId" : "177",
                                          "locator" : "108:80-108:85",
                                          "name" : "choice",
                                          "type" : "OperandRef"
                                       },
                                       "asTypeSpecifier" : {
                                          "localId" : "178",
                                          "locator" : "108:90-108:99",
                                          "name" : "{http://hl7.org/fhir}Range",
                                          "type" : "NamedTypeSpecifier"
                                       }
                                    }
                                 } ]
                              } ]
                           },
                           "high" : {
                              "localId" : "195",
                              "locator" : "109:9-109:108",
                              "type" : "Add",
                              "operand" : [ {
                                 "localId" : "193",
                                 "locator" : "109:9-109:99",
                                 "type" : "Add",
                                 "operand" : [ {
                                    "localId" : "186",
                                    "locator" : "109:9-109:45",
                                    "name" : "ToDate",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "185",
                                       "locator" : "109:28-109:44",
                                       "path" : "birthDate",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "184",
                                          "locator" : "109:28-109:34",
                                          "name" : "Patient",
                                          "type" : "ExpressionRef"
                                       }
                                    } ]
                                 }, {
                                    "localId" : "192",
                                    "locator" : "109:49-109:99",
                                    "name" : "ToQuantity",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "191",
                                       "locator" : "109:72-109:98",
                                       "path" : "high",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "190",
                                          "locator" : "109:72-109:93",
                                          "strict" : false,
                                          "type" : "As",
                                          "operand" : {
                                             "localId" : "188",
                                             "locator" : "109:73-109:78",
                                             "name" : "choice",
                                             "type" : "OperandRef"
                                          },
                                          "asTypeSpecifier" : {
                                             "localId" : "189",
                                             "locator" : "109:83-109:92",
                                             "name" : "{http://hl7.org/fhir}Range",
                                             "type" : "NamedTypeSpecifier"
                                          }
                                       }
                                    } ]
                                 } ]
                              }, {
                                 "localId" : "194",
                                 "locator" : "109:103-109:108",
                                 "value" : 1,
                                 "unit" : "year",
                                 "type" : "Quantity"
                              } ]
                           }
                        }
                     }
                  }
               }, {
                  "localId" : "210",
                  "locator" : "110:5-111:116",
                  "when" : {
                     "localId" : "200",
                     "locator" : "110:10-110:30",
                     "type" : "Is",
                     "operand" : {
                        "localId" : "198",
                        "locator" : "110:10-110:15",
                        "name" : "choice",
                        "type" : "OperandRef"
                     },
                     "isTypeSpecifier" : {
                        "localId" : "199",
                        "locator" : "110:20-110:30",
                        "name" : "{http://hl7.org/fhir}Timing",
                        "type" : "NamedTypeSpecifier"
                     }
                  },
                  "then" : {
                     "localId" : "209",
                     "locator" : "111:7-111:116",
                     "type" : "Message",
                     "source" : {
                        "localId" : "204",
                        "locator" : "111:15-111:40",
                        "strict" : false,
                        "type" : "As",
                        "operand" : {
                           "localId" : "201",
                           "locator" : "111:15-111:18",
                           "type" : "Null"
                        },
                        "asTypeSpecifier" : {
                           "localId" : "203",
                           "locator" : "111:23-111:40",
                           "type" : "IntervalTypeSpecifier",
                           "pointType" : {
                              "localId" : "202",
                              "locator" : "111:32-111:39",
                              "name" : "{urn:hl7-org:elm-types:r1}DateTime",
                              "type" : "NamedTypeSpecifier"
                           }
                        }
                     },
                     "condition" : {
                        "localId" : "205",
                        "locator" : "111:43-111:46",
                        "valueType" : "{urn:hl7-org:elm-types:r1}Boolean",
                        "value" : "true",
                        "type" : "Literal"
                     },
                     "code" : {
                        "localId" : "206",
                        "locator" : "111:49-111:51",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "1",
                        "type" : "Literal"
                     },
                     "severity" : {
                        "localId" : "207",
                        "locator" : "111:54-111:60",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "Error",
                        "type" : "Literal"
                     },
                     "message" : {
                        "localId" : "208",
                        "locator" : "111:63-111:115",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "Cannot compute a single interval from a Timing type",
                        "type" : "Literal"
                     }
                  }
               }, {
                  "localId" : "223",
                  "locator" : "112:5-113:111",
                  "when" : {
                     "localId" : "213",
                     "locator" : "112:10-112:30",
                     "type" : "Is",
                     "operand" : {
                        "localId" : "211",
                        "locator" : "112:10-112:15",
                        "name" : "choice",
                        "type" : "OperandRef"
                     },
                     "isTypeSpecifier" : {
                        "localId" : "212",
                        "locator" : "112:20-112:30",
                        "name" : "{http://hl7.org/fhir}string",
                        "type" : "NamedTypeSpecifier"
                     }
                  },
                  "then" : {
                     "localId" : "222",
                     "locator" : "113:7-113:111",
                     "type" : "Message",
                     "source" : {
                        "localId" : "217",
                        "locator" : "113:15-113:40",
                        "strict" : false,
                        "type" : "As",
                        "operand" : {
                           "localId" : "214",
                           "locator" : "113:15-113:18",
                           "type" : "Null"
                        },
                        "asTypeSpecifier" : {
                           "localId" : "216",
                           "locator" : "113:23-113:40",
                           "type" : "IntervalTypeSpecifier",
                           "pointType" : {
                              "localId" : "215",
                              "locator" : "113:32-113:39",
                              "name" : "{urn:hl7-org:elm-types:r1}DateTime",
                              "type" : "NamedTypeSpecifier"
                           }
                        }
                     },
                     "condition" : {
                        "localId" : "218",
                        "locator" : "113:43-113:46",
                        "valueType" : "{urn:hl7-org:elm-types:r1}Boolean",
                        "value" : "true",
                        "type" : "Literal"
                     },
                     "code" : {
                        "localId" : "219",
                        "locator" : "113:49-113:51",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "1",
                        "type" : "Literal"
                     },
                     "severity" : {
                        "localId" : "220",
                        "locator" : "113:54-113:60",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "Error",
                        "type" : "Literal"
                     },
                     "message" : {
                        "localId" : "221",
                        "locator" : "113:63-113:110",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "Cannot compute an interval from a String value",
                        "type" : "Literal"
                     }
                  }
               } ],
               "else" : {
                  "localId" : "227",
                  "locator" : "115:7-115:32",
                  "strict" : false,
                  "type" : "As",
                  "operand" : {
                     "localId" : "224",
                     "locator" : "115:7-115:10",
                     "type" : "Null"
                  },
                  "asTypeSpecifier" : {
                     "localId" : "226",
                     "locator" : "115:15-115:32",
                     "type" : "IntervalTypeSpecifier",
                     "pointType" : {
                        "localId" : "225",
                        "locator" : "115:24-115:31",
                        "name" : "{urn:hl7-org:elm-types:r1}DateTime",
                        "type" : "NamedTypeSpecifier"
                     }
                  }
               }
            },
            "operand" : [ {
               "name" : "choice",
               "operandTypeSpecifier" : {
                  "localId" : "102",
                  "locator" : "96:42-96:137",
                  "type" : "ChoiceTypeSpecifier",
                  "choice" : [ {
                     "localId" : "95",
                     "locator" : "96:49-96:61",
                     "name" : "{http://hl7.org/fhir}dateTime",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "96",
                     "locator" : "96:64-96:74",
                     "name" : "{http://hl7.org/fhir}Period",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "97",
                     "locator" : "96:77-96:87",
                     "name" : "{http://hl7.org/fhir}Timing",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "98",
                     "locator" : "96:90-96:101",
                     "name" : "{http://hl7.org/fhir}instant",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "99",
                     "locator" : "96:104-96:114",
                     "name" : "{http://hl7.org/fhir}string",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "100",
                     "locator" : "96:117-96:124",
                     "name" : "{http://hl7.org/fhir}Age",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "101",
                     "locator" : "96:127-96:136",
                     "name" : "{http://hl7.org/fhir}Range",
                     "type" : "NamedTypeSpecifier"
                  } ]
               }
            } ]
         }, {
            "localId" : "349",
            "locator" : "123:1-138:11",
            "name" : "abatementInterval",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns an interval representing the normalized Abatement of a given Condition resource."
               }, {
                  "name" : "comment",
                  "value" : "NOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value."
               } ],
               "s" : {
                  "r" : "349",
                  "s" : [ {
                     "value" : [ "/*\n@description: Returns an interval representing the normalized Abatement of a given Condition resource.\n@comment: NOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value.\n*/\n","define fluent function ","abatementInterval","(","condition"," " ]
                  }, {
                     "r" : "230",
                     "s" : [ {
                        "value" : [ "Condition" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "348",
                     "s" : [ {
                        "r" : "348",
                        "s" : [ {
                           "value" : [ "if " ]
                        }, {
                           "r" : "234",
                           "s" : [ {
                              "r" : "232",
                              "s" : [ {
                                 "r" : "231",
                                 "s" : [ {
                                    "value" : [ "condition" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "232",
                                 "s" : [ {
                                    "value" : [ "abatement" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ " is " ]
                           }, {
                              "r" : "233",
                              "s" : [ {
                                 "value" : [ "FHIR",".","dateTime" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " then\n    " ]
                        }, {
                           "r" : "247",
                           "s" : [ {
                              "value" : [ "Interval[" ]
                           }, {
                              "r" : "240",
                              "s" : [ {
                                 "r" : "235",
                                 "s" : [ {
                                    "value" : [ "FHIRHelpers" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "240",
                                 "s" : [ {
                                    "value" : [ "ToDateTime","(" ]
                                 }, {
                                    "r" : "239",
                                    "s" : [ {
                                       "r" : "237",
                                       "s" : [ {
                                          "r" : "236",
                                          "s" : [ {
                                             "value" : [ "condition" ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "237",
                                          "s" : [ {
                                             "value" : [ "abatement" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " as " ]
                                    }, {
                                       "r" : "238",
                                       "s" : [ {
                                          "value" : [ "FHIR",".","dateTime" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ ", " ]
                           }, {
                              "r" : "246",
                              "s" : [ {
                                 "r" : "241",
                                 "s" : [ {
                                    "value" : [ "FHIRHelpers" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "246",
                                 "s" : [ {
                                    "value" : [ "ToDateTime","(" ]
                                 }, {
                                    "r" : "245",
                                    "s" : [ {
                                       "r" : "243",
                                       "s" : [ {
                                          "r" : "242",
                                          "s" : [ {
                                             "value" : [ "condition" ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "243",
                                          "s" : [ {
                                             "value" : [ "abatement" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " as " ]
                                    }, {
                                       "r" : "244",
                                       "s" : [ {
                                          "value" : [ "FHIR",".","dateTime" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "]" ]
                           } ]
                        }, {
                           "value" : [ "\n  else " ]
                        }, {
                           "r" : "347",
                           "s" : [ {
                              "value" : [ "if " ]
                           }, {
                              "r" : "251",
                              "s" : [ {
                                 "r" : "249",
                                 "s" : [ {
                                    "r" : "248",
                                    "s" : [ {
                                       "value" : [ "condition" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "249",
                                    "s" : [ {
                                       "value" : [ "abatement" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " is " ]
                              }, {
                                 "r" : "250",
                                 "s" : [ {
                                    "value" : [ "FHIR",".","Period" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ " then\n    " ]
                           }, {
                              "r" : "257",
                              "s" : [ {
                                 "r" : "252",
                                 "s" : [ {
                                    "value" : [ "FHIRHelpers" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "257",
                                 "s" : [ {
                                    "value" : [ "ToInterval","(" ]
                                 }, {
                                    "r" : "256",
                                    "s" : [ {
                                       "r" : "254",
                                       "s" : [ {
                                          "r" : "253",
                                          "s" : [ {
                                             "value" : [ "condition" ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "254",
                                          "s" : [ {
                                             "value" : [ "abatement" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " as " ]
                                    }, {
                                       "r" : "255",
                                       "s" : [ {
                                          "value" : [ "FHIR",".","Period" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "\n  else " ]
                           }, {
                              "r" : "346",
                              "s" : [ {
                                 "value" : [ "if " ]
                              }, {
                                 "r" : "261",
                                 "s" : [ {
                                    "r" : "259",
                                    "s" : [ {
                                       "r" : "258",
                                       "s" : [ {
                                          "value" : [ "condition" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "259",
                                       "s" : [ {
                                          "value" : [ "abatement" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ " is " ]
                                 }, {
                                    "r" : "260",
                                    "s" : [ {
                                       "value" : [ "FHIR",".","string" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " then\n    " ]
                              }, {
                                 "r" : "270",
                                 "s" : [ {
                                    "value" : [ "Message","(" ]
                                 }, {
                                    "r" : "265",
                                    "s" : [ {
                                       "r" : "262",
                                       "value" : [ "null"," as " ]
                                    }, {
                                       "r" : "264",
                                       "s" : [ {
                                          "value" : [ "Interval<" ]
                                       }, {
                                          "r" : "263",
                                          "s" : [ {
                                             "value" : [ "DateTime" ]
                                          } ]
                                       }, {
                                          "value" : [ ">" ]
                                       } ]
                                    } ]
                                 }, {
                                    "r" : "266",
                                    "value" : [ ", ","true",", " ]
                                 }, {
                                    "r" : "267",
                                    "s" : [ {
                                       "value" : [ "'1'" ]
                                    } ]
                                 }, {
                                    "value" : [ ", " ]
                                 }, {
                                    "r" : "268",
                                    "s" : [ {
                                       "value" : [ "'Error'" ]
                                    } ]
                                 }, {
                                    "value" : [ ", " ]
                                 }, {
                                    "r" : "269",
                                    "s" : [ {
                                       "value" : [ "'Cannot compute an interval from a String value'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              }, {
                                 "value" : [ "\n  else " ]
                              }, {
                                 "r" : "345",
                                 "s" : [ {
                                    "value" : [ "if " ]
                                 }, {
                                    "r" : "274",
                                    "s" : [ {
                                       "r" : "272",
                                       "s" : [ {
                                          "r" : "271",
                                          "s" : [ {
                                             "value" : [ "condition" ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "272",
                                          "s" : [ {
                                             "value" : [ "abatement" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " is " ]
                                    }, {
                                       "r" : "273",
                                       "s" : [ {
                                          "value" : [ "FHIR",".","Age" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ " then\n    " ]
                                 }, {
                                    "r" : "299",
                                    "s" : [ {
                                       "value" : [ "Interval[" ]
                                    }, {
                                       "r" : "285",
                                       "s" : [ {
                                          "r" : "278",
                                          "s" : [ {
                                             "r" : "275",
                                             "s" : [ {
                                                "value" : [ "FHIRHelpers" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "278",
                                             "s" : [ {
                                                "value" : [ "ToDate","(" ]
                                             }, {
                                                "r" : "277",
                                                "s" : [ {
                                                   "r" : "276",
                                                   "s" : [ {
                                                      "value" : [ "Patient" ]
                                                   } ]
                                                }, {
                                                   "value" : [ "." ]
                                                }, {
                                                   "r" : "277",
                                                   "s" : [ {
                                                      "value" : [ "birthDate" ]
                                                   } ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ " + " ]
                                       }, {
                                          "r" : "284",
                                          "s" : [ {
                                             "r" : "279",
                                             "s" : [ {
                                                "value" : [ "FHIRHelpers" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "284",
                                             "s" : [ {
                                                "value" : [ "ToQuantity","(" ]
                                             }, {
                                                "r" : "283",
                                                "s" : [ {
                                                   "r" : "281",
                                                   "s" : [ {
                                                      "r" : "280",
                                                      "s" : [ {
                                                         "value" : [ "condition" ]
                                                      } ]
                                                   }, {
                                                      "value" : [ "." ]
                                                   }, {
                                                      "r" : "281",
                                                      "s" : [ {
                                                         "value" : [ "abatement" ]
                                                      } ]
                                                   } ]
                                                }, {
                                                   "value" : [ " as " ]
                                                }, {
                                                   "r" : "282",
                                                   "s" : [ {
                                                      "value" : [ "FHIR",".","Age" ]
                                                   } ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ ",\n      " ]
                                    }, {
                                       "r" : "298",
                                       "s" : [ {
                                          "r" : "296",
                                          "s" : [ {
                                             "r" : "289",
                                             "s" : [ {
                                                "r" : "286",
                                                "s" : [ {
                                                   "value" : [ "FHIRHelpers" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "289",
                                                "s" : [ {
                                                   "value" : [ "ToDate","(" ]
                                                }, {
                                                   "r" : "288",
                                                   "s" : [ {
                                                      "r" : "287",
                                                      "s" : [ {
                                                         "value" : [ "Patient" ]
                                                      } ]
                                                   }, {
                                                      "value" : [ "." ]
                                                   }, {
                                                      "r" : "288",
                                                      "s" : [ {
                                                         "value" : [ "birthDate" ]
                                                      } ]
                                                   } ]
                                                }, {
                                                   "value" : [ ")" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ " + " ]
                                          }, {
                                             "r" : "295",
                                             "s" : [ {
                                                "r" : "290",
                                                "s" : [ {
                                                   "value" : [ "FHIRHelpers" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "295",
                                                "s" : [ {
                                                   "value" : [ "ToQuantity","(" ]
                                                }, {
                                                   "r" : "294",
                                                   "s" : [ {
                                                      "r" : "292",
                                                      "s" : [ {
                                                         "r" : "291",
                                                         "s" : [ {
                                                            "value" : [ "condition" ]
                                                         } ]
                                                      }, {
                                                         "value" : [ "." ]
                                                      }, {
                                                         "r" : "292",
                                                         "s" : [ {
                                                            "value" : [ "abatement" ]
                                                         } ]
                                                      } ]
                                                   }, {
                                                      "value" : [ " as " ]
                                                   }, {
                                                      "r" : "293",
                                                      "s" : [ {
                                                         "value" : [ "FHIR",".","Age" ]
                                                      } ]
                                                   } ]
                                                }, {
                                                   "value" : [ ")" ]
                                                } ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ " + " ]
                                       }, {
                                          "r" : "297",
                                          "s" : [ {
                                             "value" : [ "1 ","year" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ ")" ]
                                    } ]
                                 }, {
                                    "value" : [ "\n  else " ]
                                 }, {
                                    "r" : "344",
                                    "s" : [ {
                                       "value" : [ "if " ]
                                    }, {
                                       "r" : "303",
                                       "s" : [ {
                                          "r" : "301",
                                          "s" : [ {
                                             "r" : "300",
                                             "s" : [ {
                                                "value" : [ "condition" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "301",
                                             "s" : [ {
                                                "value" : [ "abatement" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ " is " ]
                                       }, {
                                          "r" : "302",
                                          "s" : [ {
                                             "value" : [ "FHIR",".","Range" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " then\n    " ]
                                    }, {
                                       "r" : "330",
                                       "s" : [ {
                                          "value" : [ "Interval[" ]
                                       }, {
                                          "r" : "315",
                                          "s" : [ {
                                             "r" : "307",
                                             "s" : [ {
                                                "r" : "304",
                                                "s" : [ {
                                                   "value" : [ "FHIRHelpers" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "307",
                                                "s" : [ {
                                                   "value" : [ "ToDate","(" ]
                                                }, {
                                                   "r" : "306",
                                                   "s" : [ {
                                                      "r" : "305",
                                                      "s" : [ {
                                                         "value" : [ "Patient" ]
                                                      } ]
                                                   }, {
                                                      "value" : [ "." ]
                                                   }, {
                                                      "r" : "306",
                                                      "s" : [ {
                                                         "value" : [ "birthDate" ]
                                                      } ]
                                                   } ]
                                                }, {
                                                   "value" : [ ")" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ " + " ]
                                          }, {
                                             "r" : "314",
                                             "s" : [ {
                                                "r" : "308",
                                                "s" : [ {
                                                   "value" : [ "FHIRHelpers" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "314",
                                                "s" : [ {
                                                   "value" : [ "ToQuantity","(" ]
                                                }, {
                                                   "r" : "313",
                                                   "s" : [ {
                                                      "r" : "312",
                                                      "s" : [ {
                                                         "value" : [ "(" ]
                                                      }, {
                                                         "r" : "312",
                                                         "s" : [ {
                                                            "r" : "310",
                                                            "s" : [ {
                                                               "r" : "309",
                                                               "s" : [ {
                                                                  "value" : [ "condition" ]
                                                               } ]
                                                            }, {
                                                               "value" : [ "." ]
                                                            }, {
                                                               "r" : "310",
                                                               "s" : [ {
                                                                  "value" : [ "abatement" ]
                                                               } ]
                                                            } ]
                                                         }, {
                                                            "value" : [ " as " ]
                                                         }, {
                                                            "r" : "311",
                                                            "s" : [ {
                                                               "value" : [ "FHIR",".","Range" ]
                                                            } ]
                                                         } ]
                                                      }, {
                                                         "value" : [ ")" ]
                                                      } ]
                                                   }, {
                                                      "value" : [ "." ]
                                                   }, {
                                                      "r" : "313",
                                                      "s" : [ {
                                                         "value" : [ "low" ]
                                                      } ]
                                                   } ]
                                                }, {
                                                   "value" : [ ")" ]
                                                } ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ ",\n      " ]
                                       }, {
                                          "r" : "329",
                                          "s" : [ {
                                             "r" : "327",
                                             "s" : [ {
                                                "r" : "319",
                                                "s" : [ {
                                                   "r" : "316",
                                                   "s" : [ {
                                                      "value" : [ "FHIRHelpers" ]
                                                   } ]
                                                }, {
                                                   "value" : [ "." ]
                                                }, {
                                                   "r" : "319",
                                                   "s" : [ {
                                                      "value" : [ "ToDate","(" ]
                                                   }, {
                                                      "r" : "318",
                                                      "s" : [ {
                                                         "r" : "317",
                                                         "s" : [ {
                                                            "value" : [ "Patient" ]
                                                         } ]
                                                      }, {
                                                         "value" : [ "." ]
                                                      }, {
                                                         "r" : "318",
                                                         "s" : [ {
                                                            "value" : [ "birthDate" ]
                                                         } ]
                                                      } ]
                                                   }, {
                                                      "value" : [ ")" ]
                                                   } ]
                                                } ]
                                             }, {
                                                "value" : [ " + " ]
                                             }, {
                                                "r" : "326",
                                                "s" : [ {
                                                   "r" : "320",
                                                   "s" : [ {
                                                      "value" : [ "FHIRHelpers" ]
                                                   } ]
                                                }, {
                                                   "value" : [ "." ]
                                                }, {
                                                   "r" : "326",
                                                   "s" : [ {
                                                      "value" : [ "ToQuantity","(" ]
                                                   }, {
                                                      "r" : "325",
                                                      "s" : [ {
                                                         "r" : "324",
                                                         "s" : [ {
                                                            "value" : [ "(" ]
                                                         }, {
                                                            "r" : "324",
                                                            "s" : [ {
                                                               "r" : "322",
                                                               "s" : [ {
                                                                  "r" : "321",
                                                                  "s" : [ {
                                                                     "value" : [ "condition" ]
                                                                  } ]
                                                               }, {
                                                                  "value" : [ "." ]
                                                               }, {
                                                                  "r" : "322",
                                                                  "s" : [ {
                                                                     "value" : [ "abatement" ]
                                                                  } ]
                                                               } ]
                                                            }, {
                                                               "value" : [ " as " ]
                                                            }, {
                                                               "r" : "323",
                                                               "s" : [ {
                                                                  "value" : [ "FHIR",".","Range" ]
                                                               } ]
                                                            } ]
                                                         }, {
                                                            "value" : [ ")" ]
                                                         } ]
                                                      }, {
                                                         "value" : [ "." ]
                                                      }, {
                                                         "r" : "325",
                                                         "s" : [ {
                                                            "value" : [ "high" ]
                                                         } ]
                                                      } ]
                                                   }, {
                                                      "value" : [ ")" ]
                                                   } ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ " + " ]
                                          }, {
                                             "r" : "328",
                                             "s" : [ {
                                                "value" : [ "1 ","year" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ ")" ]
                                       } ]
                                    }, {
                                       "value" : [ "\n  else " ]
                                    }, {
                                       "r" : "343",
                                       "s" : [ {
                                          "value" : [ "if " ]
                                       }, {
                                          "r" : "334",
                                          "s" : [ {
                                             "r" : "332",
                                             "s" : [ {
                                                "r" : "331",
                                                "s" : [ {
                                                   "value" : [ "condition" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "332",
                                                "s" : [ {
                                                   "value" : [ "abatement" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ " is " ]
                                          }, {
                                             "r" : "333",
                                             "s" : [ {
                                                "value" : [ "FHIR",".","boolean" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ " then\n    " ]
                                       }, {
                                          "r" : "341",
                                          "s" : [ {
                                             "value" : [ "Interval[" ]
                                          }, {
                                             "r" : "338",
                                             "s" : [ {
                                                "value" : [ "end of " ]
                                             }, {
                                                "r" : "337",
                                                "s" : [ {
                                                   "r" : "336",
                                                   "s" : [ {
                                                      "r" : "335",
                                                      "s" : [ {
                                                         "value" : [ "condition" ]
                                                      } ]
                                                   }, {
                                                      "value" : [ "." ]
                                                   }, {
                                                      "r" : "336",
                                                      "s" : [ {
                                                         "value" : [ "onset" ]
                                                      } ]
                                                   } ]
                                                }, {
                                                   "value" : [ "." ]
                                                }, {
                                                   "r" : "337",
                                                   "s" : [ {
                                                      "value" : [ "toInterval","()" ]
                                                   } ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ ", " ]
                                          }, {
                                             "r" : "340",
                                             "s" : [ {
                                                "r" : "339",
                                                "s" : [ {
                                                   "value" : [ "condition" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "340",
                                                "s" : [ {
                                                   "value" : [ "recordedDate" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ ")" ]
                                          } ]
                                       }, {
                                          "r" : "342",
                                          "value" : [ "\n  else ","null" ]
                                       } ]
                                    } ]
                                 } ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "348",
               "locator" : "124:3-138:11",
               "type" : "If",
               "condition" : {
                  "localId" : "234",
                  "locator" : "124:6-124:41",
                  "type" : "Is",
                  "operand" : {
                     "localId" : "232",
                     "locator" : "124:6-124:24",
                     "path" : "abatement",
                     "type" : "Property",
                     "source" : {
                        "localId" : "231",
                        "locator" : "124:6-124:14",
                        "name" : "condition",
                        "type" : "OperandRef"
                     }
                  },
                  "isTypeSpecifier" : {
                     "localId" : "233",
                     "locator" : "124:29-124:41",
                     "name" : "{http://hl7.org/fhir}dateTime",
                     "type" : "NamedTypeSpecifier"
                  }
               },
               "then" : {
                  "localId" : "247",
                  "locator" : "125:5-125:136",
                  "lowClosed" : true,
                  "highClosed" : true,
                  "type" : "Interval",
                  "low" : {
                     "localId" : "240",
                     "locator" : "125:14-125:73",
                     "name" : "ToDateTime",
                     "libraryName" : "FHIRHelpers",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "239",
                        "locator" : "125:37-125:72",
                        "strict" : false,
                        "type" : "As",
                        "operand" : {
                           "localId" : "237",
                           "locator" : "125:37-125:55",
                           "path" : "abatement",
                           "type" : "Property",
                           "source" : {
                              "localId" : "236",
                              "locator" : "125:37-125:45",
                              "name" : "condition",
                              "type" : "OperandRef"
                           }
                        },
                        "asTypeSpecifier" : {
                           "localId" : "238",
                           "locator" : "125:60-125:72",
                           "name" : "{http://hl7.org/fhir}dateTime",
                           "type" : "NamedTypeSpecifier"
                        }
                     } ]
                  },
                  "high" : {
                     "localId" : "246",
                     "locator" : "125:76-125:135",
                     "name" : "ToDateTime",
                     "libraryName" : "FHIRHelpers",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "245",
                        "locator" : "125:99-125:134",
                        "strict" : false,
                        "type" : "As",
                        "operand" : {
                           "localId" : "243",
                           "locator" : "125:99-125:117",
                           "path" : "abatement",
                           "type" : "Property",
                           "source" : {
                              "localId" : "242",
                              "locator" : "125:99-125:107",
                              "name" : "condition",
                              "type" : "OperandRef"
                           }
                        },
                        "asTypeSpecifier" : {
                           "localId" : "244",
                           "locator" : "125:122-125:134",
                           "name" : "{http://hl7.org/fhir}dateTime",
                           "type" : "NamedTypeSpecifier"
                        }
                     } ]
                  }
               },
               "else" : {
                  "localId" : "347",
                  "locator" : "126:8-138:11",
                  "type" : "If",
                  "condition" : {
                     "localId" : "251",
                     "locator" : "126:11-126:44",
                     "type" : "Is",
                     "operand" : {
                        "localId" : "249",
                        "locator" : "126:11-126:29",
                        "path" : "abatement",
                        "type" : "Property",
                        "source" : {
                           "localId" : "248",
                           "locator" : "126:11-126:19",
                           "name" : "condition",
                           "type" : "OperandRef"
                        }
                     },
                     "isTypeSpecifier" : {
                        "localId" : "250",
                        "locator" : "126:34-126:44",
                        "name" : "{http://hl7.org/fhir}Period",
                        "type" : "NamedTypeSpecifier"
                     }
                  },
                  "then" : {
                     "localId" : "257",
                     "locator" : "127:5-127:62",
                     "name" : "ToInterval",
                     "libraryName" : "FHIRHelpers",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "256",
                        "locator" : "127:28-127:61",
                        "strict" : false,
                        "type" : "As",
                        "operand" : {
                           "localId" : "254",
                           "locator" : "127:28-127:46",
                           "path" : "abatement",
                           "type" : "Property",
                           "source" : {
                              "localId" : "253",
                              "locator" : "127:28-127:36",
                              "name" : "condition",
                              "type" : "OperandRef"
                           }
                        },
                        "asTypeSpecifier" : {
                           "localId" : "255",
                           "locator" : "127:51-127:61",
                           "name" : "{http://hl7.org/fhir}Period",
                           "type" : "NamedTypeSpecifier"
                        }
                     } ]
                  },
                  "else" : {
                     "localId" : "346",
                     "locator" : "128:8-138:11",
                     "type" : "If",
                     "condition" : {
                        "localId" : "261",
                        "locator" : "128:11-128:44",
                        "type" : "Is",
                        "operand" : {
                           "localId" : "259",
                           "locator" : "128:11-128:29",
                           "path" : "abatement",
                           "type" : "Property",
                           "source" : {
                              "localId" : "258",
                              "locator" : "128:11-128:19",
                              "name" : "condition",
                              "type" : "OperandRef"
                           }
                        },
                        "isTypeSpecifier" : {
                           "localId" : "260",
                           "locator" : "128:34-128:44",
                           "name" : "{http://hl7.org/fhir}string",
                           "type" : "NamedTypeSpecifier"
                        }
                     },
                     "then" : {
                        "localId" : "270",
                        "locator" : "129:5-129:109",
                        "type" : "Message",
                        "source" : {
                           "localId" : "265",
                           "locator" : "129:13-129:38",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "262",
                              "locator" : "129:13-129:16",
                              "type" : "Null"
                           },
                           "asTypeSpecifier" : {
                              "localId" : "264",
                              "locator" : "129:21-129:38",
                              "type" : "IntervalTypeSpecifier",
                              "pointType" : {
                                 "localId" : "263",
                                 "locator" : "129:30-129:37",
                                 "name" : "{urn:hl7-org:elm-types:r1}DateTime",
                                 "type" : "NamedTypeSpecifier"
                              }
                           }
                        },
                        "condition" : {
                           "localId" : "266",
                           "locator" : "129:41-129:44",
                           "valueType" : "{urn:hl7-org:elm-types:r1}Boolean",
                           "value" : "true",
                           "type" : "Literal"
                        },
                        "code" : {
                           "localId" : "267",
                           "locator" : "129:47-129:49",
                           "valueType" : "{urn:hl7-org:elm-types:r1}String",
                           "value" : "1",
                           "type" : "Literal"
                        },
                        "severity" : {
                           "localId" : "268",
                           "locator" : "129:52-129:58",
                           "valueType" : "{urn:hl7-org:elm-types:r1}String",
                           "value" : "Error",
                           "type" : "Literal"
                        },
                        "message" : {
                           "localId" : "269",
                           "locator" : "129:61-129:108",
                           "valueType" : "{urn:hl7-org:elm-types:r1}String",
                           "value" : "Cannot compute an interval from a String value",
                           "type" : "Literal"
                        }
                     },
                     "else" : {
                        "localId" : "345",
                        "locator" : "130:8-138:11",
                        "type" : "If",
                        "condition" : {
                           "localId" : "274",
                           "locator" : "130:11-130:41",
                           "type" : "Is",
                           "operand" : {
                              "localId" : "272",
                              "locator" : "130:11-130:29",
                              "path" : "abatement",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "271",
                                 "locator" : "130:11-130:19",
                                 "name" : "condition",
                                 "type" : "OperandRef"
                              }
                           },
                           "isTypeSpecifier" : {
                              "localId" : "273",
                              "locator" : "130:34-130:41",
                              "name" : "{http://hl7.org/fhir}Age",
                              "type" : "NamedTypeSpecifier"
                           }
                        },
                        "then" : {
                           "type" : "Interval",
                           "low" : {
                              "type" : "ToDateTime",
                              "operand" : {
                                 "path" : "low",
                                 "type" : "Property",
                                 "source" : {
                                    "localId" : "299",
                                    "locator" : "131:5-132:111",
                                    "lowClosed" : true,
                                    "highClosed" : false,
                                    "type" : "Interval",
                                    "low" : {
                                       "localId" : "285",
                                       "locator" : "131:14-131:108",
                                       "type" : "Add",
                                       "operand" : [ {
                                          "localId" : "278",
                                          "locator" : "131:14-131:50",
                                          "name" : "ToDate",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "277",
                                             "locator" : "131:33-131:49",
                                             "path" : "birthDate",
                                             "type" : "Property",
                                             "source" : {
                                                "localId" : "276",
                                                "locator" : "131:33-131:39",
                                                "name" : "Patient",
                                                "type" : "ExpressionRef"
                                             }
                                          } ]
                                       }, {
                                          "localId" : "284",
                                          "locator" : "131:54-131:108",
                                          "name" : "ToQuantity",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "283",
                                             "locator" : "131:77-131:107",
                                             "strict" : false,
                                             "type" : "As",
                                             "operand" : {
                                                "localId" : "281",
                                                "locator" : "131:77-131:95",
                                                "path" : "abatement",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "280",
                                                   "locator" : "131:77-131:85",
                                                   "name" : "condition",
                                                   "type" : "OperandRef"
                                                }
                                             },
                                             "asTypeSpecifier" : {
                                                "localId" : "282",
                                                "locator" : "131:100-131:107",
                                                "name" : "{http://hl7.org/fhir}Age",
                                                "type" : "NamedTypeSpecifier"
                                             }
                                          } ]
                                       } ]
                                    },
                                    "high" : {
                                       "localId" : "298",
                                       "locator" : "132:7-132:110",
                                       "type" : "Add",
                                       "operand" : [ {
                                          "localId" : "296",
                                          "locator" : "132:7-132:101",
                                          "type" : "Add",
                                          "operand" : [ {
                                             "localId" : "289",
                                             "locator" : "132:7-132:43",
                                             "name" : "ToDate",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "288",
                                                "locator" : "132:26-132:42",
                                                "path" : "birthDate",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "287",
                                                   "locator" : "132:26-132:32",
                                                   "name" : "Patient",
                                                   "type" : "ExpressionRef"
                                                }
                                             } ]
                                          }, {
                                             "localId" : "295",
                                             "locator" : "132:47-132:101",
                                             "name" : "ToQuantity",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "294",
                                                "locator" : "132:70-132:100",
                                                "strict" : false,
                                                "type" : "As",
                                                "operand" : {
                                                   "localId" : "292",
                                                   "locator" : "132:70-132:88",
                                                   "path" : "abatement",
                                                   "type" : "Property",
                                                   "source" : {
                                                      "localId" : "291",
                                                      "locator" : "132:70-132:78",
                                                      "name" : "condition",
                                                      "type" : "OperandRef"
                                                   }
                                                },
                                                "asTypeSpecifier" : {
                                                   "localId" : "293",
                                                   "locator" : "132:93-132:100",
                                                   "name" : "{http://hl7.org/fhir}Age",
                                                   "type" : "NamedTypeSpecifier"
                                                }
                                             } ]
                                          } ]
                                       }, {
                                          "localId" : "297",
                                          "locator" : "132:105-132:110",
                                          "value" : 1,
                                          "unit" : "year",
                                          "type" : "Quantity"
                                       } ]
                                    }
                                 }
                              }
                           },
                           "lowClosedExpression" : {
                              "path" : "lowClosed",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "299",
                                 "locator" : "131:5-132:111",
                                 "lowClosed" : true,
                                 "highClosed" : false,
                                 "type" : "Interval",
                                 "low" : {
                                    "localId" : "285",
                                    "locator" : "131:14-131:108",
                                    "type" : "Add",
                                    "operand" : [ {
                                       "localId" : "278",
                                       "locator" : "131:14-131:50",
                                       "name" : "ToDate",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "277",
                                          "locator" : "131:33-131:49",
                                          "path" : "birthDate",
                                          "type" : "Property",
                                          "source" : {
                                             "localId" : "276",
                                             "locator" : "131:33-131:39",
                                             "name" : "Patient",
                                             "type" : "ExpressionRef"
                                          }
                                       } ]
                                    }, {
                                       "localId" : "284",
                                       "locator" : "131:54-131:108",
                                       "name" : "ToQuantity",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "283",
                                          "locator" : "131:77-131:107",
                                          "strict" : false,
                                          "type" : "As",
                                          "operand" : {
                                             "localId" : "281",
                                             "locator" : "131:77-131:95",
                                             "path" : "abatement",
                                             "type" : "Property",
                                             "source" : {
                                                "localId" : "280",
                                                "locator" : "131:77-131:85",
                                                "name" : "condition",
                                                "type" : "OperandRef"
                                             }
                                          },
                                          "asTypeSpecifier" : {
                                             "localId" : "282",
                                             "locator" : "131:100-131:107",
                                             "name" : "{http://hl7.org/fhir}Age",
                                             "type" : "NamedTypeSpecifier"
                                          }
                                       } ]
                                    } ]
                                 },
                                 "high" : {
                                    "localId" : "298",
                                    "locator" : "132:7-132:110",
                                    "type" : "Add",
                                    "operand" : [ {
                                       "localId" : "296",
                                       "locator" : "132:7-132:101",
                                       "type" : "Add",
                                       "operand" : [ {
                                          "localId" : "289",
                                          "locator" : "132:7-132:43",
                                          "name" : "ToDate",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "288",
                                             "locator" : "132:26-132:42",
                                             "path" : "birthDate",
                                             "type" : "Property",
                                             "source" : {
                                                "localId" : "287",
                                                "locator" : "132:26-132:32",
                                                "name" : "Patient",
                                                "type" : "ExpressionRef"
                                             }
                                          } ]
                                       }, {
                                          "localId" : "295",
                                          "locator" : "132:47-132:101",
                                          "name" : "ToQuantity",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "294",
                                             "locator" : "132:70-132:100",
                                             "strict" : false,
                                             "type" : "As",
                                             "operand" : {
                                                "localId" : "292",
                                                "locator" : "132:70-132:88",
                                                "path" : "abatement",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "291",
                                                   "locator" : "132:70-132:78",
                                                   "name" : "condition",
                                                   "type" : "OperandRef"
                                                }
                                             },
                                             "asTypeSpecifier" : {
                                                "localId" : "293",
                                                "locator" : "132:93-132:100",
                                                "name" : "{http://hl7.org/fhir}Age",
                                                "type" : "NamedTypeSpecifier"
                                             }
                                          } ]
                                       } ]
                                    }, {
                                       "localId" : "297",
                                       "locator" : "132:105-132:110",
                                       "value" : 1,
                                       "unit" : "year",
                                       "type" : "Quantity"
                                    } ]
                                 }
                              }
                           },
                           "high" : {
                              "type" : "ToDateTime",
                              "operand" : {
                                 "path" : "high",
                                 "type" : "Property",
                                 "source" : {
                                    "localId" : "299",
                                    "locator" : "131:5-132:111",
                                    "lowClosed" : true,
                                    "highClosed" : false,
                                    "type" : "Interval",
                                    "low" : {
                                       "localId" : "285",
                                       "locator" : "131:14-131:108",
                                       "type" : "Add",
                                       "operand" : [ {
                                          "localId" : "278",
                                          "locator" : "131:14-131:50",
                                          "name" : "ToDate",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "277",
                                             "locator" : "131:33-131:49",
                                             "path" : "birthDate",
                                             "type" : "Property",
                                             "source" : {
                                                "localId" : "276",
                                                "locator" : "131:33-131:39",
                                                "name" : "Patient",
                                                "type" : "ExpressionRef"
                                             }
                                          } ]
                                       }, {
                                          "localId" : "284",
                                          "locator" : "131:54-131:108",
                                          "name" : "ToQuantity",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "283",
                                             "locator" : "131:77-131:107",
                                             "strict" : false,
                                             "type" : "As",
                                             "operand" : {
                                                "localId" : "281",
                                                "locator" : "131:77-131:95",
                                                "path" : "abatement",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "280",
                                                   "locator" : "131:77-131:85",
                                                   "name" : "condition",
                                                   "type" : "OperandRef"
                                                }
                                             },
                                             "asTypeSpecifier" : {
                                                "localId" : "282",
                                                "locator" : "131:100-131:107",
                                                "name" : "{http://hl7.org/fhir}Age",
                                                "type" : "NamedTypeSpecifier"
                                             }
                                          } ]
                                       } ]
                                    },
                                    "high" : {
                                       "localId" : "298",
                                       "locator" : "132:7-132:110",
                                       "type" : "Add",
                                       "operand" : [ {
                                          "localId" : "296",
                                          "locator" : "132:7-132:101",
                                          "type" : "Add",
                                          "operand" : [ {
                                             "localId" : "289",
                                             "locator" : "132:7-132:43",
                                             "name" : "ToDate",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "288",
                                                "locator" : "132:26-132:42",
                                                "path" : "birthDate",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "287",
                                                   "locator" : "132:26-132:32",
                                                   "name" : "Patient",
                                                   "type" : "ExpressionRef"
                                                }
                                             } ]
                                          }, {
                                             "localId" : "295",
                                             "locator" : "132:47-132:101",
                                             "name" : "ToQuantity",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "294",
                                                "locator" : "132:70-132:100",
                                                "strict" : false,
                                                "type" : "As",
                                                "operand" : {
                                                   "localId" : "292",
                                                   "locator" : "132:70-132:88",
                                                   "path" : "abatement",
                                                   "type" : "Property",
                                                   "source" : {
                                                      "localId" : "291",
                                                      "locator" : "132:70-132:78",
                                                      "name" : "condition",
                                                      "type" : "OperandRef"
                                                   }
                                                },
                                                "asTypeSpecifier" : {
                                                   "localId" : "293",
                                                   "locator" : "132:93-132:100",
                                                   "name" : "{http://hl7.org/fhir}Age",
                                                   "type" : "NamedTypeSpecifier"
                                                }
                                             } ]
                                          } ]
                                       }, {
                                          "localId" : "297",
                                          "locator" : "132:105-132:110",
                                          "value" : 1,
                                          "unit" : "year",
                                          "type" : "Quantity"
                                       } ]
                                    }
                                 }
                              }
                           },
                           "highClosedExpression" : {
                              "path" : "highClosed",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "299",
                                 "locator" : "131:5-132:111",
                                 "lowClosed" : true,
                                 "highClosed" : false,
                                 "type" : "Interval",
                                 "low" : {
                                    "localId" : "285",
                                    "locator" : "131:14-131:108",
                                    "type" : "Add",
                                    "operand" : [ {
                                       "localId" : "278",
                                       "locator" : "131:14-131:50",
                                       "name" : "ToDate",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "277",
                                          "locator" : "131:33-131:49",
                                          "path" : "birthDate",
                                          "type" : "Property",
                                          "source" : {
                                             "localId" : "276",
                                             "locator" : "131:33-131:39",
                                             "name" : "Patient",
                                             "type" : "ExpressionRef"
                                          }
                                       } ]
                                    }, {
                                       "localId" : "284",
                                       "locator" : "131:54-131:108",
                                       "name" : "ToQuantity",
                                       "libraryName" : "FHIRHelpers",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "283",
                                          "locator" : "131:77-131:107",
                                          "strict" : false,
                                          "type" : "As",
                                          "operand" : {
                                             "localId" : "281",
                                             "locator" : "131:77-131:95",
                                             "path" : "abatement",
                                             "type" : "Property",
                                             "source" : {
                                                "localId" : "280",
                                                "locator" : "131:77-131:85",
                                                "name" : "condition",
                                                "type" : "OperandRef"
                                             }
                                          },
                                          "asTypeSpecifier" : {
                                             "localId" : "282",
                                             "locator" : "131:100-131:107",
                                             "name" : "{http://hl7.org/fhir}Age",
                                             "type" : "NamedTypeSpecifier"
                                          }
                                       } ]
                                    } ]
                                 },
                                 "high" : {
                                    "localId" : "298",
                                    "locator" : "132:7-132:110",
                                    "type" : "Add",
                                    "operand" : [ {
                                       "localId" : "296",
                                       "locator" : "132:7-132:101",
                                       "type" : "Add",
                                       "operand" : [ {
                                          "localId" : "289",
                                          "locator" : "132:7-132:43",
                                          "name" : "ToDate",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "288",
                                             "locator" : "132:26-132:42",
                                             "path" : "birthDate",
                                             "type" : "Property",
                                             "source" : {
                                                "localId" : "287",
                                                "locator" : "132:26-132:32",
                                                "name" : "Patient",
                                                "type" : "ExpressionRef"
                                             }
                                          } ]
                                       }, {
                                          "localId" : "295",
                                          "locator" : "132:47-132:101",
                                          "name" : "ToQuantity",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "294",
                                             "locator" : "132:70-132:100",
                                             "strict" : false,
                                             "type" : "As",
                                             "operand" : {
                                                "localId" : "292",
                                                "locator" : "132:70-132:88",
                                                "path" : "abatement",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "291",
                                                   "locator" : "132:70-132:78",
                                                   "name" : "condition",
                                                   "type" : "OperandRef"
                                                }
                                             },
                                             "asTypeSpecifier" : {
                                                "localId" : "293",
                                                "locator" : "132:93-132:100",
                                                "name" : "{http://hl7.org/fhir}Age",
                                                "type" : "NamedTypeSpecifier"
                                             }
                                          } ]
                                       } ]
                                    }, {
                                       "localId" : "297",
                                       "locator" : "132:105-132:110",
                                       "value" : 1,
                                       "unit" : "year",
                                       "type" : "Quantity"
                                    } ]
                                 }
                              }
                           }
                        },
                        "else" : {
                           "localId" : "344",
                           "locator" : "133:8-138:11",
                           "type" : "If",
                           "condition" : {
                              "localId" : "303",
                              "locator" : "133:11-133:43",
                              "type" : "Is",
                              "operand" : {
                                 "localId" : "301",
                                 "locator" : "133:11-133:29",
                                 "path" : "abatement",
                                 "type" : "Property",
                                 "source" : {
                                    "localId" : "300",
                                    "locator" : "133:11-133:19",
                                    "name" : "condition",
                                    "type" : "OperandRef"
                                 }
                              },
                              "isTypeSpecifier" : {
                                 "localId" : "302",
                                 "locator" : "133:34-133:43",
                                 "name" : "{http://hl7.org/fhir}Range",
                                 "type" : "NamedTypeSpecifier"
                              }
                           },
                           "then" : {
                              "type" : "Interval",
                              "low" : {
                                 "type" : "ToDateTime",
                                 "operand" : {
                                    "path" : "low",
                                    "type" : "Property",
                                    "source" : {
                                       "localId" : "330",
                                       "locator" : "134:5-135:120",
                                       "lowClosed" : true,
                                       "highClosed" : false,
                                       "type" : "Interval",
                                       "low" : {
                                          "localId" : "315",
                                          "locator" : "134:14-134:116",
                                          "type" : "Add",
                                          "operand" : [ {
                                             "localId" : "307",
                                             "locator" : "134:14-134:50",
                                             "name" : "ToDate",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "306",
                                                "locator" : "134:33-134:49",
                                                "path" : "birthDate",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "305",
                                                   "locator" : "134:33-134:39",
                                                   "name" : "Patient",
                                                   "type" : "ExpressionRef"
                                                }
                                             } ]
                                          }, {
                                             "localId" : "314",
                                             "locator" : "134:54-134:116",
                                             "name" : "ToQuantity",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "313",
                                                "locator" : "134:77-134:115",
                                                "path" : "low",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "312",
                                                   "locator" : "134:77-134:111",
                                                   "strict" : false,
                                                   "type" : "As",
                                                   "operand" : {
                                                      "localId" : "310",
                                                      "locator" : "134:78-134:96",
                                                      "path" : "abatement",
                                                      "type" : "Property",
                                                      "source" : {
                                                         "localId" : "309",
                                                         "locator" : "134:78-134:86",
                                                         "name" : "condition",
                                                         "type" : "OperandRef"
                                                      }
                                                   },
                                                   "asTypeSpecifier" : {
                                                      "localId" : "311",
                                                      "locator" : "134:101-134:110",
                                                      "name" : "{http://hl7.org/fhir}Range",
                                                      "type" : "NamedTypeSpecifier"
                                                   }
                                                }
                                             } ]
                                          } ]
                                       },
                                       "high" : {
                                          "localId" : "329",
                                          "locator" : "135:7-135:119",
                                          "type" : "Add",
                                          "operand" : [ {
                                             "localId" : "327",
                                             "locator" : "135:7-135:110",
                                             "type" : "Add",
                                             "operand" : [ {
                                                "localId" : "319",
                                                "locator" : "135:7-135:43",
                                                "name" : "ToDate",
                                                "libraryName" : "FHIRHelpers",
                                                "type" : "FunctionRef",
                                                "operand" : [ {
                                                   "localId" : "318",
                                                   "locator" : "135:26-135:42",
                                                   "path" : "birthDate",
                                                   "type" : "Property",
                                                   "source" : {
                                                      "localId" : "317",
                                                      "locator" : "135:26-135:32",
                                                      "name" : "Patient",
                                                      "type" : "ExpressionRef"
                                                   }
                                                } ]
                                             }, {
                                                "localId" : "326",
                                                "locator" : "135:47-135:110",
                                                "name" : "ToQuantity",
                                                "libraryName" : "FHIRHelpers",
                                                "type" : "FunctionRef",
                                                "operand" : [ {
                                                   "localId" : "325",
                                                   "locator" : "135:70-135:109",
                                                   "path" : "high",
                                                   "type" : "Property",
                                                   "source" : {
                                                      "localId" : "324",
                                                      "locator" : "135:70-135:104",
                                                      "strict" : false,
                                                      "type" : "As",
                                                      "operand" : {
                                                         "localId" : "322",
                                                         "locator" : "135:71-135:89",
                                                         "path" : "abatement",
                                                         "type" : "Property",
                                                         "source" : {
                                                            "localId" : "321",
                                                            "locator" : "135:71-135:79",
                                                            "name" : "condition",
                                                            "type" : "OperandRef"
                                                         }
                                                      },
                                                      "asTypeSpecifier" : {
                                                         "localId" : "323",
                                                         "locator" : "135:94-135:103",
                                                         "name" : "{http://hl7.org/fhir}Range",
                                                         "type" : "NamedTypeSpecifier"
                                                      }
                                                   }
                                                } ]
                                             } ]
                                          }, {
                                             "localId" : "328",
                                             "locator" : "135:114-135:119",
                                             "value" : 1,
                                             "unit" : "year",
                                             "type" : "Quantity"
                                          } ]
                                       }
                                    }
                                 }
                              },
                              "lowClosedExpression" : {
                                 "path" : "lowClosed",
                                 "type" : "Property",
                                 "source" : {
                                    "localId" : "330",
                                    "locator" : "134:5-135:120",
                                    "lowClosed" : true,
                                    "highClosed" : false,
                                    "type" : "Interval",
                                    "low" : {
                                       "localId" : "315",
                                       "locator" : "134:14-134:116",
                                       "type" : "Add",
                                       "operand" : [ {
                                          "localId" : "307",
                                          "locator" : "134:14-134:50",
                                          "name" : "ToDate",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "306",
                                             "locator" : "134:33-134:49",
                                             "path" : "birthDate",
                                             "type" : "Property",
                                             "source" : {
                                                "localId" : "305",
                                                "locator" : "134:33-134:39",
                                                "name" : "Patient",
                                                "type" : "ExpressionRef"
                                             }
                                          } ]
                                       }, {
                                          "localId" : "314",
                                          "locator" : "134:54-134:116",
                                          "name" : "ToQuantity",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "313",
                                             "locator" : "134:77-134:115",
                                             "path" : "low",
                                             "type" : "Property",
                                             "source" : {
                                                "localId" : "312",
                                                "locator" : "134:77-134:111",
                                                "strict" : false,
                                                "type" : "As",
                                                "operand" : {
                                                   "localId" : "310",
                                                   "locator" : "134:78-134:96",
                                                   "path" : "abatement",
                                                   "type" : "Property",
                                                   "source" : {
                                                      "localId" : "309",
                                                      "locator" : "134:78-134:86",
                                                      "name" : "condition",
                                                      "type" : "OperandRef"
                                                   }
                                                },
                                                "asTypeSpecifier" : {
                                                   "localId" : "311",
                                                   "locator" : "134:101-134:110",
                                                   "name" : "{http://hl7.org/fhir}Range",
                                                   "type" : "NamedTypeSpecifier"
                                                }
                                             }
                                          } ]
                                       } ]
                                    },
                                    "high" : {
                                       "localId" : "329",
                                       "locator" : "135:7-135:119",
                                       "type" : "Add",
                                       "operand" : [ {
                                          "localId" : "327",
                                          "locator" : "135:7-135:110",
                                          "type" : "Add",
                                          "operand" : [ {
                                             "localId" : "319",
                                             "locator" : "135:7-135:43",
                                             "name" : "ToDate",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "318",
                                                "locator" : "135:26-135:42",
                                                "path" : "birthDate",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "317",
                                                   "locator" : "135:26-135:32",
                                                   "name" : "Patient",
                                                   "type" : "ExpressionRef"
                                                }
                                             } ]
                                          }, {
                                             "localId" : "326",
                                             "locator" : "135:47-135:110",
                                             "name" : "ToQuantity",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "325",
                                                "locator" : "135:70-135:109",
                                                "path" : "high",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "324",
                                                   "locator" : "135:70-135:104",
                                                   "strict" : false,
                                                   "type" : "As",
                                                   "operand" : {
                                                      "localId" : "322",
                                                      "locator" : "135:71-135:89",
                                                      "path" : "abatement",
                                                      "type" : "Property",
                                                      "source" : {
                                                         "localId" : "321",
                                                         "locator" : "135:71-135:79",
                                                         "name" : "condition",
                                                         "type" : "OperandRef"
                                                      }
                                                   },
                                                   "asTypeSpecifier" : {
                                                      "localId" : "323",
                                                      "locator" : "135:94-135:103",
                                                      "name" : "{http://hl7.org/fhir}Range",
                                                      "type" : "NamedTypeSpecifier"
                                                   }
                                                }
                                             } ]
                                          } ]
                                       }, {
                                          "localId" : "328",
                                          "locator" : "135:114-135:119",
                                          "value" : 1,
                                          "unit" : "year",
                                          "type" : "Quantity"
                                       } ]
                                    }
                                 }
                              },
                              "high" : {
                                 "type" : "ToDateTime",
                                 "operand" : {
                                    "path" : "high",
                                    "type" : "Property",
                                    "source" : {
                                       "localId" : "330",
                                       "locator" : "134:5-135:120",
                                       "lowClosed" : true,
                                       "highClosed" : false,
                                       "type" : "Interval",
                                       "low" : {
                                          "localId" : "315",
                                          "locator" : "134:14-134:116",
                                          "type" : "Add",
                                          "operand" : [ {
                                             "localId" : "307",
                                             "locator" : "134:14-134:50",
                                             "name" : "ToDate",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "306",
                                                "locator" : "134:33-134:49",
                                                "path" : "birthDate",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "305",
                                                   "locator" : "134:33-134:39",
                                                   "name" : "Patient",
                                                   "type" : "ExpressionRef"
                                                }
                                             } ]
                                          }, {
                                             "localId" : "314",
                                             "locator" : "134:54-134:116",
                                             "name" : "ToQuantity",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "313",
                                                "locator" : "134:77-134:115",
                                                "path" : "low",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "312",
                                                   "locator" : "134:77-134:111",
                                                   "strict" : false,
                                                   "type" : "As",
                                                   "operand" : {
                                                      "localId" : "310",
                                                      "locator" : "134:78-134:96",
                                                      "path" : "abatement",
                                                      "type" : "Property",
                                                      "source" : {
                                                         "localId" : "309",
                                                         "locator" : "134:78-134:86",
                                                         "name" : "condition",
                                                         "type" : "OperandRef"
                                                      }
                                                   },
                                                   "asTypeSpecifier" : {
                                                      "localId" : "311",
                                                      "locator" : "134:101-134:110",
                                                      "name" : "{http://hl7.org/fhir}Range",
                                                      "type" : "NamedTypeSpecifier"
                                                   }
                                                }
                                             } ]
                                          } ]
                                       },
                                       "high" : {
                                          "localId" : "329",
                                          "locator" : "135:7-135:119",
                                          "type" : "Add",
                                          "operand" : [ {
                                             "localId" : "327",
                                             "locator" : "135:7-135:110",
                                             "type" : "Add",
                                             "operand" : [ {
                                                "localId" : "319",
                                                "locator" : "135:7-135:43",
                                                "name" : "ToDate",
                                                "libraryName" : "FHIRHelpers",
                                                "type" : "FunctionRef",
                                                "operand" : [ {
                                                   "localId" : "318",
                                                   "locator" : "135:26-135:42",
                                                   "path" : "birthDate",
                                                   "type" : "Property",
                                                   "source" : {
                                                      "localId" : "317",
                                                      "locator" : "135:26-135:32",
                                                      "name" : "Patient",
                                                      "type" : "ExpressionRef"
                                                   }
                                                } ]
                                             }, {
                                                "localId" : "326",
                                                "locator" : "135:47-135:110",
                                                "name" : "ToQuantity",
                                                "libraryName" : "FHIRHelpers",
                                                "type" : "FunctionRef",
                                                "operand" : [ {
                                                   "localId" : "325",
                                                   "locator" : "135:70-135:109",
                                                   "path" : "high",
                                                   "type" : "Property",
                                                   "source" : {
                                                      "localId" : "324",
                                                      "locator" : "135:70-135:104",
                                                      "strict" : false,
                                                      "type" : "As",
                                                      "operand" : {
                                                         "localId" : "322",
                                                         "locator" : "135:71-135:89",
                                                         "path" : "abatement",
                                                         "type" : "Property",
                                                         "source" : {
                                                            "localId" : "321",
                                                            "locator" : "135:71-135:79",
                                                            "name" : "condition",
                                                            "type" : "OperandRef"
                                                         }
                                                      },
                                                      "asTypeSpecifier" : {
                                                         "localId" : "323",
                                                         "locator" : "135:94-135:103",
                                                         "name" : "{http://hl7.org/fhir}Range",
                                                         "type" : "NamedTypeSpecifier"
                                                      }
                                                   }
                                                } ]
                                             } ]
                                          }, {
                                             "localId" : "328",
                                             "locator" : "135:114-135:119",
                                             "value" : 1,
                                             "unit" : "year",
                                             "type" : "Quantity"
                                          } ]
                                       }
                                    }
                                 }
                              },
                              "highClosedExpression" : {
                                 "path" : "highClosed",
                                 "type" : "Property",
                                 "source" : {
                                    "localId" : "330",
                                    "locator" : "134:5-135:120",
                                    "lowClosed" : true,
                                    "highClosed" : false,
                                    "type" : "Interval",
                                    "low" : {
                                       "localId" : "315",
                                       "locator" : "134:14-134:116",
                                       "type" : "Add",
                                       "operand" : [ {
                                          "localId" : "307",
                                          "locator" : "134:14-134:50",
                                          "name" : "ToDate",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "306",
                                             "locator" : "134:33-134:49",
                                             "path" : "birthDate",
                                             "type" : "Property",
                                             "source" : {
                                                "localId" : "305",
                                                "locator" : "134:33-134:39",
                                                "name" : "Patient",
                                                "type" : "ExpressionRef"
                                             }
                                          } ]
                                       }, {
                                          "localId" : "314",
                                          "locator" : "134:54-134:116",
                                          "name" : "ToQuantity",
                                          "libraryName" : "FHIRHelpers",
                                          "type" : "FunctionRef",
                                          "operand" : [ {
                                             "localId" : "313",
                                             "locator" : "134:77-134:115",
                                             "path" : "low",
                                             "type" : "Property",
                                             "source" : {
                                                "localId" : "312",
                                                "locator" : "134:77-134:111",
                                                "strict" : false,
                                                "type" : "As",
                                                "operand" : {
                                                   "localId" : "310",
                                                   "locator" : "134:78-134:96",
                                                   "path" : "abatement",
                                                   "type" : "Property",
                                                   "source" : {
                                                      "localId" : "309",
                                                      "locator" : "134:78-134:86",
                                                      "name" : "condition",
                                                      "type" : "OperandRef"
                                                   }
                                                },
                                                "asTypeSpecifier" : {
                                                   "localId" : "311",
                                                   "locator" : "134:101-134:110",
                                                   "name" : "{http://hl7.org/fhir}Range",
                                                   "type" : "NamedTypeSpecifier"
                                                }
                                             }
                                          } ]
                                       } ]
                                    },
                                    "high" : {
                                       "localId" : "329",
                                       "locator" : "135:7-135:119",
                                       "type" : "Add",
                                       "operand" : [ {
                                          "localId" : "327",
                                          "locator" : "135:7-135:110",
                                          "type" : "Add",
                                          "operand" : [ {
                                             "localId" : "319",
                                             "locator" : "135:7-135:43",
                                             "name" : "ToDate",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "318",
                                                "locator" : "135:26-135:42",
                                                "path" : "birthDate",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "317",
                                                   "locator" : "135:26-135:32",
                                                   "name" : "Patient",
                                                   "type" : "ExpressionRef"
                                                }
                                             } ]
                                          }, {
                                             "localId" : "326",
                                             "locator" : "135:47-135:110",
                                             "name" : "ToQuantity",
                                             "libraryName" : "FHIRHelpers",
                                             "type" : "FunctionRef",
                                             "operand" : [ {
                                                "localId" : "325",
                                                "locator" : "135:70-135:109",
                                                "path" : "high",
                                                "type" : "Property",
                                                "source" : {
                                                   "localId" : "324",
                                                   "locator" : "135:70-135:104",
                                                   "strict" : false,
                                                   "type" : "As",
                                                   "operand" : {
                                                      "localId" : "322",
                                                      "locator" : "135:71-135:89",
                                                      "path" : "abatement",
                                                      "type" : "Property",
                                                      "source" : {
                                                         "localId" : "321",
                                                         "locator" : "135:71-135:79",
                                                         "name" : "condition",
                                                         "type" : "OperandRef"
                                                      }
                                                   },
                                                   "asTypeSpecifier" : {
                                                      "localId" : "323",
                                                      "locator" : "135:94-135:103",
                                                      "name" : "{http://hl7.org/fhir}Range",
                                                      "type" : "NamedTypeSpecifier"
                                                   }
                                                }
                                             } ]
                                          } ]
                                       }, {
                                          "localId" : "328",
                                          "locator" : "135:114-135:119",
                                          "value" : 1,
                                          "unit" : "year",
                                          "type" : "Quantity"
                                       } ]
                                    }
                                 }
                              }
                           },
                           "else" : {
                              "localId" : "343",
                              "locator" : "136:8-138:11",
                              "type" : "If",
                              "condition" : {
                                 "localId" : "334",
                                 "locator" : "136:11-136:45",
                                 "type" : "Is",
                                 "operand" : {
                                    "localId" : "332",
                                    "locator" : "136:11-136:29",
                                    "path" : "abatement",
                                    "type" : "Property",
                                    "source" : {
                                       "localId" : "331",
                                       "locator" : "136:11-136:19",
                                       "name" : "condition",
                                       "type" : "OperandRef"
                                    }
                                 },
                                 "isTypeSpecifier" : {
                                    "localId" : "333",
                                    "locator" : "136:34-136:45",
                                    "name" : "{http://hl7.org/fhir}boolean",
                                    "type" : "NamedTypeSpecifier"
                                 }
                              },
                              "then" : {
                                 "localId" : "341",
                                 "locator" : "137:5-137:73",
                                 "lowClosed" : true,
                                 "highClosed" : false,
                                 "type" : "Interval",
                                 "low" : {
                                    "localId" : "338",
                                    "locator" : "137:14-137:48",
                                    "type" : "End",
                                    "operand" : {
                                       "localId" : "337",
                                       "locator" : "137:21-137:48",
                                       "name" : "toInterval",
                                       "type" : "FunctionRef",
                                       "operand" : [ {
                                          "localId" : "336",
                                          "locator" : "137:21-137:35",
                                          "path" : "onset",
                                          "type" : "Property",
                                          "source" : {
                                             "localId" : "335",
                                             "locator" : "137:21-137:29",
                                             "name" : "condition",
                                             "type" : "OperandRef"
                                          }
                                       } ]
                                    }
                                 },
                                 "high" : {
                                    "name" : "ToDateTime",
                                    "libraryName" : "FHIRHelpers",
                                    "type" : "FunctionRef",
                                    "operand" : [ {
                                       "localId" : "340",
                                       "locator" : "137:51-137:72",
                                       "path" : "recordedDate",
                                       "type" : "Property",
                                       "source" : {
                                          "localId" : "339",
                                          "locator" : "137:51-137:59",
                                          "name" : "condition",
                                          "type" : "OperandRef"
                                       }
                                    } ]
                                 }
                              },
                              "else" : {
                                 "type" : "As",
                                 "operand" : {
                                    "localId" : "342",
                                    "locator" : "138:8-138:11",
                                    "type" : "Null"
                                 },
                                 "asTypeSpecifier" : {
                                    "type" : "IntervalTypeSpecifier",
                                    "pointType" : {
                                       "name" : "{urn:hl7-org:elm-types:r1}DateTime",
                                       "type" : "NamedTypeSpecifier"
                                    }
                                 }
                              }
                           }
                        }
                     }
                  }
               }
            },
            "operand" : [ {
               "name" : "condition",
               "operandTypeSpecifier" : {
                  "localId" : "230",
                  "locator" : "123:52-123:60",
                  "name" : "{http://hl7.org/fhir}Condition",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "382",
            "locator" : "145:1-151:89",
            "name" : "prevalenceInterval",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns an interval representing the normalized prevalence period of a given Condition resource."
               }, {
                  "name" : "comment",
                  "value" : "Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition."
               } ],
               "s" : {
                  "r" : "382",
                  "s" : [ {
                     "value" : [ "/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition resource.\n@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition.\n*/\n","define fluent function ","prevalenceInterval","(","condition"," " ]
                  }, {
                     "r" : "350",
                     "s" : [ {
                        "value" : [ "Condition" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "381",
                     "s" : [ {
                        "r" : "381",
                        "s" : [ {
                           "value" : [ "if " ]
                        }, {
                           "r" : "364",
                           "s" : [ {
                              "r" : "359",
                              "s" : [ {
                                 "r" : "354",
                                 "s" : [ {
                                    "r" : "352",
                                    "s" : [ {
                                       "r" : "351",
                                       "s" : [ {
                                          "value" : [ "condition" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "352",
                                       "s" : [ {
                                          "value" : [ "clinicalStatus" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ " ","~"," " ]
                                 }, {
                                    "r" : "353",
                                    "s" : [ {
                                       "value" : [ "\"active\"" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ "\n    or " ]
                              }, {
                                 "r" : "358",
                                 "s" : [ {
                                    "r" : "356",
                                    "s" : [ {
                                       "r" : "355",
                                       "s" : [ {
                                          "value" : [ "condition" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "356",
                                       "s" : [ {
                                          "value" : [ "clinicalStatus" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ " ","~"," " ]
                                 }, {
                                    "r" : "357",
                                    "s" : [ {
                                       "value" : [ "\"recurrence\"" ]
                                    } ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "\n    or " ]
                           }, {
                              "r" : "363",
                              "s" : [ {
                                 "r" : "361",
                                 "s" : [ {
                                    "r" : "360",
                                    "s" : [ {
                                       "value" : [ "condition" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "361",
                                    "s" : [ {
                                       "value" : [ "clinicalStatus" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","~"," " ]
                              }, {
                                 "r" : "362",
                                 "s" : [ {
                                    "value" : [ "\"relapse\"" ]
                                 } ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " then\n    " ]
                        }, {
                           "r" : "372",
                           "s" : [ {
                              "value" : [ "Interval[" ]
                           }, {
                              "r" : "368",
                              "s" : [ {
                                 "value" : [ "start of " ]
                              }, {
                                 "r" : "367",
                                 "s" : [ {
                                    "r" : "366",
                                    "s" : [ {
                                       "r" : "365",
                                       "s" : [ {
                                          "value" : [ "condition" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "366",
                                       "s" : [ {
                                          "value" : [ "onset" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "367",
                                    "s" : [ {
                                       "value" : [ "toInterval","()" ]
                                    } ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ ", " ]
                           }, {
                              "r" : "371",
                              "s" : [ {
                                 "value" : [ "end of " ]
                              }, {
                                 "r" : "370",
                                 "s" : [ {
                                    "r" : "369",
                                    "s" : [ {
                                       "value" : [ "condition" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "370",
                                    "s" : [ {
                                       "value" : [ "abatementInterval","()" ]
                                    } ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "]" ]
                           } ]
                        }, {
                           "value" : [ "\n  else\n    " ]
                        }, {
                           "r" : "380",
                           "s" : [ {
                              "value" : [ "Interval[" ]
                           }, {
                              "r" : "376",
                              "s" : [ {
                                 "value" : [ "start of " ]
                              }, {
                                 "r" : "375",
                                 "s" : [ {
                                    "r" : "374",
                                    "s" : [ {
                                       "r" : "373",
                                       "s" : [ {
                                          "value" : [ "condition" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "374",
                                       "s" : [ {
                                          "value" : [ "onset" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "375",
                                    "s" : [ {
                                       "value" : [ "toInterval","()" ]
                                    } ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ ", " ]
                           }, {
                              "r" : "379",
                              "s" : [ {
                                 "value" : [ "end of " ]
                              }, {
                                 "r" : "378",
                                 "s" : [ {
                                    "r" : "377",
                                    "s" : [ {
                                       "value" : [ "condition" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "378",
                                    "s" : [ {
                                       "value" : [ "abatementInterval","()" ]
                                    } ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ ")" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "381",
               "locator" : "146:3-151:89",
               "type" : "If",
               "condition" : {
                  "localId" : "364",
                  "locator" : "146:6-148:43",
                  "type" : "Or",
                  "operand" : [ {
                     "localId" : "359",
                     "locator" : "146:6-147:46",
                     "type" : "Or",
                     "operand" : [ {
                        "localId" : "354",
                        "locator" : "146:6-146:40",
                        "type" : "Equivalent",
                        "operand" : [ {
                           "name" : "ToConcept",
                           "libraryName" : "FHIRHelpers",
                           "type" : "FunctionRef",
                           "operand" : [ {
                              "localId" : "352",
                              "locator" : "146:6-146:29",
                              "path" : "clinicalStatus",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "351",
                                 "locator" : "146:6-146:14",
                                 "name" : "condition",
                                 "type" : "OperandRef"
                              }
                           } ]
                        }, {
                           "type" : "ToConcept",
                           "operand" : {
                              "localId" : "353",
                              "locator" : "146:33-146:40",
                              "name" : "active",
                              "type" : "CodeRef"
                           }
                        } ]
                     }, {
                        "localId" : "358",
                        "locator" : "147:8-147:46",
                        "type" : "Equivalent",
                        "operand" : [ {
                           "name" : "ToConcept",
                           "libraryName" : "FHIRHelpers",
                           "type" : "FunctionRef",
                           "operand" : [ {
                              "localId" : "356",
                              "locator" : "147:8-147:31",
                              "path" : "clinicalStatus",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "355",
                                 "locator" : "147:8-147:16",
                                 "name" : "condition",
                                 "type" : "OperandRef"
                              }
                           } ]
                        }, {
                           "type" : "ToConcept",
                           "operand" : {
                              "localId" : "357",
                              "locator" : "147:35-147:46",
                              "name" : "recurrence",
                              "type" : "CodeRef"
                           }
                        } ]
                     } ]
                  }, {
                     "localId" : "363",
                     "locator" : "148:8-148:43",
                     "type" : "Equivalent",
                     "operand" : [ {
                        "name" : "ToConcept",
                        "libraryName" : "FHIRHelpers",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "361",
                           "locator" : "148:8-148:31",
                           "path" : "clinicalStatus",
                           "type" : "Property",
                           "source" : {
                              "localId" : "360",
                              "locator" : "148:8-148:16",
                              "name" : "condition",
                              "type" : "OperandRef"
                           }
                        } ]
                     }, {
                        "type" : "ToConcept",
                        "operand" : {
                           "localId" : "362",
                           "locator" : "148:35-148:43",
                           "name" : "relapse",
                           "type" : "CodeRef"
                        }
                     } ]
                  } ]
               },
               "then" : {
                  "localId" : "372",
                  "locator" : "149:5-149:89",
                  "lowClosed" : true,
                  "highClosed" : true,
                  "type" : "Interval",
                  "low" : {
                     "localId" : "368",
                     "locator" : "149:14-149:50",
                     "type" : "Start",
                     "operand" : {
                        "localId" : "367",
                        "locator" : "149:23-149:50",
                        "name" : "toInterval",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "366",
                           "locator" : "149:23-149:37",
                           "path" : "onset",
                           "type" : "Property",
                           "source" : {
                              "localId" : "365",
                              "locator" : "149:23-149:31",
                              "name" : "condition",
                              "type" : "OperandRef"
                           }
                        } ]
                     }
                  },
                  "high" : {
                     "localId" : "371",
                     "locator" : "149:53-149:88",
                     "type" : "End",
                     "operand" : {
                        "localId" : "370",
                        "locator" : "149:60-149:88",
                        "name" : "abatementInterval",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "369",
                           "locator" : "149:60-149:68",
                           "name" : "condition",
                           "type" : "OperandRef"
                        } ]
                     }
                  }
               },
               "else" : {
                  "localId" : "380",
                  "locator" : "151:5-151:89",
                  "lowClosed" : true,
                  "highClosed" : false,
                  "type" : "Interval",
                  "low" : {
                     "localId" : "376",
                     "locator" : "151:14-151:50",
                     "type" : "Start",
                     "operand" : {
                        "localId" : "375",
                        "locator" : "151:23-151:50",
                        "name" : "toInterval",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "374",
                           "locator" : "151:23-151:37",
                           "path" : "onset",
                           "type" : "Property",
                           "source" : {
                              "localId" : "373",
                              "locator" : "151:23-151:31",
                              "name" : "condition",
                              "type" : "OperandRef"
                           }
                        } ]
                     }
                  },
                  "high" : {
                     "localId" : "379",
                     "locator" : "151:53-151:88",
                     "type" : "End",
                     "operand" : {
                        "localId" : "378",
                        "locator" : "151:60-151:88",
                        "name" : "abatementInterval",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "377",
                           "locator" : "151:60-151:68",
                           "name" : "condition",
                           "type" : "OperandRef"
                        } ]
                     }
                  }
               }
            },
            "operand" : [ {
               "name" : "condition",
               "operandTypeSpecifier" : {
                  "localId" : "350",
                  "locator" : "145:53-145:61",
                  "name" : "{http://hl7.org/fhir}Condition",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "388",
            "locator" : "156:1-157:24",
            "name" : "hasStart",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Given an interval, return true if the interval has a starting boundary specified (i.e. the start of the interval is not null and not the minimum DateTime value)"
               } ],
               "s" : {
                  "r" : "388",
                  "s" : [ {
                     "value" : [ "/*\n@description: Given an interval, return true if the interval has a starting boundary specified (i.e. the start of the interval is not null and not the minimum DateTime value)\n*/\n","define fluent function ","hasStart","(","period"," " ]
                  }, {
                     "r" : "384",
                     "s" : [ {
                        "value" : [ "Interval<" ]
                     }, {
                        "r" : "383",
                        "s" : [ {
                           "value" : [ "DateTime" ]
                        } ]
                     }, {
                        "value" : [ ">" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "387",
                     "s" : [ {
                        "r" : "387",
                        "s" : [ {
                           "r" : "386",
                           "s" : [ {
                              "r" : "385",
                              "s" : [ {
                                 "value" : [ "period" ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "386",
                              "s" : [ {
                                 "value" : [ "low" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " is not null" ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "387",
               "locator" : "157:3-157:24",
               "type" : "Not",
               "operand" : {
                  "locator" : "157:3-157:24",
                  "type" : "IsNull",
                  "operand" : {
                     "localId" : "386",
                     "locator" : "157:3-157:12",
                     "path" : "low",
                     "type" : "Property",
                     "source" : {
                        "localId" : "385",
                        "locator" : "157:3-157:8",
                        "name" : "period",
                        "type" : "OperandRef"
                     }
                  }
               }
            },
            "operand" : [ {
               "name" : "period",
               "operandTypeSpecifier" : {
                  "localId" : "384",
                  "locator" : "156:40-156:57",
                  "type" : "IntervalTypeSpecifier",
                  "pointType" : {
                     "localId" : "383",
                     "locator" : "156:49-156:56",
                     "name" : "{urn:hl7-org:elm-types:r1}DateTime",
                     "type" : "NamedTypeSpecifier"
                  }
               }
            } ]
         }, {
            "localId" : "394",
            "locator" : "162:1-163:25",
            "name" : "hasEnd",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Given an interval, return true if the interval has an ending boundary specified (i.e. the end of the interval is not null and not the maximum DateTime value)"
               } ],
               "s" : {
                  "r" : "394",
                  "s" : [ {
                     "value" : [ "/*\n@description: Given an interval, return true if the interval has an ending boundary specified (i.e. the end of the interval is not null and not the maximum DateTime value)\n*/\n","define fluent function ","hasEnd","(","period"," " ]
                  }, {
                     "r" : "390",
                     "s" : [ {
                        "value" : [ "Interval<" ]
                     }, {
                        "r" : "389",
                        "s" : [ {
                           "value" : [ "DateTime" ]
                        } ]
                     }, {
                        "value" : [ ">" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "393",
                     "s" : [ {
                        "r" : "393",
                        "s" : [ {
                           "r" : "392",
                           "s" : [ {
                              "r" : "391",
                              "s" : [ {
                                 "value" : [ "period" ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "392",
                              "s" : [ {
                                 "value" : [ "high" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " is not null" ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "393",
               "locator" : "163:3-163:25",
               "type" : "Not",
               "operand" : {
                  "locator" : "163:3-163:25",
                  "type" : "IsNull",
                  "operand" : {
                     "localId" : "392",
                     "locator" : "163:3-163:13",
                     "path" : "high",
                     "type" : "Property",
                     "source" : {
                        "localId" : "391",
                        "locator" : "163:3-163:8",
                        "name" : "period",
                        "type" : "OperandRef"
                     }
                  }
               }
            },
            "operand" : [ {
               "name" : "period",
               "operandTypeSpecifier" : {
                  "localId" : "390",
                  "locator" : "162:38-162:55",
                  "type" : "IntervalTypeSpecifier",
                  "pointType" : {
                     "localId" : "389",
                     "locator" : "162:47-162:54",
                     "name" : "{urn:hl7-org:elm-types:r1}DateTime",
                     "type" : "NamedTypeSpecifier"
                  }
               }
            } ]
         }, {
            "localId" : "415",
            "locator" : "168:1-174:23",
            "name" : "latest",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Given an interval, return the ending point if the interval has an ending boundary specified, otherwise, return the starting point"
               } ],
               "s" : {
                  "r" : "415",
                  "s" : [ {
                     "value" : [ "/*\n@description: Given an interval, return the ending point if the interval has an ending boundary specified, otherwise, return the starting point\n*/\n","define fluent function ","latest","(","choice"," " ]
                  }, {
                     "r" : "402",
                     "s" : [ {
                        "value" : [ "Choice<" ]
                     }, {
                        "r" : "395",
                        "s" : [ {
                           "value" : [ "FHIR",".","dateTime" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "396",
                        "s" : [ {
                           "value" : [ "FHIR",".","Period" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "397",
                        "s" : [ {
                           "value" : [ "FHIR",".","Timing" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "398",
                        "s" : [ {
                           "value" : [ "FHIR",".","instant" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "399",
                        "s" : [ {
                           "value" : [ "FHIR",".","string" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "400",
                        "s" : [ {
                           "value" : [ "FHIR",".","Age" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "401",
                        "s" : [ {
                           "value" : [ "FHIR",".","Range" ]
                        } ]
                     }, {
                        "value" : [ ">" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "414",
                     "s" : [ {
                        "r" : "414",
                        "s" : [ {
                           "s" : [ {
                              "r" : "405",
                              "s" : [ {
                                 "r" : "404",
                                 "s" : [ {
                                    "value" : [ "(" ]
                                 }, {
                                    "r" : "404",
                                    "s" : [ {
                                       "r" : "403",
                                       "s" : [ {
                                          "value" : [ "choice" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "404",
                                       "s" : [ {
                                          "value" : [ "toInterval","()" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              }, {
                                 "value" : [ " ","period" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "413",
                           "s" : [ {
                              "value" : [ "return\n      " ]
                           }, {
                              "r" : "412",
                              "s" : [ {
                                 "value" : [ "if " ]
                              }, {
                                 "r" : "407",
                                 "s" : [ {
                                    "r" : "406",
                                    "s" : [ {
                                       "value" : [ "period" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "407",
                                    "s" : [ {
                                       "value" : [ "hasEnd","()" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " then\n        " ]
                              }, {
                                 "r" : "409",
                                 "s" : [ {
                                    "value" : [ "end of " ]
                                 }, {
                                    "r" : "408",
                                    "s" : [ {
                                       "value" : [ "period" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ "\n      else\n        " ]
                              }, {
                                 "r" : "411",
                                 "s" : [ {
                                    "value" : [ "start of " ]
                                 }, {
                                    "r" : "410",
                                    "s" : [ {
                                       "value" : [ "period" ]
                                    } ]
                                 } ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "414",
               "locator" : "169:3-174:23",
               "type" : "Query",
               "source" : [ {
                  "localId" : "405",
                  "locator" : "169:3-169:30",
                  "alias" : "period",
                  "expression" : {
                     "localId" : "404",
                     "locator" : "169:3-169:23",
                     "name" : "toInterval",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "403",
                        "locator" : "169:4-169:9",
                        "name" : "choice",
                        "type" : "OperandRef"
                     } ]
                  }
               } ],
               "relationship" : [ ],
               "return" : {
                  "localId" : "413",
                  "locator" : "170:5-174:23",
                  "expression" : {
                     "localId" : "412",
                     "locator" : "171:7-174:23",
                     "type" : "If",
                     "condition" : {
                        "localId" : "407",
                        "locator" : "171:10-171:24",
                        "name" : "hasEnd",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "406",
                           "locator" : "171:10-171:15",
                           "name" : "period",
                           "type" : "AliasRef"
                        } ]
                     },
                     "then" : {
                        "localId" : "409",
                        "locator" : "172:9-172:21",
                        "type" : "End",
                        "operand" : {
                           "localId" : "408",
                           "locator" : "172:16-172:21",
                           "name" : "period",
                           "type" : "AliasRef"
                        }
                     },
                     "else" : {
                        "localId" : "411",
                        "locator" : "174:9-174:23",
                        "type" : "Start",
                        "operand" : {
                           "localId" : "410",
                           "locator" : "174:18-174:23",
                           "name" : "period",
                           "type" : "AliasRef"
                        }
                     }
                  }
               }
            },
            "operand" : [ {
               "name" : "choice",
               "operandTypeSpecifier" : {
                  "localId" : "402",
                  "locator" : "168:38-168:133",
                  "type" : "ChoiceTypeSpecifier",
                  "choice" : [ {
                     "localId" : "395",
                     "locator" : "168:45-168:57",
                     "name" : "{http://hl7.org/fhir}dateTime",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "396",
                     "locator" : "168:60-168:70",
                     "name" : "{http://hl7.org/fhir}Period",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "397",
                     "locator" : "168:73-168:83",
                     "name" : "{http://hl7.org/fhir}Timing",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "398",
                     "locator" : "168:86-168:97",
                     "name" : "{http://hl7.org/fhir}instant",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "399",
                     "locator" : "168:100-168:110",
                     "name" : "{http://hl7.org/fhir}string",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "400",
                     "locator" : "168:113-168:120",
                     "name" : "{http://hl7.org/fhir}Age",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "401",
                     "locator" : "168:123-168:132",
                     "name" : "{http://hl7.org/fhir}Range",
                     "type" : "NamedTypeSpecifier"
                  } ]
               }
            } ]
         }, {
            "localId" : "436",
            "locator" : "179:1-185:21",
            "name" : "earliest",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Given an interval, return the starting point if the interval has a starting boundary specified, otherwise, return the ending point"
               } ],
               "s" : {
                  "r" : "436",
                  "s" : [ {
                     "value" : [ "/*\n@description: Given an interval, return the starting point if the interval has a starting boundary specified, otherwise, return the ending point\n*/\n","define fluent function ","earliest","(","choice"," " ]
                  }, {
                     "r" : "423",
                     "s" : [ {
                        "value" : [ "Choice<" ]
                     }, {
                        "r" : "416",
                        "s" : [ {
                           "value" : [ "FHIR",".","dateTime" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "417",
                        "s" : [ {
                           "value" : [ "FHIR",".","Period" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "418",
                        "s" : [ {
                           "value" : [ "FHIR",".","Timing" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "419",
                        "s" : [ {
                           "value" : [ "FHIR",".","instant" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "420",
                        "s" : [ {
                           "value" : [ "FHIR",".","string" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "421",
                        "s" : [ {
                           "value" : [ "FHIR",".","Age" ]
                        } ]
                     }, {
                        "value" : [ ", " ]
                     }, {
                        "r" : "422",
                        "s" : [ {
                           "value" : [ "FHIR",".","Range" ]
                        } ]
                     }, {
                        "value" : [ ">" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "435",
                     "s" : [ {
                        "r" : "435",
                        "s" : [ {
                           "s" : [ {
                              "r" : "426",
                              "s" : [ {
                                 "r" : "425",
                                 "s" : [ {
                                    "value" : [ "(" ]
                                 }, {
                                    "r" : "425",
                                    "s" : [ {
                                       "r" : "424",
                                       "s" : [ {
                                          "value" : [ "choice" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "425",
                                       "s" : [ {
                                          "value" : [ "toInterval","()" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              }, {
                                 "value" : [ " ","period" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "434",
                           "s" : [ {
                              "value" : [ "return\n      " ]
                           }, {
                              "r" : "433",
                              "s" : [ {
                                 "value" : [ "if " ]
                              }, {
                                 "r" : "428",
                                 "s" : [ {
                                    "r" : "427",
                                    "s" : [ {
                                       "value" : [ "period" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "428",
                                    "s" : [ {
                                       "value" : [ "hasStart","()" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " then\n        " ]
                              }, {
                                 "r" : "430",
                                 "s" : [ {
                                    "value" : [ "start of " ]
                                 }, {
                                    "r" : "429",
                                    "s" : [ {
                                       "value" : [ "period" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ "\n      else\n        " ]
                              }, {
                                 "r" : "432",
                                 "s" : [ {
                                    "value" : [ "end of " ]
                                 }, {
                                    "r" : "431",
                                    "s" : [ {
                                       "value" : [ "period" ]
                                    } ]
                                 } ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "435",
               "locator" : "180:3-185:21",
               "type" : "Query",
               "source" : [ {
                  "localId" : "426",
                  "locator" : "180:3-180:30",
                  "alias" : "period",
                  "expression" : {
                     "localId" : "425",
                     "locator" : "180:3-180:23",
                     "name" : "toInterval",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "424",
                        "locator" : "180:4-180:9",
                        "name" : "choice",
                        "type" : "OperandRef"
                     } ]
                  }
               } ],
               "relationship" : [ ],
               "return" : {
                  "localId" : "434",
                  "locator" : "181:5-185:21",
                  "expression" : {
                     "localId" : "433",
                     "locator" : "182:7-185:21",
                     "type" : "If",
                     "condition" : {
                        "localId" : "428",
                        "locator" : "182:10-182:26",
                        "name" : "hasStart",
                        "type" : "FunctionRef",
                        "operand" : [ {
                           "localId" : "427",
                           "locator" : "182:10-182:15",
                           "name" : "period",
                           "type" : "AliasRef"
                        } ]
                     },
                     "then" : {
                        "localId" : "430",
                        "locator" : "183:9-183:23",
                        "type" : "Start",
                        "operand" : {
                           "localId" : "429",
                           "locator" : "183:18-183:23",
                           "name" : "period",
                           "type" : "AliasRef"
                        }
                     },
                     "else" : {
                        "localId" : "432",
                        "locator" : "185:9-185:21",
                        "type" : "End",
                        "operand" : {
                           "localId" : "431",
                           "locator" : "185:16-185:21",
                           "name" : "period",
                           "type" : "AliasRef"
                        }
                     }
                  }
               }
            },
            "operand" : [ {
               "name" : "choice",
               "operandTypeSpecifier" : {
                  "localId" : "423",
                  "locator" : "179:40-179:135",
                  "type" : "ChoiceTypeSpecifier",
                  "choice" : [ {
                     "localId" : "416",
                     "locator" : "179:47-179:59",
                     "name" : "{http://hl7.org/fhir}dateTime",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "417",
                     "locator" : "179:62-179:72",
                     "name" : "{http://hl7.org/fhir}Period",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "418",
                     "locator" : "179:75-179:85",
                     "name" : "{http://hl7.org/fhir}Timing",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "419",
                     "locator" : "179:88-179:99",
                     "name" : "{http://hl7.org/fhir}instant",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "420",
                     "locator" : "179:102-179:112",
                     "name" : "{http://hl7.org/fhir}string",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "421",
                     "locator" : "179:115-179:122",
                     "name" : "{http://hl7.org/fhir}Age",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "422",
                     "locator" : "179:125-179:134",
                     "name" : "{http://hl7.org/fhir}Range",
                     "type" : "NamedTypeSpecifier"
                  } ]
               }
            } ]
         }, {
            "localId" : "448",
            "locator" : "195:1-198:10",
            "name" : "extensions",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns any extensions defined on the given resource with the specified url."
               }, {
                  "name" : "comment",
                  "value" : "NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info."
               } ],
               "s" : {
                  "r" : "448",
                  "s" : [ {
                     "value" : [ "/* FHIR Extensions */\n\n/*\n@description: Returns any extensions defined on the given resource with the specified url.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\n","define fluent function ","extensions","(","domainResource"," " ]
                  }, {
                     "r" : "437",
                     "s" : [ {
                        "value" : [ "DomainResource" ]
                     } ]
                  }, {
                     "value" : [ ", ","url"," " ]
                  }, {
                     "r" : "438",
                     "s" : [ {
                        "value" : [ "String" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "447",
                     "s" : [ {
                        "r" : "447",
                        "s" : [ {
                           "s" : [ {
                              "r" : "440",
                              "s" : [ {
                                 "r" : "439",
                                 "s" : [ {
                                    "s" : [ {
                                       "value" : [ "domainResource",".","extension" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","E" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n\t  " ]
                        }, {
                           "r" : "444",
                           "s" : [ {
                              "value" : [ "where " ]
                           }, {
                              "r" : "444",
                              "s" : [ {
                                 "r" : "442",
                                 "s" : [ {
                                    "r" : "441",
                                    "s" : [ {
                                       "value" : [ "E" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "442",
                                    "s" : [ {
                                       "value" : [ "url" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","="," " ]
                              }, {
                                 "r" : "443",
                                 "s" : [ {
                                    "value" : [ "url" ]
                                 } ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n\t\t" ]
                        }, {
                           "r" : "446",
                           "s" : [ {
                              "value" : [ "return " ]
                           }, {
                              "r" : "445",
                              "s" : [ {
                                 "value" : [ "E" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "447",
               "locator" : "196:3-198:10",
               "type" : "Query",
               "source" : [ {
                  "localId" : "440",
                  "locator" : "196:3-196:28",
                  "alias" : "E",
                  "expression" : {
                     "localId" : "439",
                     "locator" : "196:3-196:26",
                     "path" : "extension",
                     "type" : "Property",
                     "source" : {
                        "name" : "domainResource",
                        "type" : "OperandRef"
                     }
                  }
               } ],
               "relationship" : [ ],
               "where" : {
                  "localId" : "444",
                  "locator" : "197:4-197:20",
                  "type" : "Equal",
                  "operand" : [ {
                     "name" : "ToString",
                     "libraryName" : "FHIRHelpers",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "442",
                        "locator" : "197:10-197:14",
                        "path" : "url",
                        "scope" : "E",
                        "type" : "Property"
                     } ]
                  }, {
                     "localId" : "443",
                     "locator" : "197:18-197:20",
                     "name" : "url",
                     "type" : "OperandRef"
                  } ]
               },
               "return" : {
                  "localId" : "446",
                  "locator" : "198:3-198:10",
                  "expression" : {
                     "localId" : "445",
                     "locator" : "198:10",
                     "name" : "E",
                     "type" : "AliasRef"
                  }
               }
            },
            "operand" : [ {
               "name" : "domainResource",
               "operandTypeSpecifier" : {
                  "localId" : "437",
                  "locator" : "195:50-195:63",
                  "name" : "{http://hl7.org/fhir}DomainResource",
                  "type" : "NamedTypeSpecifier"
               }
            }, {
               "name" : "url",
               "operandTypeSpecifier" : {
                  "localId" : "438",
                  "locator" : "195:70-195:75",
                  "name" : "{urn:hl7-org:elm-types:r1}String",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "455",
            "locator" : "205:1-206:47",
            "name" : "extension",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns the single extension (if present) on the given resource with the specified url."
               }, {
                  "name" : "comment",
                  "value" : "This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url."
               } ],
               "s" : {
                  "r" : "455",
                  "s" : [ {
                     "value" : [ "/*\n@description: Returns the single extension (if present) on the given resource with the specified url.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\n","define fluent function ","extension","(","domainResource"," " ]
                  }, {
                     "r" : "449",
                     "s" : [ {
                        "value" : [ "DomainResource" ]
                     } ]
                  }, {
                     "value" : [ ", ","url"," " ]
                  }, {
                     "r" : "450",
                     "s" : [ {
                        "value" : [ "String" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "454",
                     "s" : [ {
                        "r" : "454",
                        "s" : [ {
                           "value" : [ "singleton from " ]
                        }, {
                           "r" : "453",
                           "s" : [ {
                              "r" : "451",
                              "s" : [ {
                                 "value" : [ "domainResource" ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "453",
                              "s" : [ {
                                 "value" : [ "extensions","(" ]
                              }, {
                                 "r" : "452",
                                 "s" : [ {
                                    "value" : [ "url" ]
                                 } ]
                              }, {
                                 "value" : [ ")" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "454",
               "locator" : "206:3-206:47",
               "type" : "SingletonFrom",
               "operand" : {
                  "localId" : "453",
                  "locator" : "206:18-206:47",
                  "name" : "extensions",
                  "type" : "FunctionRef",
                  "operand" : [ {
                     "localId" : "451",
                     "locator" : "206:18-206:31",
                     "name" : "domainResource",
                     "type" : "OperandRef"
                  }, {
                     "localId" : "452",
                     "locator" : "206:44-206:46",
                     "name" : "url",
                     "type" : "OperandRef"
                  } ]
               }
            },
            "operand" : [ {
               "name" : "domainResource",
               "operandTypeSpecifier" : {
                  "localId" : "449",
                  "locator" : "205:49-205:62",
                  "name" : "{http://hl7.org/fhir}DomainResource",
                  "type" : "NamedTypeSpecifier"
               }
            }, {
               "name" : "url",
               "operandTypeSpecifier" : {
                  "localId" : "450",
                  "locator" : "205:69-205:74",
                  "name" : "{urn:hl7-org:elm-types:r1}String",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "467",
            "locator" : "213:1-216:10",
            "name" : "extensions",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns any extensions defined on the given element with the specified url."
               }, {
                  "name" : "comment",
                  "value" : "NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the CQL model info."
               } ],
               "s" : {
                  "r" : "467",
                  "s" : [ {
                     "value" : [ "/*\n@description: Returns any extensions defined on the given element with the specified url.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the CQL model info.\n*/\n","define fluent function ","extensions","(","element"," " ]
                  }, {
                     "r" : "456",
                     "s" : [ {
                        "value" : [ "Element" ]
                     } ]
                  }, {
                     "value" : [ ", ","url"," " ]
                  }, {
                     "r" : "457",
                     "s" : [ {
                        "value" : [ "String" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "466",
                     "s" : [ {
                        "r" : "466",
                        "s" : [ {
                           "s" : [ {
                              "r" : "459",
                              "s" : [ {
                                 "r" : "458",
                                 "s" : [ {
                                    "s" : [ {
                                       "value" : [ "element",".","extension" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","E" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n\t  " ]
                        }, {
                           "r" : "463",
                           "s" : [ {
                              "value" : [ "where " ]
                           }, {
                              "r" : "463",
                              "s" : [ {
                                 "r" : "461",
                                 "s" : [ {
                                    "r" : "460",
                                    "s" : [ {
                                       "value" : [ "E" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "461",
                                    "s" : [ {
                                       "value" : [ "url" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","="," " ]
                              }, {
                                 "r" : "462",
                                 "s" : [ {
                                    "value" : [ "url" ]
                                 } ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n\t\t" ]
                        }, {
                           "r" : "465",
                           "s" : [ {
                              "value" : [ "return " ]
                           }, {
                              "r" : "464",
                              "s" : [ {
                                 "value" : [ "E" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "466",
               "locator" : "214:3-216:10",
               "type" : "Query",
               "source" : [ {
                  "localId" : "459",
                  "locator" : "214:3-214:21",
                  "alias" : "E",
                  "expression" : {
                     "localId" : "458",
                     "locator" : "214:3-214:19",
                     "path" : "extension",
                     "type" : "Property",
                     "source" : {
                        "name" : "element",
                        "type" : "OperandRef"
                     }
                  }
               } ],
               "relationship" : [ ],
               "where" : {
                  "localId" : "463",
                  "locator" : "215:4-215:20",
                  "type" : "Equal",
                  "operand" : [ {
                     "name" : "ToString",
                     "libraryName" : "FHIRHelpers",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "461",
                        "locator" : "215:10-215:14",
                        "path" : "url",
                        "scope" : "E",
                        "type" : "Property"
                     } ]
                  }, {
                     "localId" : "462",
                     "locator" : "215:18-215:20",
                     "name" : "url",
                     "type" : "OperandRef"
                  } ]
               },
               "return" : {
                  "localId" : "465",
                  "locator" : "216:3-216:10",
                  "expression" : {
                     "localId" : "464",
                     "locator" : "216:10",
                     "name" : "E",
                     "type" : "AliasRef"
                  }
               }
            },
            "operand" : [ {
               "name" : "element",
               "operandTypeSpecifier" : {
                  "localId" : "456",
                  "locator" : "213:43-213:49",
                  "name" : "{http://hl7.org/fhir}Element",
                  "type" : "NamedTypeSpecifier"
               }
            }, {
               "name" : "url",
               "operandTypeSpecifier" : {
                  "localId" : "457",
                  "locator" : "213:56-213:61",
                  "name" : "{urn:hl7-org:elm-types:r1}String",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "474",
            "locator" : "223:1-224:40",
            "name" : "extension",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns the single extension (if present) on the given element with the specified url."
               }, {
                  "name" : "comment",
                  "value" : "This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url."
               } ],
               "s" : {
                  "r" : "474",
                  "s" : [ {
                     "value" : [ "/*\n@description: Returns the single extension (if present) on the given element with the specified url.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\n","define fluent function ","extension","(","element"," " ]
                  }, {
                     "r" : "468",
                     "s" : [ {
                        "value" : [ "Element" ]
                     } ]
                  }, {
                     "value" : [ ", ","url"," " ]
                  }, {
                     "r" : "469",
                     "s" : [ {
                        "value" : [ "String" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "473",
                     "s" : [ {
                        "r" : "473",
                        "s" : [ {
                           "value" : [ "singleton from " ]
                        }, {
                           "r" : "472",
                           "s" : [ {
                              "r" : "470",
                              "s" : [ {
                                 "value" : [ "element" ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "472",
                              "s" : [ {
                                 "value" : [ "extensions","(" ]
                              }, {
                                 "r" : "471",
                                 "s" : [ {
                                    "value" : [ "url" ]
                                 } ]
                              }, {
                                 "value" : [ ")" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "473",
               "locator" : "224:3-224:40",
               "type" : "SingletonFrom",
               "operand" : {
                  "localId" : "472",
                  "locator" : "224:18-224:40",
                  "name" : "extensions",
                  "type" : "FunctionRef",
                  "operand" : [ {
                     "localId" : "470",
                     "locator" : "224:18-224:24",
                     "name" : "element",
                     "type" : "OperandRef"
                  }, {
                     "localId" : "471",
                     "locator" : "224:37-224:39",
                     "name" : "url",
                     "type" : "OperandRef"
                  } ]
               }
            },
            "operand" : [ {
               "name" : "element",
               "operandTypeSpecifier" : {
                  "localId" : "468",
                  "locator" : "223:42-223:48",
                  "name" : "{http://hl7.org/fhir}Element",
                  "type" : "NamedTypeSpecifier"
               }
            }, {
               "name" : "url",
               "operandTypeSpecifier" : {
                  "localId" : "469",
                  "locator" : "223:55-223:60",
                  "name" : "{urn:hl7-org:elm-types:r1}String",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "486",
            "locator" : "232:1-235:10",
            "name" : "modifierExtensions",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns any modifier extensions defined on the given resource with the specified url."
               }, {
                  "name" : "comment",
                  "value" : "NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info."
               } ],
               "s" : {
                  "r" : "486",
                  "s" : [ {
                     "value" : [ "/*\n@description: Returns any modifier extensions defined on the given resource with the specified url.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\n","define fluent function ","modifierExtensions","(","domainResource"," " ]
                  }, {
                     "r" : "475",
                     "s" : [ {
                        "value" : [ "DomainResource" ]
                     } ]
                  }, {
                     "value" : [ ", ","url"," " ]
                  }, {
                     "r" : "476",
                     "s" : [ {
                        "value" : [ "String" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "485",
                     "s" : [ {
                        "r" : "485",
                        "s" : [ {
                           "s" : [ {
                              "r" : "478",
                              "s" : [ {
                                 "r" : "477",
                                 "s" : [ {
                                    "s" : [ {
                                       "value" : [ "domainResource",".","modifierExtension" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","E" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n\t  " ]
                        }, {
                           "r" : "482",
                           "s" : [ {
                              "value" : [ "where " ]
                           }, {
                              "r" : "482",
                              "s" : [ {
                                 "r" : "480",
                                 "s" : [ {
                                    "r" : "479",
                                    "s" : [ {
                                       "value" : [ "E" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "480",
                                    "s" : [ {
                                       "value" : [ "url" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","="," " ]
                              }, {
                                 "r" : "481",
                                 "s" : [ {
                                    "value" : [ "url" ]
                                 } ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n\t\t" ]
                        }, {
                           "r" : "484",
                           "s" : [ {
                              "value" : [ "return " ]
                           }, {
                              "r" : "483",
                              "s" : [ {
                                 "value" : [ "E" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "485",
               "locator" : "233:3-235:10",
               "type" : "Query",
               "source" : [ {
                  "localId" : "478",
                  "locator" : "233:3-233:36",
                  "alias" : "E",
                  "expression" : {
                     "localId" : "477",
                     "locator" : "233:3-233:34",
                     "path" : "modifierExtension",
                     "type" : "Property",
                     "source" : {
                        "name" : "domainResource",
                        "type" : "OperandRef"
                     }
                  }
               } ],
               "relationship" : [ ],
               "where" : {
                  "localId" : "482",
                  "locator" : "234:4-234:20",
                  "type" : "Equal",
                  "operand" : [ {
                     "name" : "ToString",
                     "libraryName" : "FHIRHelpers",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "480",
                        "locator" : "234:10-234:14",
                        "path" : "url",
                        "scope" : "E",
                        "type" : "Property"
                     } ]
                  }, {
                     "localId" : "481",
                     "locator" : "234:18-234:20",
                     "name" : "url",
                     "type" : "OperandRef"
                  } ]
               },
               "return" : {
                  "localId" : "484",
                  "locator" : "235:3-235:10",
                  "expression" : {
                     "localId" : "483",
                     "locator" : "235:10",
                     "name" : "E",
                     "type" : "AliasRef"
                  }
               }
            },
            "operand" : [ {
               "name" : "domainResource",
               "operandTypeSpecifier" : {
                  "localId" : "475",
                  "locator" : "232:58-232:71",
                  "name" : "{http://hl7.org/fhir}DomainResource",
                  "type" : "NamedTypeSpecifier"
               }
            }, {
               "name" : "url",
               "operandTypeSpecifier" : {
                  "localId" : "476",
                  "locator" : "232:78-232:83",
                  "name" : "{urn:hl7-org:elm-types:r1}String",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "493",
            "locator" : "242:1-243:55",
            "name" : "modifierExtension",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns the single modifier extension (if present) on the given resource with the specified url."
               }, {
                  "name" : "comment",
                  "value" : "This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url."
               } ],
               "s" : {
                  "r" : "493",
                  "s" : [ {
                     "value" : [ "/*\n@description: Returns the single modifier extension (if present) on the given resource with the specified url.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\n","define fluent function ","modifierExtension","(","domainResource"," " ]
                  }, {
                     "r" : "487",
                     "s" : [ {
                        "value" : [ "DomainResource" ]
                     } ]
                  }, {
                     "value" : [ ", ","url"," " ]
                  }, {
                     "r" : "488",
                     "s" : [ {
                        "value" : [ "String" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "492",
                     "s" : [ {
                        "r" : "492",
                        "s" : [ {
                           "value" : [ "singleton from " ]
                        }, {
                           "r" : "491",
                           "s" : [ {
                              "r" : "489",
                              "s" : [ {
                                 "value" : [ "domainResource" ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "491",
                              "s" : [ {
                                 "value" : [ "modifierExtensions","(" ]
                              }, {
                                 "r" : "490",
                                 "s" : [ {
                                    "value" : [ "url" ]
                                 } ]
                              }, {
                                 "value" : [ ")" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "492",
               "locator" : "243:3-243:55",
               "type" : "SingletonFrom",
               "operand" : {
                  "localId" : "491",
                  "locator" : "243:18-243:55",
                  "name" : "modifierExtensions",
                  "type" : "FunctionRef",
                  "operand" : [ {
                     "localId" : "489",
                     "locator" : "243:18-243:31",
                     "name" : "domainResource",
                     "type" : "OperandRef"
                  }, {
                     "localId" : "490",
                     "locator" : "243:52-243:54",
                     "name" : "url",
                     "type" : "OperandRef"
                  } ]
               }
            },
            "operand" : [ {
               "name" : "domainResource",
               "operandTypeSpecifier" : {
                  "localId" : "487",
                  "locator" : "242:57-242:70",
                  "name" : "{http://hl7.org/fhir}DomainResource",
                  "type" : "NamedTypeSpecifier"
               }
            }, {
               "name" : "url",
               "operandTypeSpecifier" : {
                  "localId" : "488",
                  "locator" : "242:77-242:82",
                  "name" : "{urn:hl7-org:elm-types:r1}String",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "505",
            "locator" : "250:1-253:10",
            "name" : "modifierExtensions",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns any modifier extensions defined on the given element with the specified url."
               }, {
                  "name" : "comment",
                  "value" : "NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the CQL model info."
               } ],
               "s" : {
                  "r" : "505",
                  "s" : [ {
                     "value" : [ "/*\n@description: Returns any modifier extensions defined on the given element with the specified url.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the CQL model info.\n*/\n","define fluent function ","modifierExtensions","(","element"," " ]
                  }, {
                     "r" : "494",
                     "s" : [ {
                        "value" : [ "BackboneElement" ]
                     } ]
                  }, {
                     "value" : [ ", ","url"," " ]
                  }, {
                     "r" : "495",
                     "s" : [ {
                        "value" : [ "String" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "504",
                     "s" : [ {
                        "r" : "504",
                        "s" : [ {
                           "s" : [ {
                              "r" : "497",
                              "s" : [ {
                                 "r" : "496",
                                 "s" : [ {
                                    "s" : [ {
                                       "value" : [ "element",".","modifierExtension" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","E" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n\t  " ]
                        }, {
                           "r" : "501",
                           "s" : [ {
                              "value" : [ "where " ]
                           }, {
                              "r" : "501",
                              "s" : [ {
                                 "r" : "499",
                                 "s" : [ {
                                    "r" : "498",
                                    "s" : [ {
                                       "value" : [ "E" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "499",
                                    "s" : [ {
                                       "value" : [ "url" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","="," " ]
                              }, {
                                 "r" : "500",
                                 "s" : [ {
                                    "value" : [ "url" ]
                                 } ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n\t\t" ]
                        }, {
                           "r" : "503",
                           "s" : [ {
                              "value" : [ "return " ]
                           }, {
                              "r" : "502",
                              "s" : [ {
                                 "value" : [ "E" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "504",
               "locator" : "251:3-253:10",
               "type" : "Query",
               "source" : [ {
                  "localId" : "497",
                  "locator" : "251:3-251:29",
                  "alias" : "E",
                  "expression" : {
                     "localId" : "496",
                     "locator" : "251:3-251:27",
                     "path" : "modifierExtension",
                     "type" : "Property",
                     "source" : {
                        "name" : "element",
                        "type" : "OperandRef"
                     }
                  }
               } ],
               "relationship" : [ ],
               "where" : {
                  "localId" : "501",
                  "locator" : "252:4-252:20",
                  "type" : "Equal",
                  "operand" : [ {
                     "name" : "ToString",
                     "libraryName" : "FHIRHelpers",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "499",
                        "locator" : "252:10-252:14",
                        "path" : "url",
                        "scope" : "E",
                        "type" : "Property"
                     } ]
                  }, {
                     "localId" : "500",
                     "locator" : "252:18-252:20",
                     "name" : "url",
                     "type" : "OperandRef"
                  } ]
               },
               "return" : {
                  "localId" : "503",
                  "locator" : "253:3-253:10",
                  "expression" : {
                     "localId" : "502",
                     "locator" : "253:10",
                     "name" : "E",
                     "type" : "AliasRef"
                  }
               }
            },
            "operand" : [ {
               "name" : "element",
               "operandTypeSpecifier" : {
                  "localId" : "494",
                  "locator" : "250:51-250:65",
                  "name" : "{http://hl7.org/fhir}BackboneElement",
                  "type" : "NamedTypeSpecifier"
               }
            }, {
               "name" : "url",
               "operandTypeSpecifier" : {
                  "localId" : "495",
                  "locator" : "250:72-250:77",
                  "name" : "{urn:hl7-org:elm-types:r1}String",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "512",
            "locator" : "260:1-261:48",
            "name" : "modifierExtension",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Returns the single modifier extension (if present) on the given element with the specified url."
               }, {
                  "name" : "comment",
                  "value" : "This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url."
               } ],
               "s" : {
                  "r" : "512",
                  "s" : [ {
                     "value" : [ "/*\n@description: Returns the single modifier extension (if present) on the given element with the specified url.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\n","define fluent function ","modifierExtension","(","element"," " ]
                  }, {
                     "r" : "506",
                     "s" : [ {
                        "value" : [ "BackboneElement" ]
                     } ]
                  }, {
                     "value" : [ ", ","url"," " ]
                  }, {
                     "r" : "507",
                     "s" : [ {
                        "value" : [ "String" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "511",
                     "s" : [ {
                        "r" : "511",
                        "s" : [ {
                           "value" : [ "singleton from " ]
                        }, {
                           "r" : "510",
                           "s" : [ {
                              "r" : "508",
                              "s" : [ {
                                 "value" : [ "element" ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "510",
                              "s" : [ {
                                 "value" : [ "modifierExtensions","(" ]
                              }, {
                                 "r" : "509",
                                 "s" : [ {
                                    "value" : [ "url" ]
                                 } ]
                              }, {
                                 "value" : [ ")" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "511",
               "locator" : "261:3-261:48",
               "type" : "SingletonFrom",
               "operand" : {
                  "localId" : "510",
                  "locator" : "261:18-261:48",
                  "name" : "modifierExtensions",
                  "type" : "FunctionRef",
                  "operand" : [ {
                     "localId" : "508",
                     "locator" : "261:18-261:24",
                     "name" : "element",
                     "type" : "OperandRef"
                  }, {
                     "localId" : "509",
                     "locator" : "261:45-261:47",
                     "name" : "url",
                     "type" : "OperandRef"
                  } ]
               }
            },
            "operand" : [ {
               "name" : "element",
               "operandTypeSpecifier" : {
                  "localId" : "506",
                  "locator" : "260:50-260:64",
                  "name" : "{http://hl7.org/fhir}BackboneElement",
                  "type" : "NamedTypeSpecifier"
               }
            }, {
               "name" : "url",
               "operandTypeSpecifier" : {
                  "localId" : "507",
                  "locator" : "260:71-260:76",
                  "name" : "{urn:hl7-org:elm-types:r1}String",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "520",
            "locator" : "269:1-270:119",
            "name" : "resolutionAge",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [resolutionAge](http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as an Age."
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge"
               } ],
               "s" : {
                  "r" : "520",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [resolutionAge](http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as an Age.\n@extension: http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge\n*/\n","define fluent function ","resolutionAge","(","allergyIntolerance"," " ]
                  }, {
                     "r" : "513",
                     "s" : [ {
                        "value" : [ "AllergyIntolerance" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "519",
                     "s" : [ {
                        "r" : "519",
                        "s" : [ {
                           "r" : "517",
                           "s" : [ {
                              "r" : "516",
                              "s" : [ {
                                 "r" : "514",
                                 "s" : [ {
                                    "value" : [ "allergyIntolerance" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "516",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "515",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "517",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "518",
                           "s" : [ {
                              "value" : [ "Age" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "519",
               "locator" : "270:3-270:119",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "517",
                  "locator" : "270:3-270:112",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "516",
                     "locator" : "270:3-270:106",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "514",
                        "locator" : "270:3-270:20",
                        "name" : "allergyIntolerance",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "515",
                        "locator" : "270:32-270:105",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "518",
                  "locator" : "270:117-270:119",
                  "name" : "{http://hl7.org/fhir}Age",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "allergyIntolerance",
               "operandTypeSpecifier" : {
                  "localId" : "513",
                  "locator" : "269:57-269:74",
                  "name" : "{http://hl7.org/fhir}AllergyIntolerance",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "528",
            "locator" : "278:1-279:131",
            "name" : "reasonRefuted",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [reasonRefuted](http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a CodeableConcept."
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted"
               } ],
               "s" : {
                  "r" : "528",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [reasonRefuted](http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a CodeableConcept.\n@extension: http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted\n*/\n","define fluent function ","reasonRefuted","(","allergyIntolerance"," " ]
                  }, {
                     "r" : "521",
                     "s" : [ {
                        "value" : [ "AllergyIntolerance" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "527",
                     "s" : [ {
                        "r" : "527",
                        "s" : [ {
                           "r" : "525",
                           "s" : [ {
                              "r" : "524",
                              "s" : [ {
                                 "r" : "522",
                                 "s" : [ {
                                    "value" : [ "allergyIntolerance" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "524",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "523",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "525",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "526",
                           "s" : [ {
                              "value" : [ "CodeableConcept" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "527",
               "locator" : "279:3-279:131",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "525",
                  "locator" : "279:3-279:112",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "524",
                     "locator" : "279:3-279:106",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "522",
                        "locator" : "279:3-279:20",
                        "name" : "allergyIntolerance",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "523",
                        "locator" : "279:32-279:105",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "526",
                  "locator" : "279:117-279:131",
                  "name" : "{http://hl7.org/fhir}CodeableConcept",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "allergyIntolerance",
               "operandTypeSpecifier" : {
                  "localId" : "521",
                  "locator" : "278:57-278:74",
                  "name" : "{http://hl7.org/fhir}AllergyIntolerance",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "536",
            "locator" : "287:1-288:119",
            "name" : "duration",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [duration](http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a Duration."
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration"
               } ],
               "s" : {
                  "r" : "536",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [duration](http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a Duration.\n@extension: http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration\n*/\n","define fluent function ","duration","(","allergyIntolerance"," " ]
                  }, {
                     "r" : "529",
                     "s" : [ {
                        "value" : [ "BackboneElement" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "535",
                     "s" : [ {
                        "r" : "535",
                        "s" : [ {
                           "r" : "533",
                           "s" : [ {
                              "r" : "532",
                              "s" : [ {
                                 "r" : "530",
                                 "s" : [ {
                                    "value" : [ "allergyIntolerance" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "532",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "531",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "533",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "534",
                           "s" : [ {
                              "value" : [ "Duration" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "535",
               "locator" : "288:3-288:119",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "533",
                  "locator" : "288:3-288:107",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "532",
                     "locator" : "288:3-288:101",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "530",
                        "locator" : "288:3-288:20",
                        "name" : "allergyIntolerance",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "531",
                        "locator" : "288:32-288:100",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "534",
                  "locator" : "288:112-288:119",
                  "name" : "{http://hl7.org/fhir}Duration",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "allergyIntolerance",
               "operandTypeSpecifier" : {
                  "localId" : "529",
                  "locator" : "287:52-287:66",
                  "name" : "{http://hl7.org/fhir}BackboneElement",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "546",
            "locator" : "296:1-297:124",
            "name" : "dueTo",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [dueTo](http://hl7.org/fhir/StructureDefinition/condition-dueTo)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a choice of CodeableConcept or Reference."
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/condition-dueTo"
               } ],
               "s" : {
                  "r" : "546",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [dueTo](http://hl7.org/fhir/StructureDefinition/condition-dueTo)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a choice of CodeableConcept or Reference.\n@extension: http://hl7.org/fhir/StructureDefinition/condition-dueTo\n*/\n","define fluent function ","dueTo","(","condition"," " ]
                  }, {
                     "r" : "537",
                     "s" : [ {
                        "value" : [ "Condition" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "545",
                     "s" : [ {
                        "r" : "545",
                        "s" : [ {
                           "r" : "541",
                           "s" : [ {
                              "r" : "540",
                              "s" : [ {
                                 "r" : "538",
                                 "s" : [ {
                                    "value" : [ "condition" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "540",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "539",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/condition-dueTo'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "541",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "544",
                           "s" : [ {
                              "value" : [ "Choice<" ]
                           }, {
                              "r" : "542",
                              "s" : [ {
                                 "value" : [ "CodeableConcept" ]
                              } ]
                           }, {
                              "value" : [ ", " ]
                           }, {
                              "r" : "543",
                              "s" : [ {
                                 "value" : [ "Reference" ]
                              } ]
                           }, {
                              "value" : [ ">" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "545",
               "locator" : "297:3-297:124",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "541",
                  "locator" : "297:3-297:86",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "540",
                     "locator" : "297:3-297:80",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "538",
                        "locator" : "297:3-297:11",
                        "name" : "condition",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "539",
                        "locator" : "297:23-297:79",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/condition-dueTo",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "544",
                  "locator" : "297:91-297:124",
                  "type" : "ChoiceTypeSpecifier",
                  "choice" : [ {
                     "localId" : "542",
                     "locator" : "297:98-297:112",
                     "name" : "{http://hl7.org/fhir}CodeableConcept",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "543",
                     "locator" : "297:115-297:123",
                     "name" : "{http://hl7.org/fhir}Reference",
                     "type" : "NamedTypeSpecifier"
                  } ]
               }
            },
            "operand" : [ {
               "name" : "condition",
               "operandTypeSpecifier" : {
                  "localId" : "537",
                  "locator" : "296:40-296:48",
                  "name" : "{http://hl7.org/fhir}Condition",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "556",
            "locator" : "305:1-306:136",
            "name" : "occurredFollowing",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [occurredFollowing](http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a choice of CodeableConcept or Reference"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing"
               } ],
               "s" : {
                  "r" : "556",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [occurredFollowing](http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a choice of CodeableConcept or Reference\n@extension: http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing\n*/\n","define fluent function ","occurredFollowing","(","condition"," " ]
                  }, {
                     "r" : "547",
                     "s" : [ {
                        "value" : [ "Condition" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "555",
                     "s" : [ {
                        "r" : "555",
                        "s" : [ {
                           "r" : "551",
                           "s" : [ {
                              "r" : "550",
                              "s" : [ {
                                 "r" : "548",
                                 "s" : [ {
                                    "value" : [ "condition" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "550",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "549",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "551",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "554",
                           "s" : [ {
                              "value" : [ "Choice<" ]
                           }, {
                              "r" : "552",
                              "s" : [ {
                                 "value" : [ "CodeableConcept" ]
                              } ]
                           }, {
                              "value" : [ ", " ]
                           }, {
                              "r" : "553",
                              "s" : [ {
                                 "value" : [ "Reference" ]
                              } ]
                           }, {
                              "value" : [ ">" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "555",
               "locator" : "306:3-306:136",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "551",
                  "locator" : "306:3-306:98",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "550",
                     "locator" : "306:3-306:92",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "548",
                        "locator" : "306:3-306:11",
                        "name" : "condition",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "549",
                        "locator" : "306:23-306:91",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "554",
                  "locator" : "306:103-306:136",
                  "type" : "ChoiceTypeSpecifier",
                  "choice" : [ {
                     "localId" : "552",
                     "locator" : "306:110-306:124",
                     "name" : "{http://hl7.org/fhir}CodeableConcept",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "553",
                     "locator" : "306:127-306:135",
                     "name" : "{http://hl7.org/fhir}Reference",
                     "type" : "NamedTypeSpecifier"
                  } ]
               }
            },
            "operand" : [ {
               "name" : "condition",
               "operandTypeSpecifier" : {
                  "localId" : "547",
                  "locator" : "305:52-305:60",
                  "name" : "{http://hl7.org/fhir}Condition",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "564",
            "locator" : "314:1-315:136",
            "name" : "doNotPerform",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [doNotPerform](http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform)\nmodifier extension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the modifier extension as a boolean"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/request-doNotPerform"
               } ],
               "s" : {
                  "r" : "564",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [doNotPerform](http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform)\nmodifier extension defined in FHIR.\n@comment: This function returns the value of the modifier extension as a boolean\n@extension: http://hl7.org/fhir/StructureDefinition/request-doNotPerform\n*/\n","define fluent function ","doNotPerform","(","requestResource"," " ]
                  }, {
                     "r" : "557",
                     "s" : [ {
                        "value" : [ "DomainResource" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "563",
                     "s" : [ {
                        "r" : "563",
                        "s" : [ {
                           "r" : "561",
                           "s" : [ {
                              "r" : "560",
                              "s" : [ {
                                 "r" : "558",
                                 "s" : [ {
                                    "value" : [ "requestResource" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "560",
                                 "s" : [ {
                                    "value" : [ "modifierExtension","(" ]
                                 }, {
                                    "r" : "559",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "561",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "562",
                           "s" : [ {
                              "value" : [ "boolean" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "563",
               "locator" : "315:3-315:136",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "561",
                  "locator" : "315:3-315:125",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "560",
                     "locator" : "315:3-315:119",
                     "name" : "modifierExtension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "558",
                        "locator" : "315:3-315:17",
                        "name" : "requestResource",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "559",
                        "locator" : "315:37-315:118",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "562",
                  "locator" : "315:130-315:136",
                  "name" : "{http://hl7.org/fhir}boolean",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "requestResource",
               "operandTypeSpecifier" : {
                  "localId" : "557",
                  "locator" : "314:53-314:66",
                  "name" : "{http://hl7.org/fhir}DomainResource",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "572",
            "locator" : "323:1-324:116",
            "name" : "statusReason",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [statusReason](http://hl7.org/fhir/StructureDefinition/request-statusReason)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a CodeableConcept"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/request-statusReason"
               } ],
               "s" : {
                  "r" : "572",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [statusReason](http://hl7.org/fhir/StructureDefinition/request-statusReason)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a CodeableConcept\n@extension: http://hl7.org/fhir/StructureDefinition/request-statusReason\n*/\n","define fluent function ","statusReason","(","requestResource"," " ]
                  }, {
                     "r" : "565",
                     "s" : [ {
                        "value" : [ "DomainResource" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "571",
                     "s" : [ {
                        "r" : "571",
                        "s" : [ {
                           "r" : "569",
                           "s" : [ {
                              "r" : "568",
                              "s" : [ {
                                 "r" : "566",
                                 "s" : [ {
                                    "value" : [ "requestResource" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "568",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "567",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/request-statusReason'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "569",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "570",
                           "s" : [ {
                              "value" : [ "CodeableConcept" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "571",
               "locator" : "324:3-324:116",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "569",
                  "locator" : "324:3-324:97",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "568",
                     "locator" : "324:3-324:91",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "566",
                        "locator" : "324:3-324:17",
                        "name" : "requestResource",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "567",
                        "locator" : "324:29-324:90",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/request-statusReason",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "570",
                  "locator" : "324:102-324:116",
                  "name" : "{http://hl7.org/fhir}CodeableConcept",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "requestResource",
               "operandTypeSpecifier" : {
                  "localId" : "565",
                  "locator" : "323:53-323:66",
                  "name" : "{http://hl7.org/fhir}DomainResource",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "580",
            "locator" : "332:1-333:125",
            "name" : "locationPerformed",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [locationPerformed](http://hl7.org/fhir/StructureDefinition/diagnosticReport-locationPerformed)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a Reference"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/diagnosticReport-locationPerformed"
               } ],
               "s" : {
                  "r" : "580",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [locationPerformed](http://hl7.org/fhir/StructureDefinition/diagnosticReport-locationPerformed)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a Reference\n@extension: http://hl7.org/fhir/StructureDefinition/diagnosticReport-locationPerformed\n*/\n","define fluent function ","locationPerformed","(","diagnosticReport"," " ]
                  }, {
                     "r" : "573",
                     "s" : [ {
                        "value" : [ "DiagnosticReport" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "579",
                     "s" : [ {
                        "r" : "579",
                        "s" : [ {
                           "r" : "577",
                           "s" : [ {
                              "r" : "576",
                              "s" : [ {
                                 "r" : "574",
                                 "s" : [ {
                                    "value" : [ "diagnosticReport" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "576",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "575",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/diagnosticReport-locationPerformed'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "577",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "578",
                           "s" : [ {
                              "value" : [ "Reference" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "579",
               "locator" : "333:3-333:125",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "577",
                  "locator" : "333:3-333:112",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "576",
                     "locator" : "333:3-333:106",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "574",
                        "locator" : "333:3-333:18",
                        "name" : "diagnosticReport",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "575",
                        "locator" : "333:30-333:105",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/diagnosticReport-locationPerformed",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "578",
                  "locator" : "333:117-333:125",
                  "name" : "{http://hl7.org/fhir}Reference",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "diagnosticReport",
               "operandTypeSpecifier" : {
                  "localId" : "573",
                  "locator" : "332:59-332:74",
                  "name" : "{http://hl7.org/fhir}DiagnosticReport",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "591",
            "locator" : "341:1-342:140",
            "name" : "abatement",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [abatement](http://hl7.org/fhir/StructureDefinition/familymemberhistory-abatement)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a choice of date, Age, or boolean"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/familymemberhistory-abatement"
               } ],
               "s" : {
                  "r" : "591",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [abatement](http://hl7.org/fhir/StructureDefinition/familymemberhistory-abatement)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a choice of date, Age, or boolean\n@extension: http://hl7.org/fhir/StructureDefinition/familymemberhistory-abatement\n*/\n","define fluent function ","abatement","(","familyMemberHistory"," " ]
                  }, {
                     "r" : "581",
                     "s" : [ {
                        "value" : [ "FamilyMemberHistory" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "590",
                     "s" : [ {
                        "r" : "590",
                        "s" : [ {
                           "r" : "585",
                           "s" : [ {
                              "r" : "584",
                              "s" : [ {
                                 "r" : "582",
                                 "s" : [ {
                                    "value" : [ "familyMemberHistory" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "584",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "583",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/familymemberhistory-abatement'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "585",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "589",
                           "s" : [ {
                              "value" : [ "Choice<" ]
                           }, {
                              "r" : "586",
                              "s" : [ {
                                 "value" : [ "date" ]
                              } ]
                           }, {
                              "value" : [ ", " ]
                           }, {
                              "r" : "587",
                              "s" : [ {
                                 "value" : [ "Age" ]
                              } ]
                           }, {
                              "value" : [ ", " ]
                           }, {
                              "r" : "588",
                              "s" : [ {
                                 "value" : [ "boolean" ]
                              } ]
                           }, {
                              "value" : [ ">" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "590",
               "locator" : "342:3-342:140",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "585",
                  "locator" : "342:3-342:110",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "584",
                     "locator" : "342:3-342:104",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "582",
                        "locator" : "342:3-342:21",
                        "name" : "familyMemberHistory",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "583",
                        "locator" : "342:33-342:103",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/familymemberhistory-abatement",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "589",
                  "locator" : "342:115-342:140",
                  "type" : "ChoiceTypeSpecifier",
                  "choice" : [ {
                     "localId" : "586",
                     "locator" : "342:122-342:125",
                     "name" : "{http://hl7.org/fhir}date",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "587",
                     "locator" : "342:128-342:130",
                     "name" : "{http://hl7.org/fhir}Age",
                     "type" : "NamedTypeSpecifier"
                  }, {
                     "localId" : "588",
                     "locator" : "342:133-342:139",
                     "name" : "{http://hl7.org/fhir}boolean",
                     "type" : "NamedTypeSpecifier"
                  } ]
               }
            },
            "operand" : [ {
               "name" : "familyMemberHistory",
               "operandTypeSpecifier" : {
                  "localId" : "581",
                  "locator" : "341:54-341:72",
                  "name" : "{http://hl7.org/fhir}FamilyMemberHistory",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "599",
            "locator" : "350:1-351:128",
            "name" : "severity",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [severity](http://hl7.org/fhir/StructureDefinition/familymemberhistory-severity)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a CodeableConcept"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/familymemberhistory-severity"
               } ],
               "s" : {
                  "r" : "599",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [severity](http://hl7.org/fhir/StructureDefinition/familymemberhistory-severity)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a CodeableConcept\n@extension: http://hl7.org/fhir/StructureDefinition/familymemberhistory-severity\n*/\n","define fluent function ","severity","(","familyMemberHistory"," " ]
                  }, {
                     "r" : "592",
                     "s" : [ {
                        "value" : [ "FamilyMemberHistory" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "598",
                     "s" : [ {
                        "r" : "598",
                        "s" : [ {
                           "r" : "596",
                           "s" : [ {
                              "r" : "595",
                              "s" : [ {
                                 "r" : "593",
                                 "s" : [ {
                                    "value" : [ "familyMemberHistory" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "595",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "594",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/familymemberhistory-severity'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "596",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "597",
                           "s" : [ {
                              "value" : [ "CodeableConcept" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "598",
               "locator" : "351:3-351:128",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "596",
                  "locator" : "351:3-351:109",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "595",
                     "locator" : "351:3-351:103",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "593",
                        "locator" : "351:3-351:21",
                        "name" : "familyMemberHistory",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "594",
                        "locator" : "351:33-351:102",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/familymemberhistory-severity",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "597",
                  "locator" : "351:114-351:128",
                  "name" : "{http://hl7.org/fhir}CodeableConcept",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "familyMemberHistory",
               "operandTypeSpecifier" : {
                  "localId" : "592",
                  "locator" : "350:53-350:71",
                  "name" : "{http://hl7.org/fhir}FamilyMemberHistory",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "607",
            "locator" : "359:1-360:104",
            "name" : "reasonRejected",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [reasonRejected](http://hl7.org/fhir/StructureDefinition/goal-reasonRejected)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a CodeableConcept"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/goal-reasonRejected"
               } ],
               "s" : {
                  "r" : "607",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [reasonRejected](http://hl7.org/fhir/StructureDefinition/goal-reasonRejected)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a CodeableConcept\n@extension: http://hl7.org/fhir/StructureDefinition/goal-reasonRejected\n*/\n","define fluent function ","reasonRejected","(","goal"," " ]
                  }, {
                     "r" : "600",
                     "s" : [ {
                        "value" : [ "Goal" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "606",
                     "s" : [ {
                        "r" : "606",
                        "s" : [ {
                           "r" : "604",
                           "s" : [ {
                              "r" : "603",
                              "s" : [ {
                                 "r" : "601",
                                 "s" : [ {
                                    "value" : [ "goal" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "603",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "602",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/goal-reasonRejected'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "604",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "605",
                           "s" : [ {
                              "value" : [ "CodeableConcept" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "606",
               "locator" : "360:3-360:104",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "604",
                  "locator" : "360:3-360:85",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "603",
                     "locator" : "360:3-360:79",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "601",
                        "locator" : "360:3-360:6",
                        "name" : "goal",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "602",
                        "locator" : "360:18-360:78",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/goal-reasonRejected",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "605",
                  "locator" : "360:90-360:104",
                  "name" : "{http://hl7.org/fhir}CodeableConcept",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "goal",
               "operandTypeSpecifier" : {
                  "localId" : "600",
                  "locator" : "359:44-359:47",
                  "name" : "{http://hl7.org/fhir}Goal",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "615",
            "locator" : "368:1-369:116",
            "name" : "bodyPosition",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [bodyPosition](http://hl7.org/fhir/StructureDefinition/observation-bodyPosition)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a CodeableConcept"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/observation-bodyPosition"
               } ],
               "s" : {
                  "r" : "615",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [bodyPosition](http://hl7.org/fhir/StructureDefinition/observation-bodyPosition)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a CodeableConcept\n@extension: http://hl7.org/fhir/StructureDefinition/observation-bodyPosition\n*/\n","define fluent function ","bodyPosition","(","observation"," " ]
                  }, {
                     "r" : "608",
                     "s" : [ {
                        "value" : [ "Observation" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "614",
                     "s" : [ {
                        "r" : "614",
                        "s" : [ {
                           "r" : "612",
                           "s" : [ {
                              "r" : "611",
                              "s" : [ {
                                 "r" : "609",
                                 "s" : [ {
                                    "value" : [ "observation" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "611",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "610",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/observation-bodyPosition'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "612",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "613",
                           "s" : [ {
                              "value" : [ "CodeableConcept" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "614",
               "locator" : "369:3-369:116",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "612",
                  "locator" : "369:3-369:97",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "611",
                     "locator" : "369:3-369:91",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "609",
                        "locator" : "369:3-369:13",
                        "name" : "observation",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "610",
                        "locator" : "369:25-369:90",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/observation-bodyPosition",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "613",
                  "locator" : "369:102-369:116",
                  "name" : "{http://hl7.org/fhir}CodeableConcept",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "observation",
               "operandTypeSpecifier" : {
                  "localId" : "608",
                  "locator" : "368:49-368:59",
                  "name" : "{http://hl7.org/fhir}Observation",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "623",
            "locator" : "377:1-378:109",
            "name" : "delta",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [delta](http://hl7.org/fhir/StructureDefinition/observation-delta)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a CodeableConcept"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/observation-delta"
               } ],
               "s" : {
                  "r" : "623",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [delta](http://hl7.org/fhir/StructureDefinition/observation-delta)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a CodeableConcept\n@extension: http://hl7.org/fhir/StructureDefinition/observation-delta\n*/\n","define fluent function ","delta","(","observation"," " ]
                  }, {
                     "r" : "616",
                     "s" : [ {
                        "value" : [ "Observation" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "622",
                     "s" : [ {
                        "r" : "622",
                        "s" : [ {
                           "r" : "620",
                           "s" : [ {
                              "r" : "619",
                              "s" : [ {
                                 "r" : "617",
                                 "s" : [ {
                                    "value" : [ "observation" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "619",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "618",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/observation-delta'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "620",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "621",
                           "s" : [ {
                              "value" : [ "CodeableConcept" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "622",
               "locator" : "378:3-378:109",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "620",
                  "locator" : "378:3-378:90",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "619",
                     "locator" : "378:3-378:84",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "617",
                        "locator" : "378:3-378:13",
                        "name" : "observation",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "618",
                        "locator" : "378:25-378:83",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/observation-delta",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "621",
                  "locator" : "378:95-378:109",
                  "name" : "{http://hl7.org/fhir}CodeableConcept",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "observation",
               "operandTypeSpecifier" : {
                  "localId" : "616",
                  "locator" : "377:42-377:52",
                  "name" : "{http://hl7.org/fhir}Observation",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "631",
            "locator" : "385:1-386:103",
            "name" : "preferred",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [preferred](http://hl7.org/fhir/StructureDefinition/iso21090-preferred) extension defined in USCore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the direct extension as a boolean"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/iso21090-preferred"
               } ],
               "s" : {
                  "r" : "631",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [preferred](http://hl7.org/fhir/StructureDefinition/iso21090-preferred) extension defined in USCore.\n@comment: This function returns the value of the direct extension as a boolean\n@extension: http://hl7.org/fhir/StructureDefinition/iso21090-preferred\n*/\n","define fluent function ","preferred","(","contactPoint"," " ]
                  }, {
                     "r" : "624",
                     "s" : [ {
                        "value" : [ "ContactPoint" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "630",
                     "s" : [ {
                        "r" : "630",
                        "s" : [ {
                           "r" : "628",
                           "s" : [ {
                              "r" : "627",
                              "s" : [ {
                                 "r" : "625",
                                 "s" : [ {
                                    "value" : [ "contactPoint" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "627",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "626",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/iso21090-preferred'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "628",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "629",
                           "s" : [ {
                              "value" : [ "boolean" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "630",
               "locator" : "386:3-386:103",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "628",
                  "locator" : "386:3-386:92",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "627",
                     "locator" : "386:3-386:86",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "625",
                        "locator" : "386:3-386:14",
                        "name" : "contactPoint",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "626",
                        "locator" : "386:26-386:85",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/iso21090-preferred",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "629",
                  "locator" : "386:97-386:103",
                  "name" : "{http://hl7.org/fhir}boolean",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "contactPoint",
               "operandTypeSpecifier" : {
                  "localId" : "624",
                  "locator" : "385:47-385:58",
                  "name" : "{http://hl7.org/fhir}ContactPoint",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "639",
            "locator" : "394:1-395:115",
            "name" : "approachBodyStructure",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [approachBodyStructure](http://hl7.org/fhir/StructureDefinition/procedure-approachBodyStructure)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a Reference"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/procedure-approachBodyStructure"
               } ],
               "s" : {
                  "r" : "639",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [approachBodyStructure](http://hl7.org/fhir/StructureDefinition/procedure-approachBodyStructure)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a Reference\n@extension: http://hl7.org/fhir/StructureDefinition/procedure-approachBodyStructure\n*/\n","define fluent function ","approachBodyStructure","(","procedure"," " ]
                  }, {
                     "r" : "632",
                     "s" : [ {
                        "value" : [ "Procedure" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "638",
                     "s" : [ {
                        "r" : "638",
                        "s" : [ {
                           "r" : "636",
                           "s" : [ {
                              "r" : "635",
                              "s" : [ {
                                 "r" : "633",
                                 "s" : [ {
                                    "value" : [ "procedure" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "635",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "634",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/procedure-approachBodyStructure'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "636",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "637",
                           "s" : [ {
                              "value" : [ "Reference" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "638",
               "locator" : "395:3-395:115",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "636",
                  "locator" : "395:3-395:102",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "635",
                     "locator" : "395:3-395:96",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "633",
                        "locator" : "395:3-395:11",
                        "name" : "procedure",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "634",
                        "locator" : "395:23-395:95",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/procedure-approachBodyStructure",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "637",
                  "locator" : "395:107-395:115",
                  "name" : "{http://hl7.org/fhir}Reference",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "procedure",
               "operandTypeSpecifier" : {
                  "localId" : "632",
                  "locator" : "394:56-394:64",
                  "name" : "{http://hl7.org/fhir}Procedure",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "647",
            "locator" : "403:1-404:109",
            "name" : "incisionDateTime",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [incisionDateTime](http://hl7.org/fhir/StructureDefinition/procedure-incisionDateTime)\nextension defined in FHIR."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a dateTime"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/StructureDefinition/procedure-incisionDateTime"
               } ],
               "s" : {
                  "r" : "647",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [incisionDateTime](http://hl7.org/fhir/StructureDefinition/procedure-incisionDateTime)\nextension defined in FHIR.\n@comment: This function returns the value of the extension as a dateTime\n@extension: http://hl7.org/fhir/StructureDefinition/procedure-incisionDateTime\n*/\n","define fluent function ","incisionDateTime","(","procedure"," " ]
                  }, {
                     "r" : "640",
                     "s" : [ {
                        "value" : [ "Procedure" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "646",
                     "s" : [ {
                        "r" : "646",
                        "s" : [ {
                           "r" : "644",
                           "s" : [ {
                              "r" : "643",
                              "s" : [ {
                                 "r" : "641",
                                 "s" : [ {
                                    "value" : [ "procedure" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "643",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "642",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/StructureDefinition/procedure-incisionDateTime'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "644",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "645",
                           "s" : [ {
                              "value" : [ "dateTime" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "646",
               "locator" : "404:3-404:109",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "644",
                  "locator" : "404:3-404:97",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "643",
                     "locator" : "404:3-404:91",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "641",
                        "locator" : "404:3-404:11",
                        "name" : "procedure",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "642",
                        "locator" : "404:23-404:90",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/StructureDefinition/procedure-incisionDateTime",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "645",
                  "locator" : "404:102-404:109",
                  "name" : "{http://hl7.org/fhir}dateTime",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "procedure",
               "operandTypeSpecifier" : {
                  "localId" : "640",
                  "locator" : "403:51-403:59",
                  "name" : "{http://hl7.org/fhir}Procedure",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "680",
            "locator" : "413:1-423:7",
            "name" : "ethnicity",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [ethnicity](http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity)\nextension defined in USCore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns a tuple with elements for each subextension (ombCategory, detailed, and text)."
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity"
               } ],
               "s" : {
                  "r" : "680",
                  "s" : [ {
                     "value" : [ "/* USCore Extensions */\n/*\n@description: Surfaces the [ethnicity](http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity)\nextension defined in USCore.\n@comment: This function returns a tuple with elements for each subextension (ombCategory, detailed, and text).\n@extension: http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity\n*/\n","define fluent function ","ethnicity","(","patient"," " ]
                  }, {
                     "r" : "648",
                     "s" : [ {
                        "value" : [ "Patient" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "679",
                     "s" : [ {
                        "r" : "679",
                        "s" : [ {
                           "s" : [ {
                              "r" : "650",
                              "s" : [ {
                                 "r" : "649",
                                 "s" : [ {
                                    "s" : [ {
                                       "value" : [ "patient" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","P" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "s" : [ {
                              "value" : [ "let " ]
                           }, {
                              "r" : "654",
                              "s" : [ {
                                 "value" : [ "ethnicityEx",": " ]
                              }, {
                                 "r" : "653",
                                 "s" : [ {
                                    "r" : "651",
                                    "s" : [ {
                                       "value" : [ "P" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "653",
                                    "s" : [ {
                                       "value" : [ "extension","(" ]
                                    }, {
                                       "r" : "652",
                                       "s" : [ {
                                          "value" : [ "'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'" ]
                                       } ]
                                    }, {
                                       "value" : [ ")" ]
                                    } ]
                                 } ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "678",
                           "s" : [ {
                              "value" : [ "return\n      " ]
                           }, {
                              "r" : "677",
                              "s" : [ {
                                 "value" : [ "{\n        " ]
                              }, {
                                 "s" : [ {
                                    "value" : [ "ombCategory",": " ]
                                 }, {
                                    "r" : "660",
                                    "s" : [ {
                                       "r" : "658",
                                       "s" : [ {
                                          "r" : "657",
                                          "s" : [ {
                                             "r" : "655",
                                             "s" : [ {
                                                "value" : [ "ethnicityEx" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "657",
                                             "s" : [ {
                                                "value" : [ "extension","(" ]
                                             }, {
                                                "r" : "656",
                                                "s" : [ {
                                                   "value" : [ "'ombCategory'" ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "658",
                                          "s" : [ {
                                             "value" : [ "value" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " as " ]
                                    }, {
                                       "r" : "659",
                                       "s" : [ {
                                          "value" : [ "Coding" ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ",\n        " ]
                              }, {
                                 "s" : [ {
                                    "value" : [ "detailed",":\n          " ]
                                 }, {
                                    "r" : "670",
                                    "s" : [ {
                                       "s" : [ {
                                          "r" : "664",
                                          "s" : [ {
                                             "r" : "663",
                                             "s" : [ {
                                                "value" : [ "(" ]
                                             }, {
                                                "r" : "663",
                                                "s" : [ {
                                                   "r" : "661",
                                                   "s" : [ {
                                                      "value" : [ "ethnicityEx" ]
                                                   } ]
                                                }, {
                                                   "value" : [ "." ]
                                                }, {
                                                   "r" : "663",
                                                   "s" : [ {
                                                      "value" : [ "extensions","(" ]
                                                   }, {
                                                      "r" : "662",
                                                      "s" : [ {
                                                         "value" : [ "'detailed'" ]
                                                      } ]
                                                   }, {
                                                      "value" : [ ")" ]
                                                   } ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          }, {
                                             "value" : [ " ","E" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ "\n            " ]
                                    }, {
                                       "r" : "669",
                                       "s" : [ {
                                          "value" : [ "return " ]
                                       }, {
                                          "r" : "668",
                                          "s" : [ {
                                             "r" : "666",
                                             "s" : [ {
                                                "r" : "665",
                                                "s" : [ {
                                                   "value" : [ "E" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "666",
                                                "s" : [ {
                                                   "value" : [ "value" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ " as " ]
                                          }, {
                                             "r" : "667",
                                             "s" : [ {
                                                "value" : [ "Coding" ]
                                             } ]
                                          } ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ",\n        " ]
                              }, {
                                 "s" : [ {
                                    "value" : [ "text",": " ]
                                 }, {
                                    "r" : "676",
                                    "s" : [ {
                                       "r" : "674",
                                       "s" : [ {
                                          "r" : "673",
                                          "s" : [ {
                                             "r" : "671",
                                             "s" : [ {
                                                "value" : [ "ethnicityEx" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "673",
                                             "s" : [ {
                                                "value" : [ "extension","(" ]
                                             }, {
                                                "r" : "672",
                                                "s" : [ {
                                                   "value" : [ "'text'" ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "674",
                                          "s" : [ {
                                             "value" : [ "value" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " as " ]
                                    }, {
                                       "r" : "675",
                                       "s" : [ {
                                          "value" : [ "string" ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ "\n      }" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "679",
               "locator" : "414:3-423:7",
               "type" : "Query",
               "source" : [ {
                  "localId" : "650",
                  "locator" : "414:3-414:11",
                  "alias" : "P",
                  "expression" : {
                     "localId" : "649",
                     "locator" : "414:3-414:9",
                     "name" : "patient",
                     "type" : "OperandRef"
                  }
               } ],
               "let" : [ {
                  "localId" : "654",
                  "locator" : "415:9-415:101",
                  "identifier" : "ethnicityEx",
                  "expression" : {
                     "localId" : "653",
                     "locator" : "415:22-415:101",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "651",
                        "locator" : "415:22",
                        "name" : "P",
                        "type" : "AliasRef"
                     }, {
                        "localId" : "652",
                        "locator" : "415:34-415:100",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
                        "type" : "Literal"
                     } ]
                  }
               } ],
               "relationship" : [ ],
               "return" : {
                  "localId" : "678",
                  "locator" : "416:5-423:7",
                  "expression" : {
                     "localId" : "677",
                     "locator" : "417:7-423:7",
                     "type" : "Tuple",
                     "element" : [ {
                        "name" : "ombCategory",
                        "value" : {
                           "localId" : "660",
                           "locator" : "418:22-418:73",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "658",
                              "locator" : "418:22-418:63",
                              "path" : "value",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "657",
                                 "locator" : "418:22-418:57",
                                 "name" : "extension",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "655",
                                    "locator" : "418:22-418:32",
                                    "name" : "ethnicityEx",
                                    "type" : "QueryLetRef"
                                 }, {
                                    "localId" : "656",
                                    "locator" : "418:44-418:56",
                                    "valueType" : "{urn:hl7-org:elm-types:r1}String",
                                    "value" : "ombCategory",
                                    "type" : "Literal"
                                 } ]
                              }
                           },
                           "asTypeSpecifier" : {
                              "localId" : "659",
                              "locator" : "418:68-418:73",
                              "name" : "{http://hl7.org/fhir}Coding",
                              "type" : "NamedTypeSpecifier"
                           }
                        }
                     }, {
                        "name" : "detailed",
                        "value" : {
                           "localId" : "670",
                           "locator" : "420:11-421:36",
                           "type" : "Query",
                           "source" : [ {
                              "localId" : "664",
                              "locator" : "420:11-420:48",
                              "alias" : "E",
                              "expression" : {
                                 "localId" : "663",
                                 "locator" : "420:11-420:46",
                                 "name" : "extensions",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "661",
                                    "locator" : "420:12-420:22",
                                    "name" : "ethnicityEx",
                                    "type" : "QueryLetRef"
                                 }, {
                                    "localId" : "662",
                                    "locator" : "420:35-420:44",
                                    "valueType" : "{urn:hl7-org:elm-types:r1}String",
                                    "value" : "detailed",
                                    "type" : "Literal"
                                 } ]
                              }
                           } ],
                           "relationship" : [ ],
                           "return" : {
                              "localId" : "669",
                              "locator" : "421:13-421:36",
                              "expression" : {
                                 "localId" : "668",
                                 "locator" : "421:20-421:36",
                                 "strict" : false,
                                 "type" : "As",
                                 "operand" : {
                                    "localId" : "666",
                                    "locator" : "421:20-421:26",
                                    "path" : "value",
                                    "scope" : "E",
                                    "type" : "Property"
                                 },
                                 "asTypeSpecifier" : {
                                    "localId" : "667",
                                    "locator" : "421:31-421:36",
                                    "name" : "{http://hl7.org/fhir}Coding",
                                    "type" : "NamedTypeSpecifier"
                                 }
                              }
                           }
                        }
                     }, {
                        "name" : "text",
                        "value" : {
                           "localId" : "676",
                           "locator" : "422:15-422:59",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "674",
                              "locator" : "422:15-422:49",
                              "path" : "value",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "673",
                                 "locator" : "422:15-422:43",
                                 "name" : "extension",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "671",
                                    "locator" : "422:15-422:25",
                                    "name" : "ethnicityEx",
                                    "type" : "QueryLetRef"
                                 }, {
                                    "localId" : "672",
                                    "locator" : "422:37-422:42",
                                    "valueType" : "{urn:hl7-org:elm-types:r1}String",
                                    "value" : "text",
                                    "type" : "Literal"
                                 } ]
                              }
                           },
                           "asTypeSpecifier" : {
                              "localId" : "675",
                              "locator" : "422:54-422:59",
                              "name" : "{http://hl7.org/fhir}string",
                              "type" : "NamedTypeSpecifier"
                           }
                        }
                     } ]
                  }
               }
            },
            "operand" : [ {
               "name" : "patient",
               "operandTypeSpecifier" : {
                  "localId" : "648",
                  "locator" : "413:42-413:48",
                  "name" : "{http://hl7.org/fhir}Patient",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "717",
            "locator" : "430:1-442:7",
            "name" : "race",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [race](http://hl7.org/fhir/us/core/StructureDefinition/us-core-race) extension defined in USCore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns a tuple with elements for each subextension (ombCategory, detailed, and text)."
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race"
               } ],
               "s" : {
                  "r" : "717",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [race](http://hl7.org/fhir/us/core/StructureDefinition/us-core-race) extension defined in USCore.\n@comment: This function returns a tuple with elements for each subextension (ombCategory, detailed, and text).\n@extension: http://hl7.org/fhir/us/core/StructureDefinition/us-core-race\n*/\n","define fluent function ","race","(","patient"," " ]
                  }, {
                     "r" : "681",
                     "s" : [ {
                        "value" : [ "Patient" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "716",
                     "s" : [ {
                        "r" : "716",
                        "s" : [ {
                           "s" : [ {
                              "r" : "683",
                              "s" : [ {
                                 "r" : "682",
                                 "s" : [ {
                                    "s" : [ {
                                       "value" : [ "patient" ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ " ","P" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "s" : [ {
                              "value" : [ "let " ]
                           }, {
                              "r" : "687",
                              "s" : [ {
                                 "value" : [ "raceEx",": " ]
                              }, {
                                 "r" : "686",
                                 "s" : [ {
                                    "r" : "684",
                                    "s" : [ {
                                       "value" : [ "P" ]
                                    } ]
                                 }, {
                                    "value" : [ "." ]
                                 }, {
                                    "r" : "686",
                                    "s" : [ {
                                       "value" : [ "extension","(" ]
                                    }, {
                                       "r" : "685",
                                       "s" : [ {
                                          "value" : [ "'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'" ]
                                       } ]
                                    }, {
                                       "value" : [ ")" ]
                                    } ]
                                 } ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "715",
                           "s" : [ {
                              "value" : [ "return\n      " ]
                           }, {
                              "r" : "714",
                              "s" : [ {
                                 "value" : [ "{\n        " ]
                              }, {
                                 "s" : [ {
                                    "value" : [ "ombCategory",":\n          " ]
                                 }, {
                                    "r" : "697",
                                    "s" : [ {
                                       "s" : [ {
                                          "r" : "691",
                                          "s" : [ {
                                             "r" : "690",
                                             "s" : [ {
                                                "value" : [ "(" ]
                                             }, {
                                                "r" : "690",
                                                "s" : [ {
                                                   "r" : "688",
                                                   "s" : [ {
                                                      "value" : [ "raceEx" ]
                                                   } ]
                                                }, {
                                                   "value" : [ "." ]
                                                }, {
                                                   "r" : "690",
                                                   "s" : [ {
                                                      "value" : [ "extensions","(" ]
                                                   }, {
                                                      "r" : "689",
                                                      "s" : [ {
                                                         "value" : [ "'ombCategory'" ]
                                                      } ]
                                                   }, {
                                                      "value" : [ ")" ]
                                                   } ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          }, {
                                             "value" : [ " ","E" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ "\n            " ]
                                    }, {
                                       "r" : "696",
                                       "s" : [ {
                                          "value" : [ "return " ]
                                       }, {
                                          "r" : "695",
                                          "s" : [ {
                                             "r" : "693",
                                             "s" : [ {
                                                "r" : "692",
                                                "s" : [ {
                                                   "value" : [ "E" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "693",
                                                "s" : [ {
                                                   "value" : [ "value" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ " as " ]
                                          }, {
                                             "r" : "694",
                                             "s" : [ {
                                                "value" : [ "Coding" ]
                                             } ]
                                          } ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ",\n        " ]
                              }, {
                                 "s" : [ {
                                    "value" : [ "detailed",":\n          " ]
                                 }, {
                                    "r" : "707",
                                    "s" : [ {
                                       "s" : [ {
                                          "r" : "701",
                                          "s" : [ {
                                             "r" : "700",
                                             "s" : [ {
                                                "value" : [ "(" ]
                                             }, {
                                                "r" : "700",
                                                "s" : [ {
                                                   "r" : "698",
                                                   "s" : [ {
                                                      "value" : [ "raceEx" ]
                                                   } ]
                                                }, {
                                                   "value" : [ "." ]
                                                }, {
                                                   "r" : "700",
                                                   "s" : [ {
                                                      "value" : [ "extensions","(" ]
                                                   }, {
                                                      "r" : "699",
                                                      "s" : [ {
                                                         "value" : [ "'detailed'" ]
                                                      } ]
                                                   }, {
                                                      "value" : [ ")" ]
                                                   } ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          }, {
                                             "value" : [ " ","E" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ "\n            " ]
                                    }, {
                                       "r" : "706",
                                       "s" : [ {
                                          "value" : [ "return " ]
                                       }, {
                                          "r" : "705",
                                          "s" : [ {
                                             "r" : "703",
                                             "s" : [ {
                                                "r" : "702",
                                                "s" : [ {
                                                   "value" : [ "E" ]
                                                } ]
                                             }, {
                                                "value" : [ "." ]
                                             }, {
                                                "r" : "703",
                                                "s" : [ {
                                                   "value" : [ "value" ]
                                                } ]
                                             } ]
                                          }, {
                                             "value" : [ " as " ]
                                          }, {
                                             "r" : "704",
                                             "s" : [ {
                                                "value" : [ "Coding" ]
                                             } ]
                                          } ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ",\n        " ]
                              }, {
                                 "s" : [ {
                                    "value" : [ "text",": " ]
                                 }, {
                                    "r" : "713",
                                    "s" : [ {
                                       "r" : "711",
                                       "s" : [ {
                                          "r" : "710",
                                          "s" : [ {
                                             "r" : "708",
                                             "s" : [ {
                                                "value" : [ "raceEx" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "710",
                                             "s" : [ {
                                                "value" : [ "extension","(" ]
                                             }, {
                                                "r" : "709",
                                                "s" : [ {
                                                   "value" : [ "'text'" ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "711",
                                          "s" : [ {
                                             "value" : [ "value" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " as " ]
                                    }, {
                                       "r" : "712",
                                       "s" : [ {
                                          "value" : [ "string" ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ "\n      }" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "716",
               "locator" : "431:3-442:7",
               "type" : "Query",
               "source" : [ {
                  "localId" : "683",
                  "locator" : "431:3-431:11",
                  "alias" : "P",
                  "expression" : {
                     "localId" : "682",
                     "locator" : "431:3-431:9",
                     "name" : "patient",
                     "type" : "OperandRef"
                  }
               } ],
               "let" : [ {
                  "localId" : "687",
                  "locator" : "432:9-432:91",
                  "identifier" : "raceEx",
                  "expression" : {
                     "localId" : "686",
                     "locator" : "432:17-432:91",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "684",
                        "locator" : "432:17",
                        "name" : "P",
                        "type" : "AliasRef"
                     }, {
                        "localId" : "685",
                        "locator" : "432:29-432:90",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race",
                        "type" : "Literal"
                     } ]
                  }
               } ],
               "relationship" : [ ],
               "return" : {
                  "localId" : "715",
                  "locator" : "433:5-442:7",
                  "expression" : {
                     "localId" : "714",
                     "locator" : "434:7-442:7",
                     "type" : "Tuple",
                     "element" : [ {
                        "name" : "ombCategory",
                        "value" : {
                           "localId" : "697",
                           "locator" : "436:11-437:36",
                           "type" : "Query",
                           "source" : [ {
                              "localId" : "691",
                              "locator" : "436:11-436:46",
                              "alias" : "E",
                              "expression" : {
                                 "localId" : "690",
                                 "locator" : "436:11-436:44",
                                 "name" : "extensions",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "688",
                                    "locator" : "436:12-436:17",
                                    "name" : "raceEx",
                                    "type" : "QueryLetRef"
                                 }, {
                                    "localId" : "689",
                                    "locator" : "436:30-436:42",
                                    "valueType" : "{urn:hl7-org:elm-types:r1}String",
                                    "value" : "ombCategory",
                                    "type" : "Literal"
                                 } ]
                              }
                           } ],
                           "relationship" : [ ],
                           "return" : {
                              "localId" : "696",
                              "locator" : "437:13-437:36",
                              "expression" : {
                                 "localId" : "695",
                                 "locator" : "437:20-437:36",
                                 "strict" : false,
                                 "type" : "As",
                                 "operand" : {
                                    "localId" : "693",
                                    "locator" : "437:20-437:26",
                                    "path" : "value",
                                    "scope" : "E",
                                    "type" : "Property"
                                 },
                                 "asTypeSpecifier" : {
                                    "localId" : "694",
                                    "locator" : "437:31-437:36",
                                    "name" : "{http://hl7.org/fhir}Coding",
                                    "type" : "NamedTypeSpecifier"
                                 }
                              }
                           }
                        }
                     }, {
                        "name" : "detailed",
                        "value" : {
                           "localId" : "707",
                           "locator" : "439:11-440:36",
                           "type" : "Query",
                           "source" : [ {
                              "localId" : "701",
                              "locator" : "439:11-439:43",
                              "alias" : "E",
                              "expression" : {
                                 "localId" : "700",
                                 "locator" : "439:11-439:41",
                                 "name" : "extensions",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "698",
                                    "locator" : "439:12-439:17",
                                    "name" : "raceEx",
                                    "type" : "QueryLetRef"
                                 }, {
                                    "localId" : "699",
                                    "locator" : "439:30-439:39",
                                    "valueType" : "{urn:hl7-org:elm-types:r1}String",
                                    "value" : "detailed",
                                    "type" : "Literal"
                                 } ]
                              }
                           } ],
                           "relationship" : [ ],
                           "return" : {
                              "localId" : "706",
                              "locator" : "440:13-440:36",
                              "expression" : {
                                 "localId" : "705",
                                 "locator" : "440:20-440:36",
                                 "strict" : false,
                                 "type" : "As",
                                 "operand" : {
                                    "localId" : "703",
                                    "locator" : "440:20-440:26",
                                    "path" : "value",
                                    "scope" : "E",
                                    "type" : "Property"
                                 },
                                 "asTypeSpecifier" : {
                                    "localId" : "704",
                                    "locator" : "440:31-440:36",
                                    "name" : "{http://hl7.org/fhir}Coding",
                                    "type" : "NamedTypeSpecifier"
                                 }
                              }
                           }
                        }
                     }, {
                        "name" : "text",
                        "value" : {
                           "localId" : "713",
                           "locator" : "441:15-441:54",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "711",
                              "locator" : "441:15-441:44",
                              "path" : "value",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "710",
                                 "locator" : "441:15-441:38",
                                 "name" : "extension",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "708",
                                    "locator" : "441:15-441:20",
                                    "name" : "raceEx",
                                    "type" : "QueryLetRef"
                                 }, {
                                    "localId" : "709",
                                    "locator" : "441:32-441:37",
                                    "valueType" : "{urn:hl7-org:elm-types:r1}String",
                                    "value" : "text",
                                    "type" : "Literal"
                                 } ]
                              }
                           },
                           "asTypeSpecifier" : {
                              "localId" : "712",
                              "locator" : "441:49-441:54",
                              "name" : "{http://hl7.org/fhir}string",
                              "type" : "NamedTypeSpecifier"
                           }
                        }
                     } ]
                  }
               }
            },
            "operand" : [ {
               "name" : "patient",
               "operandTypeSpecifier" : {
                  "localId" : "681",
                  "locator" : "430:37-430:43",
                  "name" : "{http://hl7.org/fhir}Patient",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "725",
            "locator" : "449:1-450:101",
            "name" : "birthsex",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [birthsex](http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex) extension defined in USCore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the birthsex extension as a code"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex"
               } ],
               "s" : {
                  "r" : "725",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [birthsex](http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex) extension defined in USCore.\n@comment: This function returns the value of the birthsex extension as a code\n@extension: http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex\n*/\n","define fluent function ","birthsex","(","patient"," " ]
                  }, {
                     "r" : "718",
                     "s" : [ {
                        "value" : [ "Patient" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "724",
                     "s" : [ {
                        "r" : "724",
                        "s" : [ {
                           "r" : "722",
                           "s" : [ {
                              "r" : "721",
                              "s" : [ {
                                 "r" : "719",
                                 "s" : [ {
                                    "value" : [ "patient" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "721",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "720",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "722",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "723",
                           "s" : [ {
                              "value" : [ "code" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "724",
               "locator" : "450:3-450:101",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "722",
                  "locator" : "450:3-450:93",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "721",
                     "locator" : "450:3-450:87",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "719",
                        "locator" : "450:3-450:9",
                        "name" : "patient",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "720",
                        "locator" : "450:21-450:86",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "723",
                  "locator" : "450:98-450:101",
                  "name" : "{http://hl7.org/fhir}code",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "patient",
               "operandTypeSpecifier" : {
                  "localId" : "718",
                  "locator" : "449:41-449:47",
                  "name" : "{http://hl7.org/fhir}Patient",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "733",
            "locator" : "457:1-458:107",
            "name" : "direct",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [direct](http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct) extension defined in USCore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the direct extension as a boolean"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct"
               } ],
               "s" : {
                  "r" : "733",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [direct](http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct) extension defined in USCore.\n@comment: This function returns the value of the direct extension as a boolean\n@extension: http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct\n*/\n","define fluent function ","direct","(","contactPoint"," " ]
                  }, {
                     "r" : "726",
                     "s" : [ {
                        "value" : [ "ContactPoint" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "732",
                     "s" : [ {
                        "r" : "732",
                        "s" : [ {
                           "r" : "730",
                           "s" : [ {
                              "r" : "729",
                              "s" : [ {
                                 "r" : "727",
                                 "s" : [ {
                                    "value" : [ "contactPoint" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "729",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "728",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "730",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "731",
                           "s" : [ {
                              "value" : [ "boolean" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "732",
               "locator" : "458:3-458:107",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "730",
                  "locator" : "458:3-458:96",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "729",
                     "locator" : "458:3-458:90",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "727",
                        "locator" : "458:3-458:14",
                        "name" : "contactPoint",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "728",
                        "locator" : "458:26-458:89",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "731",
                  "locator" : "458:101-458:107",
                  "name" : "{http://hl7.org/fhir}boolean",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "contactPoint",
               "operandTypeSpecifier" : {
                  "localId" : "726",
                  "locator" : "457:44-457:55",
                  "name" : "{http://hl7.org/fhir}ContactPoint",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "741",
            "locator" : "468:1-469:122",
            "name" : "isElective",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [isElective](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-isElective)\nmodifier extension defined in QICore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the isElective modifier extension as a boolean."
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-isElective"
               } ],
               "s" : {
                  "r" : "741",
                  "s" : [ {
                     "value" : [ "/* QICore Extensions */\n\n/*\n@description: Surfaces the [isElective](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-isElective)\nmodifier extension defined in QICore.\n@comment: This function returns the value of the isElective modifier extension as a boolean.\n@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-isElective\n*/\n","define fluent function ","isElective","(","serviceRequest"," " ]
                  }, {
                     "r" : "734",
                     "s" : [ {
                        "value" : [ "ServiceRequest" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "740",
                     "s" : [ {
                        "r" : "740",
                        "s" : [ {
                           "r" : "738",
                           "s" : [ {
                              "r" : "737",
                              "s" : [ {
                                 "r" : "735",
                                 "s" : [ {
                                    "value" : [ "serviceRequest" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "737",
                                 "s" : [ {
                                    "value" : [ "modifierExtension","(" ]
                                 }, {
                                    "r" : "736",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-isElective'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "738",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "739",
                           "s" : [ {
                              "value" : [ "boolean" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "740",
               "locator" : "469:3-469:122",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "738",
                  "locator" : "469:3-469:111",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "737",
                     "locator" : "469:3-469:105",
                     "name" : "modifierExtension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "735",
                        "locator" : "469:3-469:16",
                        "name" : "serviceRequest",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "736",
                        "locator" : "469:36-469:104",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-isElective",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "739",
                  "locator" : "469:116-469:122",
                  "name" : "{http://hl7.org/fhir}boolean",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "serviceRequest",
               "operandTypeSpecifier" : {
                  "localId" : "734",
                  "locator" : "468:50-468:63",
                  "name" : "{http://hl7.org/fhir}ServiceRequest",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "768",
            "locator" : "477:1-483:5",
            "name" : "procedure",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [procedure](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure)\nextension defined in QICore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns a tuple with elements for each subextension (type, rank, and procedure)."
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure"
               } ],
               "s" : {
                  "r" : "768",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [procedure](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure)\nextension defined in QICore.\n@comment: This function returns a tuple with elements for each subextension (type, rank, and procedure).\n@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure\n*/\n","define fluent function ","procedure","(","encounter"," " ]
                  }, {
                     "r" : "742",
                     "s" : [ {
                        "value" : [ "Encounter" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "767",
                     "s" : [ {
                        "r" : "767",
                        "s" : [ {
                           "s" : [ {
                              "r" : "746",
                              "s" : [ {
                                 "r" : "745",
                                 "s" : [ {
                                    "value" : [ "(" ]
                                 }, {
                                    "r" : "745",
                                    "s" : [ {
                                       "r" : "743",
                                       "s" : [ {
                                          "value" : [ "encounter" ]
                                       } ]
                                    }, {
                                       "value" : [ "." ]
                                    }, {
                                       "r" : "745",
                                       "s" : [ {
                                          "value" : [ "extensions","(" ]
                                       }, {
                                          "r" : "744",
                                          "s" : [ {
                                             "value" : [ "'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure'" ]
                                          } ]
                                       }, {
                                          "value" : [ ")" ]
                                       } ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              }, {
                                 "value" : [ " ","E" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ "\n    " ]
                        }, {
                           "r" : "766",
                           "s" : [ {
                              "value" : [ "return " ]
                           }, {
                              "r" : "765",
                              "s" : [ {
                                 "value" : [ "{\n      " ]
                              }, {
                                 "s" : [ {
                                    "value" : [ "type",": " ]
                                 }, {
                                    "r" : "752",
                                    "s" : [ {
                                       "r" : "750",
                                       "s" : [ {
                                          "r" : "749",
                                          "s" : [ {
                                             "r" : "747",
                                             "s" : [ {
                                                "value" : [ "E" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "749",
                                             "s" : [ {
                                                "value" : [ "extension","(" ]
                                             }, {
                                                "r" : "748",
                                                "s" : [ {
                                                   "value" : [ "'type'" ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "750",
                                          "s" : [ {
                                             "value" : [ "value" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " as " ]
                                    }, {
                                       "r" : "751",
                                       "s" : [ {
                                          "value" : [ "CodeableConcept" ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ",\n      " ]
                              }, {
                                 "s" : [ {
                                    "value" : [ "rank",": " ]
                                 }, {
                                    "r" : "758",
                                    "s" : [ {
                                       "r" : "756",
                                       "s" : [ {
                                          "r" : "755",
                                          "s" : [ {
                                             "r" : "753",
                                             "s" : [ {
                                                "value" : [ "E" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "755",
                                             "s" : [ {
                                                "value" : [ "extension","(" ]
                                             }, {
                                                "r" : "754",
                                                "s" : [ {
                                                   "value" : [ "'rank'" ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "756",
                                          "s" : [ {
                                             "value" : [ "value" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " as " ]
                                    }, {
                                       "r" : "757",
                                       "s" : [ {
                                          "value" : [ "positiveInt" ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ ",\n      " ]
                              }, {
                                 "s" : [ {
                                    "value" : [ "procedure",": " ]
                                 }, {
                                    "r" : "764",
                                    "s" : [ {
                                       "r" : "762",
                                       "s" : [ {
                                          "r" : "761",
                                          "s" : [ {
                                             "r" : "759",
                                             "s" : [ {
                                                "value" : [ "E" ]
                                             } ]
                                          }, {
                                             "value" : [ "." ]
                                          }, {
                                             "r" : "761",
                                             "s" : [ {
                                                "value" : [ "extension","(" ]
                                             }, {
                                                "r" : "760",
                                                "s" : [ {
                                                   "value" : [ "'procedure'" ]
                                                } ]
                                             }, {
                                                "value" : [ ")" ]
                                             } ]
                                          } ]
                                       }, {
                                          "value" : [ "." ]
                                       }, {
                                          "r" : "762",
                                          "s" : [ {
                                             "value" : [ "value" ]
                                          } ]
                                       } ]
                                    }, {
                                       "value" : [ " as " ]
                                    }, {
                                       "r" : "763",
                                       "s" : [ {
                                          "value" : [ "Reference" ]
                                       } ]
                                    } ]
                                 } ]
                              }, {
                                 "value" : [ "\n    }" ]
                              } ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "767",
               "locator" : "478:3-483:5",
               "type" : "Query",
               "source" : [ {
                  "localId" : "746",
                  "locator" : "478:3-478:106",
                  "alias" : "E",
                  "expression" : {
                     "localId" : "745",
                     "locator" : "478:3-478:104",
                     "name" : "extensions",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "743",
                        "locator" : "478:4-478:12",
                        "name" : "encounter",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "744",
                        "locator" : "478:25-478:102",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure",
                        "type" : "Literal"
                     } ]
                  }
               } ],
               "relationship" : [ ],
               "return" : {
                  "localId" : "766",
                  "locator" : "479:5-483:5",
                  "expression" : {
                     "localId" : "765",
                     "locator" : "479:12-483:5",
                     "type" : "Tuple",
                     "element" : [ {
                        "name" : "type",
                        "value" : {
                           "localId" : "752",
                           "locator" : "480:13-480:56",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "750",
                              "locator" : "480:13-480:37",
                              "path" : "value",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "749",
                                 "locator" : "480:13-480:31",
                                 "name" : "extension",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "747",
                                    "locator" : "480:13",
                                    "name" : "E",
                                    "type" : "AliasRef"
                                 }, {
                                    "localId" : "748",
                                    "locator" : "480:25-480:30",
                                    "valueType" : "{urn:hl7-org:elm-types:r1}String",
                                    "value" : "type",
                                    "type" : "Literal"
                                 } ]
                              }
                           },
                           "asTypeSpecifier" : {
                              "localId" : "751",
                              "locator" : "480:42-480:56",
                              "name" : "{http://hl7.org/fhir}CodeableConcept",
                              "type" : "NamedTypeSpecifier"
                           }
                        }
                     }, {
                        "name" : "rank",
                        "value" : {
                           "localId" : "758",
                           "locator" : "481:13-481:52",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "756",
                              "locator" : "481:13-481:37",
                              "path" : "value",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "755",
                                 "locator" : "481:13-481:31",
                                 "name" : "extension",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "753",
                                    "locator" : "481:13",
                                    "name" : "E",
                                    "type" : "AliasRef"
                                 }, {
                                    "localId" : "754",
                                    "locator" : "481:25-481:30",
                                    "valueType" : "{urn:hl7-org:elm-types:r1}String",
                                    "value" : "rank",
                                    "type" : "Literal"
                                 } ]
                              }
                           },
                           "asTypeSpecifier" : {
                              "localId" : "757",
                              "locator" : "481:42-481:52",
                              "name" : "{http://hl7.org/fhir}positiveInt",
                              "type" : "NamedTypeSpecifier"
                           }
                        }
                     }, {
                        "name" : "procedure",
                        "value" : {
                           "localId" : "764",
                           "locator" : "482:18-482:60",
                           "strict" : false,
                           "type" : "As",
                           "operand" : {
                              "localId" : "762",
                              "locator" : "482:18-482:47",
                              "path" : "value",
                              "type" : "Property",
                              "source" : {
                                 "localId" : "761",
                                 "locator" : "482:18-482:41",
                                 "name" : "extension",
                                 "type" : "FunctionRef",
                                 "operand" : [ {
                                    "localId" : "759",
                                    "locator" : "482:18",
                                    "name" : "E",
                                    "type" : "AliasRef"
                                 }, {
                                    "localId" : "760",
                                    "locator" : "482:30-482:40",
                                    "valueType" : "{urn:hl7-org:elm-types:r1}String",
                                    "value" : "procedure",
                                    "type" : "Literal"
                                 } ]
                              }
                           },
                           "asTypeSpecifier" : {
                              "localId" : "763",
                              "locator" : "482:52-482:60",
                              "name" : "{http://hl7.org/fhir}Reference",
                              "type" : "NamedTypeSpecifier"
                           }
                        }
                     } ]
                  }
               }
            },
            "operand" : [ {
               "name" : "encounter",
               "operandTypeSpecifier" : {
                  "localId" : "742",
                  "locator" : "477:44-477:52",
                  "name" : "{http://hl7.org/fhir}Encounter",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "776",
            "locator" : "491:1-492:131",
            "name" : "doNotPerformReason",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [doNotPerform](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason)\nextension defined in QICore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a CodeableConcept"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason"
               } ],
               "s" : {
                  "r" : "776",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [doNotPerform](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason)\nextension defined in QICore.\n@comment: This function returns the value of the extension as a CodeableConcept\n@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason\n*/\n","define fluent function ","doNotPerformReason","(","requestResource"," " ]
                  }, {
                     "r" : "769",
                     "s" : [ {
                        "value" : [ "DomainResource" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "775",
                     "s" : [ {
                        "r" : "775",
                        "s" : [ {
                           "r" : "773",
                           "s" : [ {
                              "r" : "772",
                              "s" : [ {
                                 "r" : "770",
                                 "s" : [ {
                                    "value" : [ "requestResource" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "772",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "771",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "773",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "774",
                           "s" : [ {
                              "value" : [ "CodeableConcept" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "775",
               "locator" : "492:3-492:131",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "773",
                  "locator" : "492:3-492:112",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "772",
                     "locator" : "492:3-492:106",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "770",
                        "locator" : "492:3-492:17",
                        "name" : "requestResource",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "771",
                        "locator" : "492:29-492:105",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "774",
                  "locator" : "492:117-492:131",
                  "name" : "{http://hl7.org/fhir}CodeableConcept",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "requestResource",
               "operandTypeSpecifier" : {
                  "localId" : "769",
                  "locator" : "491:59-491:72",
                  "name" : "{http://hl7.org/fhir}DomainResource",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "784",
            "locator" : "500:1-501:113",
            "name" : "recorded",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [recorded](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded)\nextension defined in QICore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a dateTime"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded"
               } ],
               "s" : {
                  "r" : "784",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [recorded](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded)\nextension defined in QICore.\n@comment: This function returns the value of the extension as a dateTime\n@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded\n*/\n","define fluent function ","recorded","(","domainResource"," " ]
                  }, {
                     "r" : "777",
                     "s" : [ {
                        "value" : [ "DomainResource" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "783",
                     "s" : [ {
                        "r" : "783",
                        "s" : [ {
                           "r" : "781",
                           "s" : [ {
                              "r" : "780",
                              "s" : [ {
                                 "r" : "778",
                                 "s" : [ {
                                    "value" : [ "domainResource" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "780",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "779",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "781",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "782",
                           "s" : [ {
                              "value" : [ "dateTime" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "783",
               "locator" : "501:3-501:113",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "781",
                  "locator" : "501:3-501:101",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "780",
                     "locator" : "501:3-501:95",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "778",
                        "locator" : "501:3-501:16",
                        "name" : "domainResource",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "779",
                        "locator" : "501:28-501:94",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "782",
                  "locator" : "501:106-501:113",
                  "name" : "{http://hl7.org/fhir}dateTime",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "domainResource",
               "operandTypeSpecifier" : {
                  "localId" : "777",
                  "locator" : "500:48-500:61",
                  "name" : "{http://hl7.org/fhir}DomainResource",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "792",
            "locator" : "509:1-510:118",
            "name" : "notDone",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [notDone](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone)\nmodifier extension defined in QICore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the modifier extension as a boolean"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone"
               } ],
               "s" : {
                  "r" : "792",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [notDone](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone)\nmodifier extension defined in QICore.\n@comment: This function returns the value of the modifier extension as a boolean\n@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone\n*/\n","define fluent function ","notDone","(","eventResource"," " ]
                  }, {
                     "r" : "785",
                     "s" : [ {
                        "value" : [ "DomainResource" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "791",
                     "s" : [ {
                        "r" : "791",
                        "s" : [ {
                           "r" : "789",
                           "s" : [ {
                              "r" : "788",
                              "s" : [ {
                                 "r" : "786",
                                 "s" : [ {
                                    "value" : [ "eventResource" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "788",
                                 "s" : [ {
                                    "value" : [ "modifierExtension","(" ]
                                 }, {
                                    "r" : "787",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "789",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "790",
                           "s" : [ {
                              "value" : [ "boolean" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "791",
               "locator" : "510:3-510:118",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "789",
                  "locator" : "510:3-510:107",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "788",
                     "locator" : "510:3-510:101",
                     "name" : "modifierExtension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "786",
                        "locator" : "510:3-510:15",
                        "name" : "eventResource",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "787",
                        "locator" : "510:35-510:100",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "790",
                  "locator" : "510:112-510:118",
                  "name" : "{http://hl7.org/fhir}boolean",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "eventResource",
               "operandTypeSpecifier" : {
                  "localId" : "785",
                  "locator" : "509:46-509:59",
                  "name" : "{http://hl7.org/fhir}DomainResource",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "800",
            "locator" : "518:1-519:124",
            "name" : "notDoneReason",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [notDoneReason](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason)\nextension defined in QICore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a CodeableConcept"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason"
               } ],
               "s" : {
                  "r" : "800",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [notDoneReason](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason)\nextension defined in QICore.\n@comment: This function returns the value of the extension as a CodeableConcept\n@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason\n*/\n","define fluent function ","notDoneReason","(","eventResource"," " ]
                  }, {
                     "r" : "793",
                     "s" : [ {
                        "value" : [ "DomainResource" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "799",
                     "s" : [ {
                        "r" : "799",
                        "s" : [ {
                           "r" : "797",
                           "s" : [ {
                              "r" : "796",
                              "s" : [ {
                                 "r" : "794",
                                 "s" : [ {
                                    "value" : [ "eventResource" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "796",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "795",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "797",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "798",
                           "s" : [ {
                              "value" : [ "CodeableConcept" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "799",
               "locator" : "519:3-519:124",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "797",
                  "locator" : "519:3-519:105",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "796",
                     "locator" : "519:3-519:99",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "794",
                        "locator" : "519:3-519:15",
                        "name" : "eventResource",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "795",
                        "locator" : "519:27-519:98",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "798",
                  "locator" : "519:110-519:124",
                  "name" : "{http://hl7.org/fhir}CodeableConcept",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "eventResource",
               "operandTypeSpecifier" : {
                  "localId" : "793",
                  "locator" : "518:52-518:65",
                  "name" : "{http://hl7.org/fhir}DomainResource",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "808",
            "locator" : "527:1-528:114",
            "name" : "notDoneValueSet",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [notDoneValueSet](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet)\nextension defined in QICore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a canonical"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet"
               } ],
               "s" : {
                  "r" : "808",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [notDoneValueSet](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet)\nextension defined in QICore.\n@comment: This function returns the value of the extension as a canonical\n@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet\n*/\n","define fluent function ","notDoneValueSet","(","concept"," " ]
                  }, {
                     "r" : "801",
                     "s" : [ {
                        "value" : [ "CodeableConcept" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "807",
                     "s" : [ {
                        "r" : "807",
                        "s" : [ {
                           "r" : "805",
                           "s" : [ {
                              "r" : "804",
                              "s" : [ {
                                 "r" : "802",
                                 "s" : [ {
                                    "value" : [ "concept" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "804",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "803",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "805",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "806",
                           "s" : [ {
                              "value" : [ "canonical" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "807",
               "locator" : "528:3-528:114",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "805",
                  "locator" : "528:3-528:101",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "804",
                     "locator" : "528:3-528:95",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "802",
                        "locator" : "528:3-528:9",
                        "name" : "concept",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "803",
                        "locator" : "528:21-528:94",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "806",
                  "locator" : "528:106-528:114",
                  "name" : "{http://hl7.org/fhir}canonical",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "concept",
               "operandTypeSpecifier" : {
                  "localId" : "801",
                  "locator" : "527:48-527:62",
                  "name" : "{http://hl7.org/fhir}CodeableConcept",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         }, {
            "localId" : "816",
            "locator" : "536:1-537:142",
            "name" : "presentOnAdmission",
            "context" : "Patient",
            "accessLevel" : "Public",
            "fluent" : true,
            "type" : "FunctionDef",
            "annotation" : [ {
               "type" : "Annotation",
               "t" : [ {
                  "name" : "description",
                  "value" : "Surfaces the [presentOnAdmission](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission)\nextension defined in QICore."
               }, {
                  "name" : "comment",
                  "value" : "This function returns the value of the extension as a CodeableConcept"
               }, {
                  "name" : "extension",
                  "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission"
               } ],
               "s" : {
                  "r" : "816",
                  "s" : [ {
                     "value" : [ "/*\n@description: Surfaces the [presentOnAdmission](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission)\nextension defined in QICore.\n@comment: This function returns the value of the extension as a CodeableConcept\n@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission\n*/\n","define fluent function ","presentOnAdmission","(","element"," " ]
                  }, {
                     "r" : "809",
                     "s" : [ {
                        "value" : [ "Element" ]
                     } ]
                  }, {
                     "value" : [ "):\n  " ]
                  }, {
                     "r" : "815",
                     "s" : [ {
                        "r" : "815",
                        "s" : [ {
                           "r" : "813",
                           "s" : [ {
                              "r" : "812",
                              "s" : [ {
                                 "r" : "810",
                                 "s" : [ {
                                    "value" : [ "element" ]
                                 } ]
                              }, {
                                 "value" : [ "." ]
                              }, {
                                 "r" : "812",
                                 "s" : [ {
                                    "value" : [ "extension","(" ]
                                 }, {
                                    "r" : "811",
                                    "s" : [ {
                                       "value" : [ "'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission'" ]
                                    } ]
                                 }, {
                                    "value" : [ ")" ]
                                 } ]
                              } ]
                           }, {
                              "value" : [ "." ]
                           }, {
                              "r" : "813",
                              "s" : [ {
                                 "value" : [ "value" ]
                              } ]
                           } ]
                        }, {
                           "value" : [ " as " ]
                        }, {
                           "r" : "814",
                           "s" : [ {
                              "value" : [ "CodeableConcept" ]
                           } ]
                        } ]
                     } ]
                  } ]
               }
            } ],
            "expression" : {
               "localId" : "815",
               "locator" : "537:3-537:142",
               "strict" : false,
               "type" : "As",
               "operand" : {
                  "localId" : "813",
                  "locator" : "537:3-537:123",
                  "path" : "value",
                  "type" : "Property",
                  "source" : {
                     "localId" : "812",
                     "locator" : "537:3-537:117",
                     "name" : "extension",
                     "type" : "FunctionRef",
                     "operand" : [ {
                        "localId" : "810",
                        "locator" : "537:3-537:9",
                        "name" : "element",
                        "type" : "OperandRef"
                     }, {
                        "localId" : "811",
                        "locator" : "537:21-537:116",
                        "valueType" : "{urn:hl7-org:elm-types:r1}String",
                        "value" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission",
                        "type" : "Literal"
                     } ]
                  }
               },
               "asTypeSpecifier" : {
                  "localId" : "814",
                  "locator" : "537:128-537:142",
                  "name" : "{http://hl7.org/fhir}CodeableConcept",
                  "type" : "NamedTypeSpecifier"
               }
            },
            "operand" : [ {
               "name" : "element",
               "operandTypeSpecifier" : {
                  "localId" : "809",
                  "locator" : "536:51-536:57",
                  "name" : "{http://hl7.org/fhir}Element",
                  "type" : "NamedTypeSpecifier"
               }
            } ]
         } ]
      }
   }
}