{
  "_id": "609d998db78902cd9466f534",
  "calculate_sdes": null,
  "calculation_method": "PATIENT",
  "cms_id": "CMSv0",
  "component": false,
  "component_hqmf_set_ids": [],
  "composite": false,
  "composite_hqmf_set_id": null,
  "cql_libraries": [
    {
      "_id": "609d998eb78902cd9466f535",
      "cql": "library CMS108 version '0.1.005'\r\n\r\nusing QDM version '5.6'\r\n\r\ninclude MATGlobalCommonFunctionsNEW version '7.0.000' called Global\r\ninclude TEST_VTEICU56 version '0.2.000' called VTEICU\r\n\r\ncodesystem \"LOINC\": 'urn:oid:2.16.840.1.113883.6.1'\r\n\r\nvalueset \"Atrial Fibrillation/Flutter\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.202'\r\nvalueset \"Direct Thrombin Inhibitor\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.205'\r\nvalueset \"Ethnicity\": 'urn:oid:2.16.840.1.114222.4.11.837'\r\nvalueset \"General or Neuraxial Anesthesia\": 'urn:oid:2.16.840.1.113883.3.666.5.1743'\r\nvalueset \"Glycoprotein IIb/IIIa Inhibitors\": 'urn:oid:2.16.840.1.113762.1.4.1045.41'\r\nvalueset \"Graduated compression stockings (GCS)\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.256'\r\nvalueset \"Hip Replacement Surgery\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.259'\r\nvalueset \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.211'\r\nvalueset \"INR\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.213'\r\nvalueset \"Intermittent pneumatic compression devices (IPC)\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.214'\r\nvalueset \"Intravenous route\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.222'\r\nvalueset \"Knee Replacement Surgery\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.261'\r\nvalueset \"Low Dose Unfractionated Heparin for VTE Prophylaxis\": 'urn:oid:2.16.840.1.113762.1.4.1045.39'\r\nvalueset \"Low Molecular Weight Heparin for VTE Prophylaxis\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.219'\r\nvalueset \"Low Risk\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.400'\r\nvalueset \"Medical Reason\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.473'\r\nvalueset \"Obstetrics\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.263'\r\nvalueset \"Obstetrics VTE\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.264'\r\nvalueset \"ONC Administrative Sex\": 'urn:oid:2.16.840.1.113762.1.4.1'\r\nvalueset \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.134'\r\nvalueset \"Patient Refusal\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.93'\r\nvalueset \"Payer\": 'urn:oid:2.16.840.1.114222.4.11.3591'\r\nvalueset \"Race\": 'urn:oid:2.16.840.1.114222.4.11.836'\r\nvalueset \"Rivaroxaban and Betrixaban for VTE Prophylaxis\": 'urn:oid:2.16.840.1.113762.1.4.1110.50'\r\nvalueset \"Subcutaneous route\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.223'\r\nvalueset \"Unfractionated Heparin\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.218'\r\nvalueset \"Venous foot pumps (VFP)\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.230'\r\nvalueset \"Venous Thromboembolism\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.279'\r\nvalueset \"Warfarin\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.232'\r\n\r\ncode \"Birth date\": '21112-8' from \"LOINC\" display 'Birth date'\r\ncode \"Risk for venous thromboembolism\": '72136-5' from \"LOINC\" display 'Risk for venous thromboembolism'\r\n\r\ncontext Patient\r\n\r\ndefine \"Admission Without VTE or Obstetrical Conditions\":\r\n  Global.\"Inpatient Encounter\" InpatientEncounter\r\n    where not ( exists ( InpatientEncounter.diagnoses EncounterDiagnoses\r\n          where ( EncounterDiagnoses.code in \"Obstetrics\"\r\n              or EncounterDiagnoses.code in \"Venous Thromboembolism\"\r\n              or EncounterDiagnoses.code in \"Obstetrics VTE\"\r\n          )\r\n      )\r\n    )\r\n\r\ndefine \"Denominator\":\r\n  \"Initial Population\"\r\n\r\ndefine \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\":\r\n  ( Global.\"Inpatient Encounter\" InpatientEncounter\r\n      with [\"Patient Characteristic Birthdate\": \"Birth date\"] BirthDate\r\n        such that Global.\"CalendarAgeInYearsAt\" ( BirthDate.birthDatetime, start of InpatientEncounter.relevantPeriod ) >= 18\r\n  )\r\n    intersect \"Admission Without VTE or Obstetrical Conditions\"\r\n\r\ndefine \"Encounter With Low Risk for VTE or Anticoagulant Administered\":\r\n  \"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\"\r\n    union \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\"\r\n\r\ndefine \"Encounter With No VTE Prophylaxis Due to Medical Reason\":\r\n  ( \"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\"\r\n      intersect \"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\"\r\n  )\r\n    union ( \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\"\r\n        intersect \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\"\r\n    )\r\n\r\ndefine \"Encounter With No VTE Prophylaxis Due to Patient Refusal\":\r\n  \"No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission\"\r\n    union \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\"\r\n\r\ndefine \"Initial Population\":\r\n  \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\"\r\n\r\ndefine \"No VTE Prophylaxis Device Applied or Ordered\":\r\n  [\"Procedure, Not Performed\": \"Intermittent pneumatic compression devices (IPC)\"]\r\n    union [\"Procedure, Not Performed\": \"Venous foot pumps (VFP)\"]\r\n    union [\"Procedure, Not Performed\": \"Graduated compression stockings (GCS)\"]\r\n    union [\"Device, Not Ordered\": \"Intermittent pneumatic compression devices (IPC)\"]\r\n    union [\"Device, Not Ordered\": \"Venous foot pumps (VFP)\"]\r\n    union [\"Device, Not Ordered\": \"Graduated compression stockings (GCS)\"]\r\n\r\ndefine \"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\":\r\n  \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n    with \"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\r\n      such that NoVTEDevice.negationRationale in \"Medical Reason\"\r\n        and NoVTEDevice.authorDatetime during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\" ( QualifyingEncounter )\r\n\r\ndefine \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\":\r\n  from\r\n    \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n    [\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n    \"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\r\n    where NoVTEDevice.negationRationale in \"Medical Reason\"\r\n      and AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n      and NoVTEDevice.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\" ( \r\n      end of AnesthesiaProcedure.relevantPeriod )\r\n    return QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission\":\r\n  \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n    with \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\" PatientRefusal\r\n      such that PatientRefusal.authorDatetime during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\" ( QualifyingEncounter )\r\n\r\ndefine \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\":\r\n  from\r\n    \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n    [\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n    \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\" PatientRefusal\r\n    where AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n      and PatientRefusal.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\" ( \r\n      end of AnesthesiaProcedure.relevantPeriod )\r\n    return QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\":\r\n  \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n    with \"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\r\n      such that NoVTEMedication.negationRationale in \"Medical Reason\"\r\n        and NoVTEMedication.authorDatetime during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\" ( QualifyingEncounter )\r\n\r\ndefine \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\":\r\n  from\r\n    \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n    [\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n    \"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\r\n    where NoVTEMedication.negationRationale in \"Medical Reason\"\r\n      and AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n      and NoVTEMedication.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\" ( \r\n      end of AnesthesiaProcedure.relevantPeriod )\r\n    return QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\":\r\n  ( \"No VTE Prophylaxis Medication Administered or Ordered\"\r\n    union \"No VTE Prophylaxis Device Applied or Ordered\" ) NoVTEProphylaxis\r\n    where NoVTEProphylaxis.negationRationale in \"Patient Refusal\"\r\n\r\ndefine \"SDE Ethnicity\":\r\n  [\"Patient Characteristic Ethnicity\": \"Ethnicity\"]\r\n\r\ndefine \"SDE Payer\":\r\n  [\"Patient Characteristic Payer\": \"Payer\"]\r\n\r\ndefine \"SDE Race\":\r\n  [\"Patient Characteristic Race\": \"Race\"]\r\n\r\ndefine \"SDE Sex\":\r\n  [\"Patient Characteristic Sex\": \"ONC Administrative Sex\"]\r\n\r\ndefine \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\":\r\n  \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n    with ( [\"Procedure, Performed\": \"Hip Replacement Surgery\"]\r\n      union [\"Procedure, Performed\": \"Knee Replacement Surgery\"] ) HipKneeProcedure\r\n      such that HipKneeProcedure.relevantPeriod starts on or before \r\n      end of QualifyingEncounter.relevantPeriod\r\n\r\ndefine \"Numerator\":\r\n  \"Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure\"\r\n    union ( \"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\"\r\n        intersect ( \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\"\r\n            union \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\"\r\n        )\r\n    )\r\n    union \"Encounter With Low Risk for VTE or Anticoagulant Administered\"\r\n    union \"Encounter With No VTE Prophylaxis Due to Medical Reason\"\r\n    union \"Encounter With No VTE Prophylaxis Due to Patient Refusal\"\r\n\r\ndefine \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\":\r\n  ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n      with [\"Diagnosis\": \"Atrial Fibrillation/Flutter\"] AtrialFibrillation\r\n        such that AtrialFibrillation.prevalencePeriod starts on or before \r\n        end of QualifyingEncounter.relevantPeriod\r\n  )\r\n    union ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n        where exists ( QualifyingEncounter.diagnoses QualifyingEncounterDiagnoses\r\n            where QualifyingEncounterDiagnoses.code in \"Atrial Fibrillation/Flutter\"\r\n        )\r\n    )\r\n    union ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n        with [\"Diagnosis\": \"Venous Thromboembolism\"] VTEDiagnosis\r\n          such that VTEDiagnosis.prevalencePeriod starts before start of QualifyingEncounter.relevantPeriod\r\n    )\r\n\r\ndefine \"VTE Prophylaxis by Medication Administered or Device Applied\":\r\n  ( [\"Medication, Administered\": \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"] VTEMedication\r\n      where VTEMedication.route in \"Subcutaneous route\"\r\n  )\r\n    union [\"Medication, Administered\": \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\r\n    union [\"Medication, Administered\": \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\r\n    union [\"Medication, Administered\": \"Warfarin\"]\r\n    union [\"Medication, Administered\": \"Rivaroxaban and Betrixaban for VTE Prophylaxis\"]\r\n    union [\"Procedure, Performed\": \"Intermittent pneumatic compression devices (IPC)\"]\r\n    union [\"Procedure, Performed\": \"Venous foot pumps (VFP)\"]\r\n    union [\"Procedure, Performed\": \"Graduated compression stockings (GCS)\"]\r\n\r\ndefine \"Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure\":\r\n  ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n      with \"VTE Prophylaxis by Medication Administered or Device Applied\" VTEProphylaxis\r\n        such that VTEProphylaxis.relevantPeriod starts during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\" ( QualifyingEncounter )\r\n  )\r\n    union ( from\r\n        \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n        [\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n        \"VTE Prophylaxis by Medication Administered or Device Applied\" VTEProphylaxis\r\n        where AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n          and VTEProphylaxis.relevantPeriod starts during VTEICU.\"CalendarDayOfOrDayAfter\" ( \r\n          end of AnesthesiaProcedure.relevantPeriod )\r\n        return QualifyingEncounter\r\n    )\r\n\r\ndefine \"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\":\r\n  ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n      with [\"Medication, Administered\": \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"] FactorXaMedication\r\n        such that FactorXaMedication.relevantPeriod starts during VTEICU.\"CalendarDayOfOrDayAfter\" ( start of QualifyingEncounter.relevantPeriod )\r\n  )\r\n    union ( from\r\n        \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n        [\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n        [\"Medication, Administered\": \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"] FactorXaMedication\r\n        where AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n          and FactorXaMedication.relevantPeriod starts during VTEICU.\"CalendarDayOfOrDayAfter\" ( \r\n          end of AnesthesiaProcedure.relevantPeriod )\r\n        return QualifyingEncounter\r\n    )\r\n\r\ndefine \"Low Risk Indicator For VTE\":\n  /*The variable \"LowRiskDatetime\" is to hold VTE Risk Assessment relevant dateTime, INR Laboratory Test result dateTime, and Anticoagulant Medication administration start dateTime.*/\r\n  ( [\"Assessment, Performed\": \"Risk for venous thromboembolism\"] VTERiskAssessment\r\n      where VTERiskAssessment.result in \"Low Risk\"\r\n      return {\r\n        id: VTERiskAssessment.id,\r\n        LowRiskDatetime: VTERiskAssessment.relevantDatetime\r\n      }\r\n  )\r\n    union ( [\"Laboratory Test, Performed\": \"INR\"] INRLabTest\r\n        where INRLabTest.result > 3.0\r\n        return {\r\n          id: INRLabTest.id,\r\n          LowRiskDatetime: INRLabTest.resultDatetime\r\n        }\r\n    )\r\n    union ( ( ( [\"Medication, Administered\": \"Unfractionated Heparin\"] UnfractionatedHeparin\r\n          where UnfractionatedHeparin.route in \"Intravenous route\"\r\n      )\r\n        union [\"Medication, Administered\": \"Direct Thrombin Inhibitor\"]\r\n        union [\"Medication, Administered\": \"Glycoprotein IIb/IIIa Inhibitors\"] ) AnticoagulantMedication\r\n        return {\r\n          id: AnticoagulantMedication.id,\r\n          LowRiskDatetime: start of AnticoagulantMedication.relevantPeriod\r\n        }\r\n    )\r\n\r\ndefine \"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\":\r\n  \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n    with \"Low Risk Indicator For VTE\" LowRiskForVTE\r\n      such that LowRiskForVTE.LowRiskDatetime during VTEICU.\"FromDayOfStartOfHospitalizationToDayAfterAdmission\" ( QualifyingEncounter )\r\n\r\ndefine \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\":\r\n  from\r\n    \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n    [\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n    \"Low Risk Indicator For VTE\" LowRiskForVTE\r\n    where AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n      and LowRiskForVTE.LowRiskDatetime during VTEICU.\"CalendarDayOfOrDayAfter\" ( \r\n      end of AnesthesiaProcedure.relevantPeriod )\r\n    return QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Medication Administered or Ordered\":\r\n  [\"Medication, Not Administered\": \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"]\r\n    union [\"Medication, Not Administered\": \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\r\n    union [\"Medication, Not Administered\": \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\r\n    union [\"Medication, Not Administered\": \"Warfarin\"]\r\n    union [\"Medication, Not Administered\": \"Rivaroxaban and Betrixaban for VTE Prophylaxis\"]\r\n    union [\"Medication, Not Ordered\": \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"]\r\n    union [\"Medication, Not Ordered\": \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\r\n    union [\"Medication, Not Ordered\": \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\r\n    union [\"Medication, Not Ordered\": \"Warfarin\"]\r\n    union [\"Medication, Not Ordered\": \"Rivaroxaban and Betrixaban for VTE Prophylaxis\"]",
      "elm": {
        "library": {
          "annotation": [
            {
              "translatorOptions": "EnableAnnotations,EnableLocators,DisableListDemotion,DisableListPromotion,DisableMethodInvocation",
              "type": "CqlToElmInfo"
            },
            {
              "type": "Annotation",
              "s": {
                "r": "196",
                "s": [
                  {
                    "value": [
                      "",
                      "library CMS108 version '0.1.005'"
                    ]
                  }
                ]
              }
            }
          ],
          "identifier": {
            "id": "CMS108",
            "version": "0.1.005"
          },
          "schemaIdentifier": {
            "id": "urn:hl7-org:elm",
            "version": "r1"
          },
          "usings": {
            "def": [
              {
                "localIdentifier": "System",
                "uri": "urn:hl7-org:elm-types:r1"
              },
              {
                "localId": "1",
                "locator": "3:1-3:23",
                "localIdentifier": "QDM",
                "uri": "urn:healthit-gov:qdm:v5_6",
                "version": "5.6",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "1",
                      "s": [
                        {
                          "value": [
                            "",
                            "using "
                          ]
                        },
                        {
                          "s": [
                            {
                              "value": [
                                "QDM"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " version ",
                            "'5.6'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          },
          "includes": {
            "def": [
              {
                "localId": "2",
                "locator": "5:1-5:67",
                "localIdentifier": "Global",
                "path": "MATGlobalCommonFunctionsNEW",
                "version": "7.0.000",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "2",
                      "s": [
                        {
                          "value": [
                            "",
                            "include "
                          ]
                        },
                        {
                          "s": [
                            {
                              "value": [
                                "MATGlobalCommonFunctionsNEW"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " version ",
                            "'7.0.000'",
                            " called ",
                            "Global"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "3",
                "locator": "6:1-6:53",
                "localIdentifier": "VTEICU",
                "path": "TEST_VTEICU56",
                "version": "0.2.000",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "3",
                      "s": [
                        {
                          "value": [
                            "",
                            "include "
                          ]
                        },
                        {
                          "s": [
                            {
                              "value": [
                                "TEST_VTEICU56"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " version ",
                            "'0.2.000'",
                            " called ",
                            "VTEICU"
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          },
          "codeSystems": {
            "def": [
              {
                "localId": "4",
                "locator": "8:1-8:51",
                "name": "LOINC",
                "id": "2.16.840.1.113883.6.1",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "4",
                      "s": [
                        {
                          "value": [
                            "",
                            "codesystem ",
                            "\"LOINC\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.6.1'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "5",
                "locator": "10:1-10:83",
                "name": "Atrial Fibrillation/Flutter",
                "id": "2.16.840.1.113883.3.117.1.7.1.202",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "5",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Atrial Fibrillation/Flutter\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.202'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "6",
                "locator": "11:1-11:81",
                "name": "Direct Thrombin Inhibitor",
                "id": "2.16.840.1.113883.3.117.1.7.1.205",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "6",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Direct Thrombin Inhibitor\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.205'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "7",
                "locator": "12:1-12:58",
                "name": "Ethnicity",
                "id": "2.16.840.1.114222.4.11.837",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "7",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Ethnicity\"",
                            ": ",
                            "'urn:oid:2.16.840.1.114222.4.11.837'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "8",
                "locator": "13:1-13:84",
                "name": "General or Neuraxial Anesthesia",
                "id": "2.16.840.1.113883.3.666.5.1743",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "8",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"General or Neuraxial Anesthesia\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.666.5.1743'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "9",
                "locator": "14:1-14:84",
                "name": "Glycoprotein IIb/IIIa Inhibitors",
                "id": "2.16.840.1.113762.1.4.1045.41",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "9",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Glycoprotein IIb/IIIa Inhibitors\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113762.1.4.1045.41'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "10",
                "locator": "15:1-15:93",
                "name": "Graduated compression stockings (GCS)",
                "id": "2.16.840.1.113883.3.117.1.7.1.256",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "10",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Graduated compression stockings (GCS)\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.256'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "11",
                "locator": "16:1-16:79",
                "name": "Hip Replacement Surgery",
                "id": "2.16.840.1.113883.3.117.1.7.1.259",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "11",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Hip Replacement Surgery\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.259'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "12",
                "locator": "17:1-17:106",
                "name": "Injectable Factor Xa Inhibitor for VTE Prophylaxis",
                "id": "2.16.840.1.113883.3.117.1.7.1.211",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "12",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.211'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "13",
                "locator": "18:1-18:59",
                "name": "INR",
                "id": "2.16.840.1.113883.3.117.1.7.1.213",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "13",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"INR\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.213'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "14",
                "locator": "19:1-19:104",
                "name": "Intermittent pneumatic compression devices (IPC)",
                "id": "2.16.840.1.113883.3.117.1.7.1.214",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "14",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Intermittent pneumatic compression devices (IPC)\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.214'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "15",
                "locator": "20:1-20:73",
                "name": "Intravenous route",
                "id": "2.16.840.1.113883.3.117.1.7.1.222",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "15",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Intravenous route\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.222'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "16",
                "locator": "21:1-21:80",
                "name": "Knee Replacement Surgery",
                "id": "2.16.840.1.113883.3.117.1.7.1.261",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "16",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Knee Replacement Surgery\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.261'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "17",
                "locator": "22:1-22:103",
                "name": "Low Dose Unfractionated Heparin for VTE Prophylaxis",
                "id": "2.16.840.1.113762.1.4.1045.39",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "17",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Low Dose Unfractionated Heparin for VTE Prophylaxis\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113762.1.4.1045.39'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "18",
                "locator": "23:1-23:104",
                "name": "Low Molecular Weight Heparin for VTE Prophylaxis",
                "id": "2.16.840.1.113883.3.117.1.7.1.219",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "18",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Low Molecular Weight Heparin for VTE Prophylaxis\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.219'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "19",
                "locator": "24:1-24:64",
                "name": "Low Risk",
                "id": "2.16.840.1.113883.3.117.1.7.1.400",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "19",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Low Risk\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.400'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "20",
                "locator": "25:1-25:70",
                "name": "Medical Reason",
                "id": "2.16.840.1.113883.3.117.1.7.1.473",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "20",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Medical Reason\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.473'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "21",
                "locator": "26:1-26:66",
                "name": "Obstetrics",
                "id": "2.16.840.1.113883.3.117.1.7.1.263",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "21",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Obstetrics\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.263'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "22",
                "locator": "27:1-27:70",
                "name": "Obstetrics VTE",
                "id": "2.16.840.1.113883.3.117.1.7.1.264",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "22",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Obstetrics VTE\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.264'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "23",
                "locator": "28:1-28:68",
                "name": "ONC Administrative Sex",
                "id": "2.16.840.1.113762.1.4.1",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "23",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"ONC Administrative Sex\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113762.1.4.1'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "24",
                "locator": "29:1-29:117",
                "name": "Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment",
                "id": "2.16.840.1.113883.3.117.1.7.1.134",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "24",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.134'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "25",
                "locator": "30:1-30:70",
                "name": "Patient Refusal",
                "id": "2.16.840.1.113883.3.117.1.7.1.93",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "25",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Patient Refusal\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.93'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "26",
                "locator": "31:1-31:55",
                "name": "Payer",
                "id": "2.16.840.1.114222.4.11.3591",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "26",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Payer\"",
                            ": ",
                            "'urn:oid:2.16.840.1.114222.4.11.3591'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "27",
                "locator": "32:1-32:53",
                "name": "Race",
                "id": "2.16.840.1.114222.4.11.836",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "27",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Race\"",
                            ": ",
                            "'urn:oid:2.16.840.1.114222.4.11.836'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "28",
                "locator": "33:1-33:98",
                "name": "Rivaroxaban and Betrixaban for VTE Prophylaxis",
                "id": "2.16.840.1.113762.1.4.1110.50",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "28",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Rivaroxaban and Betrixaban for VTE Prophylaxis\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113762.1.4.1110.50'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "29",
                "locator": "34:1-34:74",
                "name": "Subcutaneous route",
                "id": "2.16.840.1.113883.3.117.1.7.1.223",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "29",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Subcutaneous route\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.223'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "30",
                "locator": "35:1-35:78",
                "name": "Unfractionated Heparin",
                "id": "2.16.840.1.113883.3.117.1.7.1.218",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "30",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Unfractionated Heparin\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.218'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "31",
                "locator": "36:1-36:79",
                "name": "Venous foot pumps (VFP)",
                "id": "2.16.840.1.113883.3.117.1.7.1.230",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "31",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Venous foot pumps (VFP)\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.230'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "32",
                "locator": "37:1-37:78",
                "name": "Venous Thromboembolism",
                "id": "2.16.840.1.113883.3.117.1.7.1.279",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "32",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Venous Thromboembolism\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.279'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "33",
                "locator": "38:1-38:64",
                "name": "Warfarin",
                "id": "2.16.840.1.113883.3.117.1.7.1.232",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "33",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Warfarin\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.232'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          },
          "codes": {
            "def": [
              {
                "localId": "35",
                "locator": "40:1-40:62",
                "name": "Birth date",
                "id": "21112-8",
                "display": "Birth date",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "35",
                      "s": [
                        {
                          "value": [
                            "",
                            "code ",
                            "\"Birth date\"",
                            ": ",
                            "'21112-8'",
                            " from "
                          ]
                        },
                        {
                          "r": "34",
                          "s": [
                            {
                              "value": [
                                "\"LOINC\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " display ",
                            "'Birth date'"
                          ]
                        }
                      ]
                    }
                  }
                ],
                "codeSystem": {
                  "localId": "34",
                  "locator": "40:35-40:41",
                  "name": "LOINC"
                }
              },
              {
                "localId": "37",
                "locator": "41:1-41:104",
                "name": "Risk for venous thromboembolism",
                "id": "72136-5",
                "display": "Risk for venous thromboembolism",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "37",
                      "s": [
                        {
                          "value": [
                            "",
                            "code ",
                            "\"Risk for venous thromboembolism\"",
                            ": ",
                            "'72136-5'",
                            " from "
                          ]
                        },
                        {
                          "r": "36",
                          "s": [
                            {
                              "value": [
                                "\"LOINC\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " display ",
                            "'Risk for venous thromboembolism'"
                          ]
                        }
                      ]
                    }
                  }
                ],
                "codeSystem": {
                  "localId": "36",
                  "locator": "41:56-41:62",
                  "name": "LOINC"
                }
              }
            ]
          },
          "contexts": {
            "def": [
              {
                "locator": "43:1-43:15",
                "name": "Patient"
              }
            ]
          },
          "statements": {
            "def": [
              {
                "locator": "43:1-43:15",
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "locator": "43:1-43:15",
                    "dataType": "{urn:healthit-gov:qdm:v5_6}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "60",
                "locator": "45:1-53:5",
                "name": "Admission Without VTE or Obstetrical Conditions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "60",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Admission Without VTE or Obstetrical Conditions\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "59",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "39",
                                  "s": [
                                    {
                                      "r": "38",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "Global",
                                                ".",
                                                "\"Inpatient Encounter\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "InpatientEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "58",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "58",
                                  "s": [
                                    {
                                      "value": [
                                        "not "
                                      ]
                                    },
                                    {
                                      "r": "57",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "57",
                                          "s": [
                                            {
                                              "value": [
                                                "exists "
                                              ]
                                            },
                                            {
                                              "r": "56",
                                              "s": [
                                                {
                                                  "value": [
                                                    "( "
                                                  ]
                                                },
                                                {
                                                  "r": "56",
                                                  "s": [
                                                    {
                                                      "s": [
                                                        {
                                                          "r": "41",
                                                          "s": [
                                                            {
                                                              "r": "40",
                                                              "s": [
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "InpatientEncounter",
                                                                        ".",
                                                                        "diagnoses"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " ",
                                                                "EncounterDiagnoses"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n          "
                                                      ]
                                                    },
                                                    {
                                                      "r": "55",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "where "
                                                          ]
                                                        },
                                                        {
                                                          "r": "55",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "( "
                                                              ]
                                                            },
                                                            {
                                                              "r": "55",
                                                              "s": [
                                                                {
                                                                  "r": "50",
                                                                  "s": [
                                                                    {
                                                                      "r": "45",
                                                                      "s": [
                                                                        {
                                                                          "r": "43",
                                                                          "s": [
                                                                            {
                                                                              "r": "42",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "EncounterDiagnoses"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                "."
                                                                              ]
                                                                            },
                                                                            {
                                                                              "r": "43",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "code"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            " in "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "44",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "\"Obstetrics\""
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "\n              or "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "49",
                                                                      "s": [
                                                                        {
                                                                          "r": "47",
                                                                          "s": [
                                                                            {
                                                                              "r": "46",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "EncounterDiagnoses"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                "."
                                                                              ]
                                                                            },
                                                                            {
                                                                              "r": "47",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "code"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            " in "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "48",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "\"Venous Thromboembolism\""
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "\n              or "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "54",
                                                                  "s": [
                                                                    {
                                                                      "r": "52",
                                                                      "s": [
                                                                        {
                                                                          "r": "51",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "EncounterDiagnoses"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "."
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "52",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "code"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " in "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "53",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "\"Obstetrics VTE\""
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\n          )"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n      )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n    )"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "59",
                  "locator": "46:3-53:5",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "39",
                      "locator": "46:3-46:49",
                      "alias": "InpatientEncounter",
                      "expression": {
                        "localId": "38",
                        "locator": "46:3-46:30",
                        "name": "Inpatient Encounter",
                        "libraryName": "Global",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [],
                  "where": {
                    "localId": "58",
                    "locator": "47:5-53:5",
                    "type": "Not",
                    "operand": {
                      "localId": "57",
                      "locator": "47:15-53:5",
                      "type": "Exists",
                      "operand": {
                        "localId": "56",
                        "locator": "47:24-52:7",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "41",
                            "locator": "47:26-47:72",
                            "alias": "EncounterDiagnoses",
                            "expression": {
                              "localId": "40",
                              "locator": "47:26-47:53",
                              "path": "diagnoses",
                              "scope": "InpatientEncounter",
                              "type": "Property"
                            }
                          }
                        ],
                        "relationship": [],
                        "where": {
                          "localId": "55",
                          "locator": "48:11-51:11",
                          "type": "Or",
                          "operand": [
                            {
                              "localId": "50",
                              "locator": "48:19-49:68",
                              "type": "Or",
                              "operand": [
                                {
                                  "localId": "45",
                                  "locator": "48:19-48:57",
                                  "type": "InValueSet",
                                  "code": {
                                    "localId": "43",
                                    "locator": "48:19-48:41",
                                    "path": "code",
                                    "scope": "EncounterDiagnoses",
                                    "type": "Property"
                                  },
                                  "valueset": {
                                    "localId": "44",
                                    "locator": "48:46-48:57",
                                    "name": "Obstetrics",
                                    "type": "ValueSetRef"
                                  }
                                },
                                {
                                  "localId": "49",
                                  "locator": "49:18-49:68",
                                  "type": "InValueSet",
                                  "code": {
                                    "localId": "47",
                                    "locator": "49:18-49:40",
                                    "path": "code",
                                    "scope": "EncounterDiagnoses",
                                    "type": "Property"
                                  },
                                  "valueset": {
                                    "localId": "48",
                                    "locator": "49:45-49:68",
                                    "name": "Venous Thromboembolism",
                                    "type": "ValueSetRef"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "54",
                              "locator": "50:18-50:60",
                              "type": "InValueSet",
                              "code": {
                                "localId": "52",
                                "locator": "50:18-50:40",
                                "path": "code",
                                "scope": "EncounterDiagnoses",
                                "type": "Property"
                              },
                              "valueset": {
                                "localId": "53",
                                "locator": "50:45-50:60",
                                "name": "Obstetrics VTE",
                                "type": "ValueSetRef"
                              }
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              },
              {
                "localId": "78",
                "locator": "58:1-63:63",
                "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "78",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "77",
                          "s": [
                            {
                              "r": "75",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "75",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "62",
                                          "s": [
                                            {
                                              "r": "61",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Global",
                                                        ".",
                                                        "\"Inpatient Encounter\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "InpatientEncounter"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      "
                                      ]
                                    },
                                    {
                                      "r": "74",
                                      "s": [
                                        {
                                          "value": [
                                            "with "
                                          ]
                                        },
                                        {
                                          "r": "64",
                                          "s": [
                                            {
                                              "r": "63",
                                              "s": [
                                                {
                                                  "r": "63",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Patient Characteristic Birthdate\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Birth date\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "BirthDate"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n        such that "
                                          ]
                                        },
                                        {
                                          "r": "73",
                                          "s": [
                                            {
                                              "r": "71",
                                              "s": [
                                                {
                                                  "r": "65",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Global"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "71",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"CalendarAgeInYearsAt\"",
                                                        " ( "
                                                      ]
                                                    },
                                                    {
                                                      "r": "67",
                                                      "s": [
                                                        {
                                                          "r": "66",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "BirthDate"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "67",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "birthDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        ", "
                                                      ]
                                                    },
                                                    {
                                                      "r": "70",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "69",
                                                          "s": [
                                                            {
                                                              "r": "68",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "InpatientEncounter"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "69",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " )"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "r": "72",
                                              "value": [
                                                " ",
                                                ">=",
                                                " ",
                                                "18"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  )"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    intersect "
                              ]
                            },
                            {
                              "r": "76",
                              "s": [
                                {
                                  "value": [
                                    "\"Admission Without VTE or Obstetrical Conditions\""
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "77",
                  "locator": "59:3-63:63",
                  "type": "Intersect",
                  "operand": [
                    {
                      "localId": "75",
                      "locator": "59:3-62:3",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "62",
                          "locator": "59:5-59:51",
                          "alias": "InpatientEncounter",
                          "expression": {
                            "localId": "61",
                            "locator": "59:5-59:32",
                            "name": "Inpatient Encounter",
                            "libraryName": "Global",
                            "type": "ExpressionRef"
                          }
                        }
                      ],
                      "relationship": [
                        {
                          "localId": "74",
                          "locator": "60:7-61:125",
                          "alias": "BirthDate",
                          "type": "With",
                          "expression": {
                            "localId": "63",
                            "locator": "60:12-60:61",
                            "dataType": "{urn:healthit-gov:qdm:v5_6}PatientCharacteristicBirthdate",
                            "codeProperty": "code",
                            "codeComparator": "~",
                            "type": "Retrieve",
                            "codes": {
                              "type": "ToList",
                              "operand": {
                                "locator": "60:49-60:60",
                                "name": "Birth date",
                                "type": "CodeRef"
                              }
                            }
                          },
                          "suchThat": {
                            "localId": "73",
                            "locator": "61:19-61:125",
                            "type": "GreaterOrEqual",
                            "operand": [
                              {
                                "localId": "71",
                                "locator": "61:19-61:119",
                                "name": "CalendarAgeInYearsAt",
                                "libraryName": "Global",
                                "type": "FunctionRef",
                                "operand": [
                                  {
                                    "localId": "67",
                                    "locator": "61:51-61:73",
                                    "path": "birthDatetime",
                                    "scope": "BirthDate",
                                    "type": "Property"
                                  },
                                  {
                                    "localId": "70",
                                    "locator": "61:76-61:117",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "69",
                                      "locator": "61:85-61:117",
                                      "path": "relevantPeriod",
                                      "scope": "InpatientEncounter",
                                      "type": "Property"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "72",
                                "locator": "61:124-61:125",
                                "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                "value": "18",
                                "type": "Literal"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    {
                      "localId": "76",
                      "locator": "63:15-63:63",
                      "name": "Admission Without VTE or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              },
              {
                "localId": "80",
                "locator": "81:1-82:80",
                "name": "Initial Population",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "80",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Initial Population\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "79",
                          "s": [
                            {
                              "value": [
                                "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "79",
                  "locator": "82:3-82:80",
                  "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "82",
                "locator": "55:1-56:22",
                "name": "Denominator",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "82",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Denominator\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "81",
                          "s": [
                            {
                              "value": [
                                "\"Initial Population\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "81",
                  "locator": "56:3-56:22",
                  "name": "Initial Population",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "133",
                "locator": "234:1-259:5",
                "name": "Low Risk Indicator For VTE",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "133",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Low Risk Indicator For VTE\"",
                            ":\n  /*The variable \"LowRiskDatetime\" is to hold VTE Risk Assessment relevant dateTime, INR Laboratory Test result dateTime, and Anticoagulant Medication administration start dateTime.*/\n  "
                          ]
                        },
                        {
                          "r": "132",
                          "s": [
                            {
                              "r": "111",
                              "s": [
                                {
                                  "r": "97",
                                  "s": [
                                    {
                                      "value": [
                                        "( "
                                      ]
                                    },
                                    {
                                      "r": "97",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "r": "86",
                                              "s": [
                                                {
                                                  "r": "85",
                                                  "s": [
                                                    {
                                                      "r": "85",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "[",
                                                            "\"Assessment, Performed\"",
                                                            ": "
                                                          ]
                                                        },
                                                        {
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Risk for venous thromboembolism\""
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "]"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "VTERiskAssessment"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n      "
                                          ]
                                        },
                                        {
                                          "r": "90",
                                          "s": [
                                            {
                                              "value": [
                                                "where "
                                              ]
                                            },
                                            {
                                              "r": "90",
                                              "s": [
                                                {
                                                  "r": "88",
                                                  "s": [
                                                    {
                                                      "r": "87",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "VTERiskAssessment"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "88",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "result"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " in "
                                                  ]
                                                },
                                                {
                                                  "r": "89",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Low Risk\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n      "
                                          ]
                                        },
                                        {
                                          "r": "96",
                                          "s": [
                                            {
                                              "value": [
                                                "return "
                                              ]
                                            },
                                            {
                                              "r": "95",
                                              "s": [
                                                {
                                                  "value": [
                                                    "{\n        "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "id",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "r": "92",
                                                      "s": [
                                                        {
                                                          "r": "91",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "VTERiskAssessment"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "92",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "id"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ",\n        "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "LowRiskDatetime",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "r": "94",
                                                      "s": [
                                                        {
                                                          "r": "93",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "VTERiskAssessment"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "94",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "relevantDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n      }"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n  )"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    union "
                                  ]
                                },
                                {
                                  "r": "110",
                                  "s": [
                                    {
                                      "value": [
                                        "( "
                                      ]
                                    },
                                    {
                                      "r": "110",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "r": "99",
                                              "s": [
                                                {
                                                  "r": "98",
                                                  "s": [
                                                    {
                                                      "r": "98",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "[",
                                                            "\"Laboratory Test, Performed\"",
                                                            ": "
                                                          ]
                                                        },
                                                        {
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"INR\""
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "]"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "INRLabTest"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n        "
                                          ]
                                        },
                                        {
                                          "r": "103",
                                          "s": [
                                            {
                                              "value": [
                                                "where "
                                              ]
                                            },
                                            {
                                              "r": "103",
                                              "s": [
                                                {
                                                  "r": "101",
                                                  "s": [
                                                    {
                                                      "r": "100",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "INRLabTest"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "101",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "result"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "r": "102",
                                                  "value": [
                                                    " ",
                                                    ">",
                                                    " ",
                                                    "3.0"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n        "
                                          ]
                                        },
                                        {
                                          "r": "109",
                                          "s": [
                                            {
                                              "value": [
                                                "return "
                                              ]
                                            },
                                            {
                                              "r": "108",
                                              "s": [
                                                {
                                                  "value": [
                                                    "{\n          "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "id",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "r": "105",
                                                      "s": [
                                                        {
                                                          "r": "104",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "INRLabTest"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "105",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "id"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ",\n          "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "LowRiskDatetime",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "r": "107",
                                                      "s": [
                                                        {
                                                          "r": "106",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "INRLabTest"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "107",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "resultDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n        }"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n    )"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "131",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "131",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "123",
                                          "s": [
                                            {
                                              "r": "122",
                                              "s": [
                                                {
                                                  "value": [
                                                    "( "
                                                  ]
                                                },
                                                {
                                                  "r": "122",
                                                  "s": [
                                                    {
                                                      "r": "120",
                                                      "s": [
                                                        {
                                                          "r": "118",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "( "
                                                              ]
                                                            },
                                                            {
                                                              "r": "118",
                                                              "s": [
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "r": "113",
                                                                      "s": [
                                                                        {
                                                                          "r": "112",
                                                                          "s": [
                                                                            {
                                                                              "r": "112",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "[",
                                                                                    "\"Medication, Administered\"",
                                                                                    ": "
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "\"Unfractionated Heparin\""
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "value": [
                                                                                    "]"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            " ",
                                                                            "UnfractionatedHeparin"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "\n          "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "117",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "where "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "117",
                                                                      "s": [
                                                                        {
                                                                          "r": "115",
                                                                          "s": [
                                                                            {
                                                                              "r": "114",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "UnfractionatedHeparin"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                "."
                                                                              ]
                                                                            },
                                                                            {
                                                                              "r": "115",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "route"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            " in "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "116",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "\"Intravenous route\""
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\n      )"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n        union "
                                                          ]
                                                        },
                                                        {
                                                          "r": "119",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "[",
                                                                "\"Medication, Administered\"",
                                                                ": "
                                                              ]
                                                            },
                                                            {
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Direct Thrombin Inhibitor\""
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "]"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n        union "
                                                      ]
                                                    },
                                                    {
                                                      "r": "121",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "[",
                                                            "\"Medication, Administered\"",
                                                            ": "
                                                          ]
                                                        },
                                                        {
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Glycoprotein IIb/IIIa Inhibitors\""
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "]"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "AnticoagulantMedication"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n        "
                                      ]
                                    },
                                    {
                                      "r": "130",
                                      "s": [
                                        {
                                          "value": [
                                            "return "
                                          ]
                                        },
                                        {
                                          "r": "129",
                                          "s": [
                                            {
                                              "value": [
                                                "{\n          "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "id",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "r": "125",
                                                  "s": [
                                                    {
                                                      "r": "124",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "AnticoagulantMedication"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "125",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "id"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ",\n          "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "LowRiskDatetime",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "r": "128",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "start of "
                                                      ]
                                                    },
                                                    {
                                                      "r": "127",
                                                      "s": [
                                                        {
                                                          "r": "126",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "AnticoagulantMedication"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "127",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "relevantPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n        }"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    )"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "132",
                  "locator": "236:3-259:5",
                  "type": "Union",
                  "operand": [
                    {
                      "localId": "111",
                      "locator": "236:3-249:5",
                      "type": "Union",
                      "operand": [
                        {
                          "localId": "97",
                          "locator": "236:3-242:3",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "86",
                              "locator": "236:5-236:82",
                              "alias": "VTERiskAssessment",
                              "expression": {
                                "localId": "85",
                                "locator": "236:5-236:64",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveAssessmentPerformed",
                                "templateId": "PositiveAssessmentPerformed",
                                "codeProperty": "code",
                                "codeComparator": "~",
                                "type": "Retrieve",
                                "codes": {
                                  "type": "ToList",
                                  "operand": {
                                    "locator": "236:31-236:63",
                                    "name": "Risk for venous thromboembolism",
                                    "type": "CodeRef"
                                  }
                                }
                              }
                            }
                          ],
                          "relationship": [],
                          "where": {
                            "localId": "90",
                            "locator": "237:7-237:50",
                            "type": "InValueSet",
                            "code": {
                              "asType": "{urn:hl7-org:elm-types:r1}Code",
                              "type": "As",
                              "operand": {
                                "localId": "88",
                                "locator": "237:13-237:36",
                                "path": "result",
                                "scope": "VTERiskAssessment",
                                "type": "Property"
                              }
                            },
                            "valueset": {
                              "localId": "89",
                              "locator": "237:41-237:50",
                              "name": "Low Risk",
                              "type": "ValueSetRef"
                            }
                          },
                          "return": {
                            "localId": "96",
                            "locator": "238:7-241:7",
                            "expression": {
                              "localId": "95",
                              "locator": "238:14-241:7",
                              "type": "Tuple",
                              "element": [
                                {
                                  "name": "id",
                                  "value": {
                                    "localId": "92",
                                    "locator": "239:13-239:32",
                                    "path": "id",
                                    "scope": "VTERiskAssessment",
                                    "type": "Property"
                                  }
                                },
                                {
                                  "name": "LowRiskDatetime",
                                  "value": {
                                    "localId": "94",
                                    "locator": "240:26-240:59",
                                    "path": "relevantDatetime",
                                    "scope": "VTERiskAssessment",
                                    "type": "Property"
                                  }
                                }
                              ]
                            }
                          }
                        },
                        {
                          "localId": "110",
                          "locator": "243:11-249:5",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "99",
                              "locator": "243:13-243:60",
                              "alias": "INRLabTest",
                              "expression": {
                                "localId": "98",
                                "locator": "243:13-243:49",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveLaboratoryTestPerformed",
                                "templateId": "PositiveLaboratoryTestPerformed",
                                "codeProperty": "code",
                                "codeComparator": "in",
                                "type": "Retrieve",
                                "codes": {
                                  "locator": "243:44-243:48",
                                  "name": "INR",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [],
                          "where": {
                            "localId": "103",
                            "locator": "244:9-244:37",
                            "type": "Greater",
                            "operand": [
                              {
                                "asType": "{urn:hl7-org:elm-types:r1}Decimal",
                                "type": "As",
                                "operand": {
                                  "localId": "101",
                                  "locator": "244:15-244:31",
                                  "path": "result",
                                  "scope": "INRLabTest",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "102",
                                "locator": "244:35-244:37",
                                "valueType": "{urn:hl7-org:elm-types:r1}Decimal",
                                "value": "3.0",
                                "type": "Literal"
                              }
                            ]
                          },
                          "return": {
                            "localId": "109",
                            "locator": "245:9-248:9",
                            "expression": {
                              "localId": "108",
                              "locator": "245:16-248:9",
                              "type": "Tuple",
                              "element": [
                                {
                                  "name": "id",
                                  "value": {
                                    "localId": "105",
                                    "locator": "246:15-246:27",
                                    "path": "id",
                                    "scope": "INRLabTest",
                                    "type": "Property"
                                  }
                                },
                                {
                                  "name": "LowRiskDatetime",
                                  "value": {
                                    "localId": "107",
                                    "locator": "247:28-247:52",
                                    "path": "resultDatetime",
                                    "scope": "INRLabTest",
                                    "type": "Property"
                                  }
                                }
                              ]
                            }
                          }
                        }
                      ]
                    },
                    {
                      "localId": "131",
                      "locator": "250:11-259:5",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "123",
                          "locator": "250:13-254:104",
                          "alias": "AnticoagulantMedication",
                          "expression": {
                            "localId": "122",
                            "locator": "250:13-254:80",
                            "type": "Union",
                            "operand": [
                              {
                                "localId": "120",
                                "locator": "250:15-253:71",
                                "type": "Union",
                                "operand": [
                                  {
                                    "localId": "118",
                                    "locator": "250:15-252:7",
                                    "type": "Query",
                                    "source": [
                                      {
                                        "localId": "113",
                                        "locator": "250:17-250:92",
                                        "alias": "UnfractionatedHeparin",
                                        "expression": {
                                          "localId": "112",
                                          "locator": "250:17-250:70",
                                          "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                          "templateId": "PositiveMedicationAdministered",
                                          "codeProperty": "code",
                                          "codeComparator": "in",
                                          "type": "Retrieve",
                                          "codes": {
                                            "locator": "250:46-250:69",
                                            "name": "Unfractionated Heparin",
                                            "type": "ValueSetRef"
                                          }
                                        }
                                      }
                                    ],
                                    "relationship": [],
                                    "where": {
                                      "localId": "117",
                                      "locator": "251:11-251:66",
                                      "type": "InValueSet",
                                      "code": {
                                        "localId": "115",
                                        "locator": "251:17-251:43",
                                        "path": "route",
                                        "scope": "UnfractionatedHeparin",
                                        "type": "Property"
                                      },
                                      "valueset": {
                                        "localId": "116",
                                        "locator": "251:48-251:66",
                                        "name": "Intravenous route",
                                        "type": "ValueSetRef"
                                      }
                                    }
                                  },
                                  {
                                    "localId": "119",
                                    "locator": "253:15-253:71",
                                    "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                    "templateId": "PositiveMedicationAdministered",
                                    "codeProperty": "code",
                                    "codeComparator": "in",
                                    "type": "Retrieve",
                                    "codes": {
                                      "locator": "253:44-253:70",
                                      "name": "Direct Thrombin Inhibitor",
                                      "type": "ValueSetRef"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "121",
                                "locator": "254:15-254:78",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                "templateId": "PositiveMedicationAdministered",
                                "codeProperty": "code",
                                "codeComparator": "in",
                                "type": "Retrieve",
                                "codes": {
                                  "locator": "254:44-254:77",
                                  "name": "Glycoprotein IIb/IIIa Inhibitors",
                                  "type": "ValueSetRef"
                                }
                              }
                            ]
                          }
                        }
                      ],
                      "relationship": [],
                      "return": {
                        "localId": "130",
                        "locator": "255:9-258:9",
                        "expression": {
                          "localId": "129",
                          "locator": "255:16-258:9",
                          "type": "Tuple",
                          "element": [
                            {
                              "name": "id",
                              "value": {
                                "localId": "125",
                                "locator": "256:15-256:40",
                                "path": "id",
                                "scope": "AnticoagulantMedication",
                                "type": "Property"
                              }
                            },
                            {
                              "name": "LowRiskDatetime",
                              "value": {
                                "localId": "128",
                                "locator": "257:28-257:74",
                                "type": "Start",
                                "operand": {
                                  "localId": "127",
                                  "locator": "257:37-257:74",
                                  "path": "relevantPeriod",
                                  "scope": "AnticoagulantMedication",
                                  "type": "Property"
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              },
              {
                "localId": "144",
                "locator": "261:1-264:136",
                "name": "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "144",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "143",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "84",
                                  "s": [
                                    {
                                      "r": "83",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "142",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "135",
                                  "s": [
                                    {
                                      "r": "134",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Low Risk Indicator For VTE\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "LowRiskForVTE"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n      such that "
                                  ]
                                },
                                {
                                  "r": "141",
                                  "s": [
                                    {
                                      "r": "137",
                                      "s": [
                                        {
                                          "r": "136",
                                          "s": [
                                            {
                                              "value": [
                                                "LowRiskForVTE"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "137",
                                          "s": [
                                            {
                                              "value": [
                                                "LowRiskDatetime"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "r": "141",
                                      "value": [
                                        " ",
                                        "during",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "140",
                                      "s": [
                                        {
                                          "r": "138",
                                          "s": [
                                            {
                                              "value": [
                                                "VTEICU"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "140",
                                          "s": [
                                            {
                                              "value": [
                                                "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"",
                                                " ( "
                                              ]
                                            },
                                            {
                                              "r": "139",
                                              "s": [
                                                {
                                                  "value": [
                                                    "QualifyingEncounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " )"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "143",
                  "locator": "262:3-264:136",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "84",
                      "locator": "262:3-262:100",
                      "alias": "QualifyingEncounter",
                      "expression": {
                        "localId": "83",
                        "locator": "262:3-262:80",
                        "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "142",
                      "locator": "263:5-264:136",
                      "alias": "LowRiskForVTE",
                      "type": "With",
                      "expression": {
                        "localId": "134",
                        "locator": "263:10-263:37",
                        "name": "Low Risk Indicator For VTE",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "141",
                        "locator": "264:17-264:136",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "137",
                            "locator": "264:17-264:45",
                            "path": "LowRiskDatetime",
                            "scope": "LowRiskForVTE",
                            "type": "Property"
                          },
                          {
                            "localId": "140",
                            "locator": "264:54-264:136",
                            "name": "FromDayOfStartOfHospitalizationToDayAfterAdmission",
                            "libraryName": "VTEICU",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "139",
                                "locator": "264:116-264:134",
                                "name": "QualifyingEncounter",
                                "type": "AliasRef"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "171",
                "locator": "266:1-274:30",
                "name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "171",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "170",
                          "s": [
                            {
                              "s": [
                                {
                                  "value": [
                                    "from\n    "
                                  ]
                                },
                                {
                                  "r": "147",
                                  "s": [
                                    {
                                      "r": "146",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ",\n    "
                                  ]
                                },
                                {
                                  "r": "149",
                                  "s": [
                                    {
                                      "r": "148",
                                      "s": [
                                        {
                                          "r": "148",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Procedure, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"General or Neuraxial Anesthesia\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "AnesthesiaProcedure"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ",\n    "
                                  ]
                                },
                                {
                                  "r": "151",
                                  "s": [
                                    {
                                      "r": "150",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Low Risk Indicator For VTE\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "LowRiskForVTE"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "167",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "167",
                                  "s": [
                                    {
                                      "r": "158",
                                      "s": [
                                        {
                                          "r": "153",
                                          "s": [
                                            {
                                              "r": "152",
                                              "s": [
                                                {
                                                  "value": [
                                                    "AnesthesiaProcedure"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "153",
                                              "s": [
                                                {
                                                  "value": [
                                                    "relevantPeriod"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "158",
                                          "s": [
                                            {
                                              "value": [
                                                "ends "
                                              ]
                                            },
                                            {
                                              "r": "157",
                                              "s": [
                                                {
                                                  "value": [
                                                    "1 ",
                                                    "day"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " after day of"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "156",
                                          "s": [
                                            {
                                              "value": [
                                                "start of "
                                              ]
                                            },
                                            {
                                              "r": "155",
                                              "s": [
                                                {
                                                  "r": "154",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "QualifyingEncounter"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "155",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      and "
                                      ]
                                    },
                                    {
                                      "r": "166",
                                      "s": [
                                        {
                                          "r": "160",
                                          "s": [
                                            {
                                              "r": "159",
                                              "s": [
                                                {
                                                  "value": [
                                                    "LowRiskForVTE"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "160",
                                              "s": [
                                                {
                                                  "value": [
                                                    "LowRiskDatetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "r": "166",
                                          "value": [
                                            " ",
                                            "during",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "165",
                                          "s": [
                                            {
                                              "r": "161",
                                              "s": [
                                                {
                                                  "value": [
                                                    "VTEICU"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "165",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"CalendarDayOfOrDayAfter\"",
                                                    " ( \n      "
                                                  ]
                                                },
                                                {
                                                  "r": "164",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "end of "
                                                      ]
                                                    },
                                                    {
                                                      "r": "163",
                                                      "s": [
                                                        {
                                                          "r": "162",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "AnesthesiaProcedure"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "163",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "relevantPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "169",
                              "s": [
                                {
                                  "value": [
                                    "return "
                                  ]
                                },
                                {
                                  "r": "168",
                                  "s": [
                                    {
                                      "value": [
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "170",
                  "locator": "267:3-274:30",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "147",
                      "locator": "268:5-268:102",
                      "alias": "QualifyingEncounter",
                      "expression": {
                        "localId": "146",
                        "locator": "268:5-268:82",
                        "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                        "type": "ExpressionRef"
                      }
                    },
                    {
                      "localId": "149",
                      "locator": "269:5-269:83",
                      "alias": "AnesthesiaProcedure",
                      "expression": {
                        "localId": "148",
                        "locator": "269:5-269:63",
                        "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                        "templateId": "PositiveProcedurePerformed",
                        "codeProperty": "code",
                        "codeComparator": "in",
                        "type": "Retrieve",
                        "codes": {
                          "locator": "269:30-269:62",
                          "name": "General or Neuraxial Anesthesia",
                          "type": "ValueSetRef"
                        }
                      }
                    },
                    {
                      "localId": "151",
                      "locator": "270:5-270:46",
                      "alias": "LowRiskForVTE",
                      "expression": {
                        "localId": "150",
                        "locator": "270:5-270:32",
                        "name": "Low Risk Indicator For VTE",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [],
                  "where": {
                    "localId": "167",
                    "locator": "271:5-273:49",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "158",
                        "locator": "271:11-271:112",
                        "precision": "Day",
                        "type": "SameAs",
                        "operand": [
                          {
                            "locator": "271:46-271:49",
                            "type": "End",
                            "operand": {
                              "localId": "153",
                              "locator": "271:11-271:44",
                              "path": "relevantPeriod",
                              "scope": "AnesthesiaProcedure",
                              "type": "Property"
                            }
                          },
                          {
                            "locator": "271:70-271:112",
                            "type": "Add",
                            "operand": [
                              {
                                "localId": "156",
                                "locator": "271:70-271:112",
                                "type": "Start",
                                "operand": {
                                  "localId": "155",
                                  "locator": "271:79-271:112",
                                  "path": "relevantPeriod",
                                  "scope": "QualifyingEncounter",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "157",
                                "locator": "271:51-271:55",
                                "value": 1,
                                "unit": "day",
                                "type": "Quantity"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "localId": "166",
                        "locator": "272:11-273:49",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "160",
                            "locator": "272:11-272:39",
                            "path": "LowRiskDatetime",
                            "scope": "LowRiskForVTE",
                            "type": "Property"
                          },
                          {
                            "localId": "165",
                            "locator": "272:48-273:49",
                            "name": "CalendarDayOfOrDayAfter",
                            "libraryName": "VTEICU",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "164",
                                "locator": "273:7-273:47",
                                "type": "End",
                                "operand": {
                                  "localId": "163",
                                  "locator": "273:14-273:47",
                                  "path": "relevantPeriod",
                                  "scope": "AnesthesiaProcedure",
                                  "type": "Property"
                                }
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  "return": {
                    "localId": "169",
                    "locator": "274:5-274:30",
                    "expression": {
                      "localId": "168",
                      "locator": "274:12-274:30",
                      "name": "QualifyingEncounter",
                      "type": "AliasRef"
                    }
                  }
                }
              },
              {
                "localId": "174",
                "locator": "65:1-67:91",
                "name": "Encounter With Low Risk for VTE or Anticoagulant Administered",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "174",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Encounter With Low Risk for VTE or Anticoagulant Administered\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "173",
                          "s": [
                            {
                              "r": "145",
                              "s": [
                                {
                                  "value": [
                                    "\"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "172",
                              "s": [
                                {
                                  "value": [
                                    "\"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\""
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "173",
                  "locator": "66:3-67:91",
                  "type": "Union",
                  "operand": [
                    {
                      "localId": "145",
                      "locator": "66:3-66:110",
                      "name": "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission",
                      "type": "ExpressionRef"
                    },
                    {
                      "localId": "172",
                      "locator": "67:11-67:91",
                      "name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              },
              {
                "localId": "196",
                "locator": "276:1-286:87",
                "name": "No VTE Prophylaxis Medication Administered or Ordered",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "196",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"No VTE Prophylaxis Medication Administered or Ordered\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "195",
                          "s": [
                            {
                              "r": "193",
                              "s": [
                                {
                                  "r": "191",
                                  "s": [
                                    {
                                      "r": "189",
                                      "s": [
                                        {
                                          "r": "187",
                                          "s": [
                                            {
                                              "r": "185",
                                              "s": [
                                                {
                                                  "r": "183",
                                                  "s": [
                                                    {
                                                      "r": "181",
                                                      "s": [
                                                        {
                                                          "r": "179",
                                                          "s": [
                                                            {
                                                              "r": "177",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Medication, Not Administered\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Low Dose Unfractionated Heparin for VTE Prophylaxis\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\n    union "
                                                              ]
                                                            },
                                                            {
                                                              "r": "178",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Medication, Not Administered\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Low Molecular Weight Heparin for VTE Prophylaxis\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n    union "
                                                          ]
                                                        },
                                                        {
                                                          "r": "180",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "[",
                                                                "\"Medication, Not Administered\"",
                                                                ": "
                                                              ]
                                                            },
                                                            {
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Injectable Factor Xa Inhibitor for VTE Prophylaxis\""
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "]"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n    union "
                                                      ]
                                                    },
                                                    {
                                                      "r": "182",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "[",
                                                            "\"Medication, Not Administered\"",
                                                            ": "
                                                          ]
                                                        },
                                                        {
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Warfarin\""
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "]"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n    union "
                                                  ]
                                                },
                                                {
                                                  "r": "184",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Medication, Not Administered\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Rivaroxaban and Betrixaban for VTE Prophylaxis\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n    union "
                                              ]
                                            },
                                            {
                                              "r": "186",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Medication, Not Ordered\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Low Dose Unfractionated Heparin for VTE Prophylaxis\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n    union "
                                          ]
                                        },
                                        {
                                          "r": "188",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Medication, Not Ordered\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Low Molecular Weight Heparin for VTE Prophylaxis\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n    union "
                                      ]
                                    },
                                    {
                                      "r": "190",
                                      "s": [
                                        {
                                          "value": [
                                            "[",
                                            "\"Medication, Not Ordered\"",
                                            ": "
                                          ]
                                        },
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Injectable Factor Xa Inhibitor for VTE Prophylaxis\""
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "]"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    union "
                                  ]
                                },
                                {
                                  "r": "192",
                                  "s": [
                                    {
                                      "value": [
                                        "[",
                                        "\"Medication, Not Ordered\"",
                                        ": "
                                      ]
                                    },
                                    {
                                      "s": [
                                        {
                                          "value": [
                                            "\"Warfarin\""
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "]"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "194",
                              "s": [
                                {
                                  "value": [
                                    "[",
                                    "\"Medication, Not Ordered\"",
                                    ": "
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "\"Rivaroxaban and Betrixaban for VTE Prophylaxis\""
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "]"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "195",
                  "locator": "277:3-286:87",
                  "type": "Union",
                  "operand": [
                    {
                      "type": "As",
                      "operand": {
                        "localId": "193",
                        "locator": "277:3-285:49",
                        "type": "Union",
                        "operand": [
                          {
                            "type": "As",
                            "operand": {
                              "localId": "191",
                              "locator": "277:3-284:91",
                              "type": "Union",
                              "operand": [
                                {
                                  "type": "As",
                                  "operand": {
                                    "localId": "189",
                                    "locator": "277:3-283:89",
                                    "type": "Union",
                                    "operand": [
                                      {
                                        "type": "As",
                                        "operand": {
                                          "localId": "187",
                                          "locator": "277:3-282:92",
                                          "type": "Union",
                                          "operand": [
                                            {
                                              "type": "As",
                                              "operand": {
                                                "localId": "183",
                                                "locator": "277:3-280:54",
                                                "type": "Union",
                                                "operand": [
                                                  {
                                                    "localId": "179",
                                                    "locator": "277:3-278:94",
                                                    "type": "Union",
                                                    "operand": [
                                                      {
                                                        "localId": "177",
                                                        "locator": "277:3-277:89",
                                                        "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                        "templateId": "NegativeMedicationAdministered",
                                                        "codeProperty": "code",
                                                        "codeComparator": "in",
                                                        "type": "Retrieve",
                                                        "codes": {
                                                          "locator": "277:36-277:88",
                                                          "name": "Low Dose Unfractionated Heparin for VTE Prophylaxis",
                                                          "type": "ValueSetRef"
                                                        }
                                                      },
                                                      {
                                                        "localId": "178",
                                                        "locator": "278:11-278:94",
                                                        "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                        "templateId": "NegativeMedicationAdministered",
                                                        "codeProperty": "code",
                                                        "codeComparator": "in",
                                                        "type": "Retrieve",
                                                        "codes": {
                                                          "locator": "278:44-278:93",
                                                          "name": "Low Molecular Weight Heparin for VTE Prophylaxis",
                                                          "type": "ValueSetRef"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "type": "Union",
                                                    "operand": [
                                                      {
                                                        "localId": "180",
                                                        "locator": "279:11-279:96",
                                                        "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                        "templateId": "NegativeMedicationAdministered",
                                                        "codeProperty": "code",
                                                        "codeComparator": "in",
                                                        "type": "Retrieve",
                                                        "codes": {
                                                          "locator": "279:44-279:95",
                                                          "name": "Injectable Factor Xa Inhibitor for VTE Prophylaxis",
                                                          "type": "ValueSetRef"
                                                        }
                                                      },
                                                      {
                                                        "localId": "182",
                                                        "locator": "280:11-280:54",
                                                        "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                        "templateId": "NegativeMedicationAdministered",
                                                        "codeProperty": "code",
                                                        "codeComparator": "in",
                                                        "type": "Retrieve",
                                                        "codes": {
                                                          "locator": "280:44-280:53",
                                                          "name": "Warfarin",
                                                          "type": "ValueSetRef"
                                                        }
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              "asTypeSpecifier": {
                                                "type": "ListTypeSpecifier",
                                                "elementType": {
                                                  "type": "ChoiceTypeSpecifier",
                                                  "choice": [
                                                    {
                                                      "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                      "type": "NamedTypeSpecifier"
                                                    },
                                                    {
                                                      "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                                      "type": "NamedTypeSpecifier"
                                                    }
                                                  ]
                                                }
                                              }
                                            },
                                            {
                                              "type": "As",
                                              "operand": {
                                                "type": "Union",
                                                "operand": [
                                                  {
                                                    "type": "As",
                                                    "operand": {
                                                      "localId": "184",
                                                      "locator": "281:11-281:92",
                                                      "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                      "templateId": "NegativeMedicationAdministered",
                                                      "codeProperty": "code",
                                                      "codeComparator": "in",
                                                      "type": "Retrieve",
                                                      "codes": {
                                                        "locator": "281:44-281:91",
                                                        "name": "Rivaroxaban and Betrixaban for VTE Prophylaxis",
                                                        "type": "ValueSetRef"
                                                      }
                                                    },
                                                    "asTypeSpecifier": {
                                                      "type": "ListTypeSpecifier",
                                                      "elementType": {
                                                        "type": "ChoiceTypeSpecifier",
                                                        "choice": [
                                                          {
                                                            "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                            "type": "NamedTypeSpecifier"
                                                          },
                                                          {
                                                            "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                                            "type": "NamedTypeSpecifier"
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  },
                                                  {
                                                    "type": "As",
                                                    "operand": {
                                                      "localId": "186",
                                                      "locator": "282:11-282:92",
                                                      "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                                      "templateId": "NegativeMedicationOrder",
                                                      "codeProperty": "code",
                                                      "codeComparator": "in",
                                                      "type": "Retrieve",
                                                      "codes": {
                                                        "locator": "282:39-282:91",
                                                        "name": "Low Dose Unfractionated Heparin for VTE Prophylaxis",
                                                        "type": "ValueSetRef"
                                                      }
                                                    },
                                                    "asTypeSpecifier": {
                                                      "type": "ListTypeSpecifier",
                                                      "elementType": {
                                                        "type": "ChoiceTypeSpecifier",
                                                        "choice": [
                                                          {
                                                            "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                            "type": "NamedTypeSpecifier"
                                                          },
                                                          {
                                                            "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                                            "type": "NamedTypeSpecifier"
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                ]
                                              },
                                              "asTypeSpecifier": {
                                                "type": "ListTypeSpecifier",
                                                "elementType": {
                                                  "type": "ChoiceTypeSpecifier",
                                                  "choice": [
                                                    {
                                                      "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                      "type": "NamedTypeSpecifier"
                                                    },
                                                    {
                                                      "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                                      "type": "NamedTypeSpecifier"
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          ]
                                        },
                                        "asTypeSpecifier": {
                                          "type": "ListTypeSpecifier",
                                          "elementType": {
                                            "type": "ChoiceTypeSpecifier",
                                            "choice": [
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                "type": "NamedTypeSpecifier"
                                              },
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                                "type": "NamedTypeSpecifier"
                                              }
                                            ]
                                          }
                                        }
                                      },
                                      {
                                        "type": "As",
                                        "operand": {
                                          "localId": "188",
                                          "locator": "283:11-283:89",
                                          "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                          "templateId": "NegativeMedicationOrder",
                                          "codeProperty": "code",
                                          "codeComparator": "in",
                                          "type": "Retrieve",
                                          "codes": {
                                            "locator": "283:39-283:88",
                                            "name": "Low Molecular Weight Heparin for VTE Prophylaxis",
                                            "type": "ValueSetRef"
                                          }
                                        },
                                        "asTypeSpecifier": {
                                          "type": "ListTypeSpecifier",
                                          "elementType": {
                                            "type": "ChoiceTypeSpecifier",
                                            "choice": [
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                                "type": "NamedTypeSpecifier"
                                              },
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                                "type": "NamedTypeSpecifier"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    ]
                                  },
                                  "asTypeSpecifier": {
                                    "type": "ListTypeSpecifier",
                                    "elementType": {
                                      "type": "ChoiceTypeSpecifier",
                                      "choice": [
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                          "type": "NamedTypeSpecifier"
                                        },
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                          "type": "NamedTypeSpecifier"
                                        }
                                      ]
                                    }
                                  }
                                },
                                {
                                  "type": "As",
                                  "operand": {
                                    "localId": "190",
                                    "locator": "284:11-284:91",
                                    "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                    "templateId": "NegativeMedicationOrder",
                                    "codeProperty": "code",
                                    "codeComparator": "in",
                                    "type": "Retrieve",
                                    "codes": {
                                      "locator": "284:39-284:90",
                                      "name": "Injectable Factor Xa Inhibitor for VTE Prophylaxis",
                                      "type": "ValueSetRef"
                                    }
                                  },
                                  "asTypeSpecifier": {
                                    "type": "ListTypeSpecifier",
                                    "elementType": {
                                      "type": "ChoiceTypeSpecifier",
                                      "choice": [
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                          "type": "NamedTypeSpecifier"
                                        },
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                          "type": "NamedTypeSpecifier"
                                        }
                                      ]
                                    }
                                  }
                                }
                              ]
                            },
                            "asTypeSpecifier": {
                              "type": "ListTypeSpecifier",
                              "elementType": {
                                "type": "ChoiceTypeSpecifier",
                                "choice": [
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                    "type": "NamedTypeSpecifier"
                                  }
                                ]
                              }
                            }
                          },
                          {
                            "type": "As",
                            "operand": {
                              "localId": "192",
                              "locator": "285:11-285:49",
                              "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                              "templateId": "NegativeMedicationOrder",
                              "codeProperty": "code",
                              "codeComparator": "in",
                              "type": "Retrieve",
                              "codes": {
                                "locator": "285:39-285:48",
                                "name": "Warfarin",
                                "type": "ValueSetRef"
                              }
                            },
                            "asTypeSpecifier": {
                              "type": "ListTypeSpecifier",
                              "elementType": {
                                "type": "ChoiceTypeSpecifier",
                                "choice": [
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                    "type": "NamedTypeSpecifier"
                                  }
                                ]
                              }
                            }
                          }
                        ]
                      },
                      "asTypeSpecifier": {
                        "type": "ListTypeSpecifier",
                        "elementType": {
                          "type": "ChoiceTypeSpecifier",
                          "choice": [
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                              "type": "NamedTypeSpecifier"
                            },
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                              "type": "NamedTypeSpecifier"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "type": "As",
                      "operand": {
                        "localId": "194",
                        "locator": "286:11-286:87",
                        "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                        "templateId": "NegativeMedicationOrder",
                        "codeProperty": "code",
                        "codeComparator": "in",
                        "type": "Retrieve",
                        "codes": {
                          "locator": "286:39-286:86",
                          "name": "Rivaroxaban and Betrixaban for VTE Prophylaxis",
                          "type": "ValueSetRef"
                        }
                      },
                      "asTypeSpecifier": {
                        "type": "ListTypeSpecifier",
                        "elementType": {
                          "type": "ChoiceTypeSpecifier",
                          "choice": [
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                              "type": "NamedTypeSpecifier"
                            },
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                              "type": "NamedTypeSpecifier"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              },
              {
                "localId": "212",
                "locator": "124:1-128:133",
                "name": "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "212",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "211",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "176",
                                  "s": [
                                    {
                                      "r": "175",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "210",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "198",
                                  "s": [
                                    {
                                      "r": "197",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NoVTEMedication"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n      such that "
                                  ]
                                },
                                {
                                  "r": "209",
                                  "s": [
                                    {
                                      "r": "202",
                                      "s": [
                                        {
                                          "r": "200",
                                          "s": [
                                            {
                                              "r": "199",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NoVTEMedication"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "200",
                                              "s": [
                                                {
                                                  "value": [
                                                    "negationRationale"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " in "
                                          ]
                                        },
                                        {
                                          "r": "201",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Medical Reason\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n        and "
                                      ]
                                    },
                                    {
                                      "r": "208",
                                      "s": [
                                        {
                                          "r": "204",
                                          "s": [
                                            {
                                              "r": "203",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NoVTEMedication"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "204",
                                              "s": [
                                                {
                                                  "value": [
                                                    "authorDatetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "r": "208",
                                          "value": [
                                            " ",
                                            "during",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "207",
                                          "s": [
                                            {
                                              "r": "205",
                                              "s": [
                                                {
                                                  "value": [
                                                    "VTEICU"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "207",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"",
                                                    " ( "
                                                  ]
                                                },
                                                {
                                                  "r": "206",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "QualifyingEncounter"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "211",
                  "locator": "125:3-128:133",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "176",
                      "locator": "125:3-125:100",
                      "alias": "QualifyingEncounter",
                      "expression": {
                        "localId": "175",
                        "locator": "125:3-125:80",
                        "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "210",
                      "locator": "126:5-128:133",
                      "alias": "NoVTEMedication",
                      "type": "With",
                      "expression": {
                        "localId": "197",
                        "locator": "126:10-126:64",
                        "name": "No VTE Prophylaxis Medication Administered or Ordered",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "209",
                        "locator": "127:17-128:133",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "202",
                            "locator": "127:17-127:69",
                            "type": "InValueSet",
                            "code": {
                              "localId": "200",
                              "locator": "127:17-127:49",
                              "path": "negationRationale",
                              "scope": "NoVTEMedication",
                              "type": "Property"
                            },
                            "valueset": {
                              "localId": "201",
                              "locator": "127:54-127:69",
                              "name": "Medical Reason",
                              "type": "ValueSetRef"
                            }
                          },
                          {
                            "localId": "208",
                            "locator": "128:13-128:133",
                            "type": "In",
                            "operand": [
                              {
                                "localId": "204",
                                "locator": "128:13-128:42",
                                "path": "authorDatetime",
                                "scope": "NoVTEMedication",
                                "type": "Property"
                              },
                              {
                                "localId": "207",
                                "locator": "128:51-128:133",
                                "name": "FromDayOfStartOfHospitalizationToDayAfterAdmission",
                                "libraryName": "VTEICU",
                                "type": "FunctionRef",
                                "operand": [
                                  {
                                    "localId": "206",
                                    "locator": "128:113-128:131",
                                    "name": "QualifyingEncounter",
                                    "type": "AliasRef"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "227",
                "locator": "84:1-90:74",
                "name": "No VTE Prophylaxis Device Applied or Ordered",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "227",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"No VTE Prophylaxis Device Applied or Ordered\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "226",
                          "s": [
                            {
                              "r": "224",
                              "s": [
                                {
                                  "r": "222",
                                  "s": [
                                    {
                                      "r": "220",
                                      "s": [
                                        {
                                          "r": "218",
                                          "s": [
                                            {
                                              "r": "216",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Procedure, Not Performed\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Intermittent pneumatic compression devices (IPC)\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n    union "
                                              ]
                                            },
                                            {
                                              "r": "217",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Procedure, Not Performed\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Venous foot pumps (VFP)\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n    union "
                                          ]
                                        },
                                        {
                                          "r": "219",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Procedure, Not Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Graduated compression stockings (GCS)\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n    union "
                                      ]
                                    },
                                    {
                                      "r": "221",
                                      "s": [
                                        {
                                          "value": [
                                            "[",
                                            "\"Device, Not Ordered\"",
                                            ": "
                                          ]
                                        },
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Intermittent pneumatic compression devices (IPC)\""
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "]"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    union "
                                  ]
                                },
                                {
                                  "r": "223",
                                  "s": [
                                    {
                                      "value": [
                                        "[",
                                        "\"Device, Not Ordered\"",
                                        ": "
                                      ]
                                    },
                                    {
                                      "s": [
                                        {
                                          "value": [
                                            "\"Venous foot pumps (VFP)\""
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "]"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "225",
                              "s": [
                                {
                                  "value": [
                                    "[",
                                    "\"Device, Not Ordered\"",
                                    ": "
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "\"Graduated compression stockings (GCS)\""
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "]"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "226",
                  "locator": "85:3-90:74",
                  "type": "Union",
                  "operand": [
                    {
                      "type": "As",
                      "operand": {
                        "localId": "224",
                        "locator": "85:3-89:60",
                        "type": "Union",
                        "operand": [
                          {
                            "type": "As",
                            "operand": {
                              "localId": "222",
                              "locator": "85:3-88:85",
                              "type": "Union",
                              "operand": [
                                {
                                  "type": "As",
                                  "operand": {
                                    "localId": "218",
                                    "locator": "85:3-86:65",
                                    "type": "Union",
                                    "operand": [
                                      {
                                        "localId": "216",
                                        "locator": "85:3-85:82",
                                        "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                        "templateId": "NegativeProcedurePerformed",
                                        "codeProperty": "code",
                                        "codeComparator": "in",
                                        "type": "Retrieve",
                                        "codes": {
                                          "locator": "85:32-85:81",
                                          "name": "Intermittent pneumatic compression devices (IPC)",
                                          "type": "ValueSetRef"
                                        }
                                      },
                                      {
                                        "localId": "217",
                                        "locator": "86:11-86:65",
                                        "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                        "templateId": "NegativeProcedurePerformed",
                                        "codeProperty": "code",
                                        "codeComparator": "in",
                                        "type": "Retrieve",
                                        "codes": {
                                          "locator": "86:40-86:64",
                                          "name": "Venous foot pumps (VFP)",
                                          "type": "ValueSetRef"
                                        }
                                      }
                                    ]
                                  },
                                  "asTypeSpecifier": {
                                    "type": "ListTypeSpecifier",
                                    "elementType": {
                                      "type": "ChoiceTypeSpecifier",
                                      "choice": [
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                                          "type": "NamedTypeSpecifier"
                                        },
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                          "type": "NamedTypeSpecifier"
                                        }
                                      ]
                                    }
                                  }
                                },
                                {
                                  "type": "As",
                                  "operand": {
                                    "type": "Union",
                                    "operand": [
                                      {
                                        "type": "As",
                                        "operand": {
                                          "localId": "219",
                                          "locator": "87:11-87:79",
                                          "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                          "templateId": "NegativeProcedurePerformed",
                                          "codeProperty": "code",
                                          "codeComparator": "in",
                                          "type": "Retrieve",
                                          "codes": {
                                            "locator": "87:40-87:78",
                                            "name": "Graduated compression stockings (GCS)",
                                            "type": "ValueSetRef"
                                          }
                                        },
                                        "asTypeSpecifier": {
                                          "type": "ListTypeSpecifier",
                                          "elementType": {
                                            "type": "ChoiceTypeSpecifier",
                                            "choice": [
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                                                "type": "NamedTypeSpecifier"
                                              },
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                                "type": "NamedTypeSpecifier"
                                              }
                                            ]
                                          }
                                        }
                                      },
                                      {
                                        "type": "As",
                                        "operand": {
                                          "localId": "221",
                                          "locator": "88:11-88:85",
                                          "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                                          "templateId": "NegativeDeviceOrder",
                                          "codeProperty": "code",
                                          "codeComparator": "in",
                                          "type": "Retrieve",
                                          "codes": {
                                            "locator": "88:35-88:84",
                                            "name": "Intermittent pneumatic compression devices (IPC)",
                                            "type": "ValueSetRef"
                                          }
                                        },
                                        "asTypeSpecifier": {
                                          "type": "ListTypeSpecifier",
                                          "elementType": {
                                            "type": "ChoiceTypeSpecifier",
                                            "choice": [
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                                                "type": "NamedTypeSpecifier"
                                              },
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                                "type": "NamedTypeSpecifier"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    ]
                                  },
                                  "asTypeSpecifier": {
                                    "type": "ListTypeSpecifier",
                                    "elementType": {
                                      "type": "ChoiceTypeSpecifier",
                                      "choice": [
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                                          "type": "NamedTypeSpecifier"
                                        },
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                          "type": "NamedTypeSpecifier"
                                        }
                                      ]
                                    }
                                  }
                                }
                              ]
                            },
                            "asTypeSpecifier": {
                              "type": "ListTypeSpecifier",
                              "elementType": {
                                "type": "ChoiceTypeSpecifier",
                                "choice": [
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                    "type": "NamedTypeSpecifier"
                                  }
                                ]
                              }
                            }
                          },
                          {
                            "type": "As",
                            "operand": {
                              "localId": "223",
                              "locator": "89:11-89:60",
                              "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                              "templateId": "NegativeDeviceOrder",
                              "codeProperty": "code",
                              "codeComparator": "in",
                              "type": "Retrieve",
                              "codes": {
                                "locator": "89:35-89:59",
                                "name": "Venous foot pumps (VFP)",
                                "type": "ValueSetRef"
                              }
                            },
                            "asTypeSpecifier": {
                              "type": "ListTypeSpecifier",
                              "elementType": {
                                "type": "ChoiceTypeSpecifier",
                                "choice": [
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                    "type": "NamedTypeSpecifier"
                                  }
                                ]
                              }
                            }
                          }
                        ]
                      },
                      "asTypeSpecifier": {
                        "type": "ListTypeSpecifier",
                        "elementType": {
                          "type": "ChoiceTypeSpecifier",
                          "choice": [
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                              "type": "NamedTypeSpecifier"
                            },
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                              "type": "NamedTypeSpecifier"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "type": "As",
                      "operand": {
                        "localId": "225",
                        "locator": "90:11-90:74",
                        "dataType": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                        "templateId": "NegativeDeviceOrder",
                        "codeProperty": "code",
                        "codeComparator": "in",
                        "type": "Retrieve",
                        "codes": {
                          "locator": "90:35-90:73",
                          "name": "Graduated compression stockings (GCS)",
                          "type": "ValueSetRef"
                        }
                      },
                      "asTypeSpecifier": {
                        "type": "ListTypeSpecifier",
                        "elementType": {
                          "type": "ChoiceTypeSpecifier",
                          "choice": [
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                              "type": "NamedTypeSpecifier"
                            },
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                              "type": "NamedTypeSpecifier"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              },
              {
                "localId": "243",
                "locator": "92:1-96:129",
                "name": "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "243",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "242",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "215",
                                  "s": [
                                    {
                                      "r": "214",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "241",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "229",
                                  "s": [
                                    {
                                      "r": "228",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"No VTE Prophylaxis Device Applied or Ordered\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NoVTEDevice"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n      such that "
                                  ]
                                },
                                {
                                  "r": "240",
                                  "s": [
                                    {
                                      "r": "233",
                                      "s": [
                                        {
                                          "r": "231",
                                          "s": [
                                            {
                                              "r": "230",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NoVTEDevice"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "231",
                                              "s": [
                                                {
                                                  "value": [
                                                    "negationRationale"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " in "
                                          ]
                                        },
                                        {
                                          "r": "232",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Medical Reason\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n        and "
                                      ]
                                    },
                                    {
                                      "r": "239",
                                      "s": [
                                        {
                                          "r": "235",
                                          "s": [
                                            {
                                              "r": "234",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NoVTEDevice"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "235",
                                              "s": [
                                                {
                                                  "value": [
                                                    "authorDatetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "r": "239",
                                          "value": [
                                            " ",
                                            "during",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "238",
                                          "s": [
                                            {
                                              "r": "236",
                                              "s": [
                                                {
                                                  "value": [
                                                    "VTEICU"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "238",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"",
                                                    " ( "
                                                  ]
                                                },
                                                {
                                                  "r": "237",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "QualifyingEncounter"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "242",
                  "locator": "93:3-96:129",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "215",
                      "locator": "93:3-93:100",
                      "alias": "QualifyingEncounter",
                      "expression": {
                        "localId": "214",
                        "locator": "93:3-93:80",
                        "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "241",
                      "locator": "94:5-96:129",
                      "alias": "NoVTEDevice",
                      "type": "With",
                      "expression": {
                        "localId": "228",
                        "locator": "94:10-94:55",
                        "name": "No VTE Prophylaxis Device Applied or Ordered",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "240",
                        "locator": "95:17-96:129",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "233",
                            "locator": "95:17-95:65",
                            "type": "InValueSet",
                            "code": {
                              "localId": "231",
                              "locator": "95:17-95:45",
                              "path": "negationRationale",
                              "scope": "NoVTEDevice",
                              "type": "Property"
                            },
                            "valueset": {
                              "localId": "232",
                              "locator": "95:50-95:65",
                              "name": "Medical Reason",
                              "type": "ValueSetRef"
                            }
                          },
                          {
                            "localId": "239",
                            "locator": "96:13-96:129",
                            "type": "In",
                            "operand": [
                              {
                                "localId": "235",
                                "locator": "96:13-96:38",
                                "path": "authorDatetime",
                                "scope": "NoVTEDevice",
                                "type": "Property"
                              },
                              {
                                "localId": "238",
                                "locator": "96:47-96:129",
                                "name": "FromDayOfStartOfHospitalizationToDayAfterAdmission",
                                "libraryName": "VTEICU",
                                "type": "FunctionRef",
                                "operand": [
                                  {
                                    "localId": "237",
                                    "locator": "96:109-96:127",
                                    "name": "QualifyingEncounter",
                                    "type": "AliasRef"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "276",
                "locator": "130:1-139:30",
                "name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "276",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "275",
                          "s": [
                            {
                              "s": [
                                {
                                  "value": [
                                    "from\n    "
                                  ]
                                },
                                {
                                  "r": "247",
                                  "s": [
                                    {
                                      "r": "246",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ",\n    "
                                  ]
                                },
                                {
                                  "r": "249",
                                  "s": [
                                    {
                                      "r": "248",
                                      "s": [
                                        {
                                          "r": "248",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Procedure, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"General or Neuraxial Anesthesia\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "AnesthesiaProcedure"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ",\n    "
                                  ]
                                },
                                {
                                  "r": "251",
                                  "s": [
                                    {
                                      "r": "250",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NoVTEMedication"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "272",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "272",
                                  "s": [
                                    {
                                      "r": "263",
                                      "s": [
                                        {
                                          "r": "255",
                                          "s": [
                                            {
                                              "r": "253",
                                              "s": [
                                                {
                                                  "r": "252",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "NoVTEMedication"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "253",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "negationRationale"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " in "
                                              ]
                                            },
                                            {
                                              "r": "254",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Medical Reason\""
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n      and "
                                          ]
                                        },
                                        {
                                          "r": "262",
                                          "s": [
                                            {
                                              "r": "257",
                                              "s": [
                                                {
                                                  "r": "256",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "AnesthesiaProcedure"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "257",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "262",
                                              "s": [
                                                {
                                                  "value": [
                                                    "ends "
                                                  ]
                                                },
                                                {
                                                  "r": "261",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "1 ",
                                                        "day"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " after day of"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "260",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "259",
                                                  "s": [
                                                    {
                                                      "r": "258",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "QualifyingEncounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "259",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      and "
                                      ]
                                    },
                                    {
                                      "r": "271",
                                      "s": [
                                        {
                                          "r": "265",
                                          "s": [
                                            {
                                              "r": "264",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NoVTEMedication"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "265",
                                              "s": [
                                                {
                                                  "value": [
                                                    "authorDatetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "r": "271",
                                          "value": [
                                            " ",
                                            "during",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "270",
                                          "s": [
                                            {
                                              "r": "266",
                                              "s": [
                                                {
                                                  "value": [
                                                    "VTEICU"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "270",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"CalendarDayOfOrDayAfter\"",
                                                    " ( \n      "
                                                  ]
                                                },
                                                {
                                                  "r": "269",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "end of "
                                                      ]
                                                    },
                                                    {
                                                      "r": "268",
                                                      "s": [
                                                        {
                                                          "r": "267",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "AnesthesiaProcedure"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "268",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "relevantPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "274",
                              "s": [
                                {
                                  "value": [
                                    "return "
                                  ]
                                },
                                {
                                  "r": "273",
                                  "s": [
                                    {
                                      "value": [
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "275",
                  "locator": "131:3-139:30",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "247",
                      "locator": "132:5-132:102",
                      "alias": "QualifyingEncounter",
                      "expression": {
                        "localId": "246",
                        "locator": "132:5-132:82",
                        "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                        "type": "ExpressionRef"
                      }
                    },
                    {
                      "localId": "249",
                      "locator": "133:5-133:83",
                      "alias": "AnesthesiaProcedure",
                      "expression": {
                        "localId": "248",
                        "locator": "133:5-133:63",
                        "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                        "templateId": "PositiveProcedurePerformed",
                        "codeProperty": "code",
                        "codeComparator": "in",
                        "type": "Retrieve",
                        "codes": {
                          "locator": "133:30-133:62",
                          "name": "General or Neuraxial Anesthesia",
                          "type": "ValueSetRef"
                        }
                      }
                    },
                    {
                      "localId": "251",
                      "locator": "134:5-134:75",
                      "alias": "NoVTEMedication",
                      "expression": {
                        "localId": "250",
                        "locator": "134:5-134:59",
                        "name": "No VTE Prophylaxis Medication Administered or Ordered",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [],
                  "where": {
                    "localId": "272",
                    "locator": "135:5-138:49",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "263",
                        "locator": "135:11-136:112",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "255",
                            "locator": "135:11-135:63",
                            "type": "InValueSet",
                            "code": {
                              "localId": "253",
                              "locator": "135:11-135:43",
                              "path": "negationRationale",
                              "scope": "NoVTEMedication",
                              "type": "Property"
                            },
                            "valueset": {
                              "localId": "254",
                              "locator": "135:48-135:63",
                              "name": "Medical Reason",
                              "type": "ValueSetRef"
                            }
                          },
                          {
                            "localId": "262",
                            "locator": "136:11-136:112",
                            "precision": "Day",
                            "type": "SameAs",
                            "operand": [
                              {
                                "locator": "136:46-136:49",
                                "type": "End",
                                "operand": {
                                  "localId": "257",
                                  "locator": "136:11-136:44",
                                  "path": "relevantPeriod",
                                  "scope": "AnesthesiaProcedure",
                                  "type": "Property"
                                }
                              },
                              {
                                "locator": "136:70-136:112",
                                "type": "Add",
                                "operand": [
                                  {
                                    "localId": "260",
                                    "locator": "136:70-136:112",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "259",
                                      "locator": "136:79-136:112",
                                      "path": "relevantPeriod",
                                      "scope": "QualifyingEncounter",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "261",
                                    "locator": "136:51-136:55",
                                    "value": 1,
                                    "unit": "day",
                                    "type": "Quantity"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "localId": "271",
                        "locator": "137:11-138:49",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "265",
                            "locator": "137:11-137:40",
                            "path": "authorDatetime",
                            "scope": "NoVTEMedication",
                            "type": "Property"
                          },
                          {
                            "localId": "270",
                            "locator": "137:49-138:49",
                            "name": "CalendarDayOfOrDayAfter",
                            "libraryName": "VTEICU",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "269",
                                "locator": "138:7-138:47",
                                "type": "End",
                                "operand": {
                                  "localId": "268",
                                  "locator": "138:14-138:47",
                                  "path": "relevantPeriod",
                                  "scope": "AnesthesiaProcedure",
                                  "type": "Property"
                                }
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  "return": {
                    "localId": "274",
                    "locator": "139:5-139:30",
                    "expression": {
                      "localId": "273",
                      "locator": "139:12-139:30",
                      "name": "QualifyingEncounter",
                      "type": "AliasRef"
                    }
                  }
                }
              },
              {
                "localId": "308",
                "locator": "98:1-107:30",
                "name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "308",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "307",
                          "s": [
                            {
                              "s": [
                                {
                                  "value": [
                                    "from\n    "
                                  ]
                                },
                                {
                                  "r": "279",
                                  "s": [
                                    {
                                      "r": "278",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ",\n    "
                                  ]
                                },
                                {
                                  "r": "281",
                                  "s": [
                                    {
                                      "r": "280",
                                      "s": [
                                        {
                                          "r": "280",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Procedure, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"General or Neuraxial Anesthesia\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "AnesthesiaProcedure"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ",\n    "
                                  ]
                                },
                                {
                                  "r": "283",
                                  "s": [
                                    {
                                      "r": "282",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"No VTE Prophylaxis Device Applied or Ordered\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NoVTEDevice"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "304",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "304",
                                  "s": [
                                    {
                                      "r": "295",
                                      "s": [
                                        {
                                          "r": "287",
                                          "s": [
                                            {
                                              "r": "285",
                                              "s": [
                                                {
                                                  "r": "284",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "NoVTEDevice"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "285",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "negationRationale"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " in "
                                              ]
                                            },
                                            {
                                              "r": "286",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Medical Reason\""
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n      and "
                                          ]
                                        },
                                        {
                                          "r": "294",
                                          "s": [
                                            {
                                              "r": "289",
                                              "s": [
                                                {
                                                  "r": "288",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "AnesthesiaProcedure"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "289",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "294",
                                              "s": [
                                                {
                                                  "value": [
                                                    "ends "
                                                  ]
                                                },
                                                {
                                                  "r": "293",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "1 ",
                                                        "day"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " after day of"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "292",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "291",
                                                  "s": [
                                                    {
                                                      "r": "290",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "QualifyingEncounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "291",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      and "
                                      ]
                                    },
                                    {
                                      "r": "303",
                                      "s": [
                                        {
                                          "r": "297",
                                          "s": [
                                            {
                                              "r": "296",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NoVTEDevice"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "297",
                                              "s": [
                                                {
                                                  "value": [
                                                    "authorDatetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "r": "303",
                                          "value": [
                                            " ",
                                            "during",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "302",
                                          "s": [
                                            {
                                              "r": "298",
                                              "s": [
                                                {
                                                  "value": [
                                                    "VTEICU"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "302",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"CalendarDayOfOrDayAfter\"",
                                                    " ( \n      "
                                                  ]
                                                },
                                                {
                                                  "r": "301",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "end of "
                                                      ]
                                                    },
                                                    {
                                                      "r": "300",
                                                      "s": [
                                                        {
                                                          "r": "299",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "AnesthesiaProcedure"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "300",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "relevantPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "306",
                              "s": [
                                {
                                  "value": [
                                    "return "
                                  ]
                                },
                                {
                                  "r": "305",
                                  "s": [
                                    {
                                      "value": [
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "307",
                  "locator": "99:3-107:30",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "279",
                      "locator": "100:5-100:102",
                      "alias": "QualifyingEncounter",
                      "expression": {
                        "localId": "278",
                        "locator": "100:5-100:82",
                        "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                        "type": "ExpressionRef"
                      }
                    },
                    {
                      "localId": "281",
                      "locator": "101:5-101:83",
                      "alias": "AnesthesiaProcedure",
                      "expression": {
                        "localId": "280",
                        "locator": "101:5-101:63",
                        "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                        "templateId": "PositiveProcedurePerformed",
                        "codeProperty": "code",
                        "codeComparator": "in",
                        "type": "Retrieve",
                        "codes": {
                          "locator": "101:30-101:62",
                          "name": "General or Neuraxial Anesthesia",
                          "type": "ValueSetRef"
                        }
                      }
                    },
                    {
                      "localId": "283",
                      "locator": "102:5-102:62",
                      "alias": "NoVTEDevice",
                      "expression": {
                        "localId": "282",
                        "locator": "102:5-102:50",
                        "name": "No VTE Prophylaxis Device Applied or Ordered",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [],
                  "where": {
                    "localId": "304",
                    "locator": "103:5-106:49",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "295",
                        "locator": "103:11-104:112",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "287",
                            "locator": "103:11-103:59",
                            "type": "InValueSet",
                            "code": {
                              "localId": "285",
                              "locator": "103:11-103:39",
                              "path": "negationRationale",
                              "scope": "NoVTEDevice",
                              "type": "Property"
                            },
                            "valueset": {
                              "localId": "286",
                              "locator": "103:44-103:59",
                              "name": "Medical Reason",
                              "type": "ValueSetRef"
                            }
                          },
                          {
                            "localId": "294",
                            "locator": "104:11-104:112",
                            "precision": "Day",
                            "type": "SameAs",
                            "operand": [
                              {
                                "locator": "104:46-104:49",
                                "type": "End",
                                "operand": {
                                  "localId": "289",
                                  "locator": "104:11-104:44",
                                  "path": "relevantPeriod",
                                  "scope": "AnesthesiaProcedure",
                                  "type": "Property"
                                }
                              },
                              {
                                "locator": "104:70-104:112",
                                "type": "Add",
                                "operand": [
                                  {
                                    "localId": "292",
                                    "locator": "104:70-104:112",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "291",
                                      "locator": "104:79-104:112",
                                      "path": "relevantPeriod",
                                      "scope": "QualifyingEncounter",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "293",
                                    "locator": "104:51-104:55",
                                    "value": 1,
                                    "unit": "day",
                                    "type": "Quantity"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "localId": "303",
                        "locator": "105:11-106:49",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "297",
                            "locator": "105:11-105:36",
                            "path": "authorDatetime",
                            "scope": "NoVTEDevice",
                            "type": "Property"
                          },
                          {
                            "localId": "302",
                            "locator": "105:45-106:49",
                            "name": "CalendarDayOfOrDayAfter",
                            "libraryName": "VTEICU",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "301",
                                "locator": "106:7-106:47",
                                "type": "End",
                                "operand": {
                                  "localId": "300",
                                  "locator": "106:14-106:47",
                                  "path": "relevantPeriod",
                                  "scope": "AnesthesiaProcedure",
                                  "type": "Property"
                                }
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  "return": {
                    "localId": "306",
                    "locator": "107:5-107:30",
                    "expression": {
                      "localId": "305",
                      "locator": "107:12-107:30",
                      "name": "QualifyingEncounter",
                      "type": "AliasRef"
                    }
                  }
                }
              },
              {
                "localId": "312",
                "locator": "69:1-75:5",
                "name": "Encounter With No VTE Prophylaxis Due to Medical Reason",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "312",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Encounter With No VTE Prophylaxis Due to Medical Reason\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "311",
                          "s": [
                            {
                              "r": "245",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "245",
                                  "s": [
                                    {
                                      "r": "213",
                                      "s": [
                                        {
                                          "value": [
                                            "\"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\""
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      intersect "
                                      ]
                                    },
                                    {
                                      "r": "244",
                                      "s": [
                                        {
                                          "value": [
                                            "\"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  )"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "310",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "310",
                                  "s": [
                                    {
                                      "r": "277",
                                      "s": [
                                        {
                                          "value": [
                                            "\"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\""
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n        intersect "
                                      ]
                                    },
                                    {
                                      "r": "309",
                                      "s": [
                                        {
                                          "value": [
                                            "\"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    )"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "311",
                  "locator": "70:3-75:5",
                  "type": "Union",
                  "operand": [
                    {
                      "localId": "245",
                      "locator": "70:3-72:3",
                      "type": "Intersect",
                      "operand": [
                        {
                          "localId": "213",
                          "locator": "70:5-70:117",
                          "name": "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission",
                          "type": "ExpressionRef"
                        },
                        {
                          "localId": "244",
                          "locator": "71:17-71:125",
                          "name": "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission",
                          "type": "ExpressionRef"
                        }
                      ]
                    },
                    {
                      "localId": "310",
                      "locator": "73:11-75:5",
                      "type": "Intersect",
                      "operand": [
                        {
                          "localId": "277",
                          "locator": "73:13-73:98",
                          "name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure",
                          "type": "ExpressionRef"
                        },
                        {
                          "localId": "309",
                          "locator": "74:19-74:100",
                          "name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure",
                          "type": "ExpressionRef"
                        }
                      ]
                    }
                  ]
                }
              },
              {
                "localId": "324",
                "locator": "141:1-144:65",
                "name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "324",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "323",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "318",
                                  "s": [
                                    {
                                      "r": "317",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "317",
                                          "s": [
                                            {
                                              "r": "315",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n    union "
                                              ]
                                            },
                                            {
                                              "r": "316",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"No VTE Prophylaxis Device Applied or Ordered\""
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NoVTEProphylaxis"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "322",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "322",
                                  "s": [
                                    {
                                      "r": "320",
                                      "s": [
                                        {
                                          "r": "319",
                                          "s": [
                                            {
                                              "value": [
                                                "NoVTEProphylaxis"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "320",
                                          "s": [
                                            {
                                              "value": [
                                                "negationRationale"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " in "
                                      ]
                                    },
                                    {
                                      "r": "321",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Patient Refusal\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "323",
                  "locator": "142:3-144:65",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "318",
                      "locator": "142:3-143:75",
                      "alias": "NoVTEProphylaxis",
                      "expression": {
                        "localId": "317",
                        "locator": "142:3-143:58",
                        "type": "Union",
                        "operand": [
                          {
                            "type": "As",
                            "operand": {
                              "localId": "315",
                              "locator": "142:5-142:59",
                              "name": "No VTE Prophylaxis Medication Administered or Ordered",
                              "type": "ExpressionRef"
                            },
                            "asTypeSpecifier": {
                              "type": "ListTypeSpecifier",
                              "elementType": {
                                "type": "ChoiceTypeSpecifier",
                                "choice": [
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                    "type": "NamedTypeSpecifier"
                                  }
                                ]
                              }
                            }
                          },
                          {
                            "type": "As",
                            "operand": {
                              "localId": "316",
                              "locator": "143:11-143:56",
                              "name": "No VTE Prophylaxis Device Applied or Ordered",
                              "type": "ExpressionRef"
                            },
                            "asTypeSpecifier": {
                              "type": "ListTypeSpecifier",
                              "elementType": {
                                "type": "ChoiceTypeSpecifier",
                                "choice": [
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationAdministered",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeMedicationOrder",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeDeviceOrder",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}NegativeProcedurePerformed",
                                    "type": "NamedTypeSpecifier"
                                  }
                                ]
                              }
                            }
                          }
                        ]
                      }
                    }
                  ],
                  "relationship": [],
                  "where": {
                    "localId": "322",
                    "locator": "144:5-144:65",
                    "type": "InValueSet",
                    "code": {
                      "localId": "320",
                      "locator": "144:11-144:44",
                      "path": "negationRationale",
                      "scope": "NoVTEProphylaxis",
                      "type": "Property"
                    },
                    "valueset": {
                      "localId": "321",
                      "locator": "144:49-144:65",
                      "name": "Patient Refusal",
                      "type": "ValueSetRef"
                    }
                  }
                }
              },
              {
                "localId": "335",
                "locator": "109:1-112:136",
                "name": "No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "335",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "334",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "314",
                                  "s": [
                                    {
                                      "r": "313",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "333",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "326",
                                  "s": [
                                    {
                                      "r": "325",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "PatientRefusal"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n      such that "
                                  ]
                                },
                                {
                                  "r": "332",
                                  "s": [
                                    {
                                      "r": "328",
                                      "s": [
                                        {
                                          "r": "327",
                                          "s": [
                                            {
                                              "value": [
                                                "PatientRefusal"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "328",
                                          "s": [
                                            {
                                              "value": [
                                                "authorDatetime"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "r": "332",
                                      "value": [
                                        " ",
                                        "during",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "331",
                                      "s": [
                                        {
                                          "r": "329",
                                          "s": [
                                            {
                                              "value": [
                                                "VTEICU"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "331",
                                          "s": [
                                            {
                                              "value": [
                                                "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"",
                                                " ( "
                                              ]
                                            },
                                            {
                                              "r": "330",
                                              "s": [
                                                {
                                                  "value": [
                                                    "QualifyingEncounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " )"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "334",
                  "locator": "110:3-112:136",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "314",
                      "locator": "110:3-110:100",
                      "alias": "QualifyingEncounter",
                      "expression": {
                        "localId": "313",
                        "locator": "110:3-110:80",
                        "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "333",
                      "locator": "111:5-112:136",
                      "alias": "PatientRefusal",
                      "type": "With",
                      "expression": {
                        "localId": "325",
                        "locator": "111:10-111:73",
                        "name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "332",
                        "locator": "112:17-112:136",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "328",
                            "locator": "112:17-112:45",
                            "path": "authorDatetime",
                            "scope": "PatientRefusal",
                            "type": "Property"
                          },
                          {
                            "localId": "331",
                            "locator": "112:54-112:136",
                            "name": "FromDayOfStartOfHospitalizationToDayAfterAdmission",
                            "libraryName": "VTEICU",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "330",
                                "locator": "112:116-112:134",
                                "name": "QualifyingEncounter",
                                "type": "AliasRef"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "362",
                "locator": "114:1-122:30",
                "name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "362",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "361",
                          "s": [
                            {
                              "s": [
                                {
                                  "value": [
                                    "from\n    "
                                  ]
                                },
                                {
                                  "r": "338",
                                  "s": [
                                    {
                                      "r": "337",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ",\n    "
                                  ]
                                },
                                {
                                  "r": "340",
                                  "s": [
                                    {
                                      "r": "339",
                                      "s": [
                                        {
                                          "r": "339",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Procedure, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"General or Neuraxial Anesthesia\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "AnesthesiaProcedure"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ",\n    "
                                  ]
                                },
                                {
                                  "r": "342",
                                  "s": [
                                    {
                                      "r": "341",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "PatientRefusal"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "358",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "358",
                                  "s": [
                                    {
                                      "r": "349",
                                      "s": [
                                        {
                                          "r": "344",
                                          "s": [
                                            {
                                              "r": "343",
                                              "s": [
                                                {
                                                  "value": [
                                                    "AnesthesiaProcedure"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "344",
                                              "s": [
                                                {
                                                  "value": [
                                                    "relevantPeriod"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "349",
                                          "s": [
                                            {
                                              "value": [
                                                "ends "
                                              ]
                                            },
                                            {
                                              "r": "348",
                                              "s": [
                                                {
                                                  "value": [
                                                    "1 ",
                                                    "day"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " after day of"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "347",
                                          "s": [
                                            {
                                              "value": [
                                                "start of "
                                              ]
                                            },
                                            {
                                              "r": "346",
                                              "s": [
                                                {
                                                  "r": "345",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "QualifyingEncounter"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "346",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      and "
                                      ]
                                    },
                                    {
                                      "r": "357",
                                      "s": [
                                        {
                                          "r": "351",
                                          "s": [
                                            {
                                              "r": "350",
                                              "s": [
                                                {
                                                  "value": [
                                                    "PatientRefusal"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "351",
                                              "s": [
                                                {
                                                  "value": [
                                                    "authorDatetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "r": "357",
                                          "value": [
                                            " ",
                                            "during",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "356",
                                          "s": [
                                            {
                                              "r": "352",
                                              "s": [
                                                {
                                                  "value": [
                                                    "VTEICU"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "356",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"CalendarDayOfOrDayAfter\"",
                                                    " ( \n      "
                                                  ]
                                                },
                                                {
                                                  "r": "355",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "end of "
                                                      ]
                                                    },
                                                    {
                                                      "r": "354",
                                                      "s": [
                                                        {
                                                          "r": "353",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "AnesthesiaProcedure"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "354",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "relevantPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "360",
                              "s": [
                                {
                                  "value": [
                                    "return "
                                  ]
                                },
                                {
                                  "r": "359",
                                  "s": [
                                    {
                                      "value": [
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "361",
                  "locator": "115:3-122:30",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "338",
                      "locator": "116:5-116:102",
                      "alias": "QualifyingEncounter",
                      "expression": {
                        "localId": "337",
                        "locator": "116:5-116:82",
                        "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                        "type": "ExpressionRef"
                      }
                    },
                    {
                      "localId": "340",
                      "locator": "117:5-117:83",
                      "alias": "AnesthesiaProcedure",
                      "expression": {
                        "localId": "339",
                        "locator": "117:5-117:63",
                        "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                        "templateId": "PositiveProcedurePerformed",
                        "codeProperty": "code",
                        "codeComparator": "in",
                        "type": "Retrieve",
                        "codes": {
                          "locator": "117:30-117:62",
                          "name": "General or Neuraxial Anesthesia",
                          "type": "ValueSetRef"
                        }
                      }
                    },
                    {
                      "localId": "342",
                      "locator": "118:5-118:83",
                      "alias": "PatientRefusal",
                      "expression": {
                        "localId": "341",
                        "locator": "118:5-118:68",
                        "name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [],
                  "where": {
                    "localId": "358",
                    "locator": "119:5-121:49",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "349",
                        "locator": "119:11-119:112",
                        "precision": "Day",
                        "type": "SameAs",
                        "operand": [
                          {
                            "locator": "119:46-119:49",
                            "type": "End",
                            "operand": {
                              "localId": "344",
                              "locator": "119:11-119:44",
                              "path": "relevantPeriod",
                              "scope": "AnesthesiaProcedure",
                              "type": "Property"
                            }
                          },
                          {
                            "locator": "119:70-119:112",
                            "type": "Add",
                            "operand": [
                              {
                                "localId": "347",
                                "locator": "119:70-119:112",
                                "type": "Start",
                                "operand": {
                                  "localId": "346",
                                  "locator": "119:79-119:112",
                                  "path": "relevantPeriod",
                                  "scope": "QualifyingEncounter",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "348",
                                "locator": "119:51-119:55",
                                "value": 1,
                                "unit": "day",
                                "type": "Quantity"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "localId": "357",
                        "locator": "120:11-121:49",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "351",
                            "locator": "120:11-120:39",
                            "path": "authorDatetime",
                            "scope": "PatientRefusal",
                            "type": "Property"
                          },
                          {
                            "localId": "356",
                            "locator": "120:48-121:49",
                            "name": "CalendarDayOfOrDayAfter",
                            "libraryName": "VTEICU",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "355",
                                "locator": "121:7-121:47",
                                "type": "End",
                                "operand": {
                                  "localId": "354",
                                  "locator": "121:14-121:47",
                                  "path": "relevantPeriod",
                                  "scope": "AnesthesiaProcedure",
                                  "type": "Property"
                                }
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  "return": {
                    "localId": "360",
                    "locator": "122:5-122:30",
                    "expression": {
                      "localId": "359",
                      "locator": "122:12-122:30",
                      "name": "QualifyingEncounter",
                      "type": "AliasRef"
                    }
                  }
                }
              },
              {
                "localId": "365",
                "locator": "77:1-79:86",
                "name": "Encounter With No VTE Prophylaxis Due to Patient Refusal",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "365",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Encounter With No VTE Prophylaxis Due to Patient Refusal\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "364",
                          "s": [
                            {
                              "r": "336",
                              "s": [
                                {
                                  "value": [
                                    "\"No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "363",
                              "s": [
                                {
                                  "value": [
                                    "\"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\""
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "364",
                  "locator": "78:3-79:86",
                  "type": "Union",
                  "operand": [
                    {
                      "localId": "336",
                      "locator": "78:3-78:105",
                      "name": "No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission",
                      "type": "ExpressionRef"
                    },
                    {
                      "localId": "363",
                      "locator": "79:11-79:86",
                      "name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              },
              {
                "localId": "367",
                "locator": "146:1-147:51",
                "name": "SDE Ethnicity",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "367",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"SDE Ethnicity\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "366",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Ethnicity\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Ethnicity\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "366",
                  "locator": "147:3-147:51",
                  "dataType": "{urn:healthit-gov:qdm:v5_6}PatientCharacteristicEthnicity",
                  "codeProperty": "code",
                  "codeComparator": "in",
                  "type": "Retrieve",
                  "codes": {
                    "locator": "147:40-147:50",
                    "name": "Ethnicity",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "369",
                "locator": "149:1-150:43",
                "name": "SDE Payer",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "369",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"SDE Payer\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "368",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Payer\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Payer\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "368",
                  "locator": "150:3-150:43",
                  "dataType": "{urn:healthit-gov:qdm:v5_6}PatientCharacteristicPayer",
                  "codeProperty": "code",
                  "codeComparator": "in",
                  "type": "Retrieve",
                  "codes": {
                    "locator": "150:36-150:42",
                    "name": "Payer",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "371",
                "locator": "152:1-153:41",
                "name": "SDE Race",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "371",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"SDE Race\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "370",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Race\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Race\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "370",
                  "locator": "153:3-153:41",
                  "dataType": "{urn:healthit-gov:qdm:v5_6}PatientCharacteristicRace",
                  "codeProperty": "code",
                  "codeComparator": "in",
                  "type": "Retrieve",
                  "codes": {
                    "locator": "153:35-153:40",
                    "name": "Race",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "373",
                "locator": "155:1-156:58",
                "name": "SDE Sex",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "373",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"SDE Sex\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "372",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Sex\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"ONC Administrative Sex\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "372",
                  "locator": "156:3-156:58",
                  "dataType": "{urn:healthit-gov:qdm:v5_6}PatientCharacteristicSex",
                  "codeProperty": "code",
                  "codeComparator": "in",
                  "type": "Retrieve",
                  "codes": {
                    "locator": "156:34-156:57",
                    "name": "ONC Administrative Sex",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "388",
                "locator": "158:1-163:47",
                "name": "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "388",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "387",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "375",
                                  "s": [
                                    {
                                      "r": "374",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "QualifyingEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "386",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "379",
                                  "s": [
                                    {
                                      "r": "378",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "378",
                                          "s": [
                                            {
                                              "r": "376",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Procedure, Performed\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Hip Replacement Surgery\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n      union "
                                              ]
                                            },
                                            {
                                              "r": "377",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Procedure, Performed\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Knee Replacement Surgery\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "HipKneeProcedure"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n      such that "
                                  ]
                                },
                                {
                                  "r": "385",
                                  "s": [
                                    {
                                      "r": "381",
                                      "s": [
                                        {
                                          "r": "380",
                                          "s": [
                                            {
                                              "value": [
                                                "HipKneeProcedure"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "381",
                                          "s": [
                                            {
                                              "value": [
                                                "relevantPeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "r": "385",
                                      "value": [
                                        " ",
                                        "starts on or before",
                                        " \n      "
                                      ]
                                    },
                                    {
                                      "r": "384",
                                      "s": [
                                        {
                                          "value": [
                                            "end of "
                                          ]
                                        },
                                        {
                                          "r": "383",
                                          "s": [
                                            {
                                              "r": "382",
                                              "s": [
                                                {
                                                  "value": [
                                                    "QualifyingEncounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "383",
                                              "s": [
                                                {
                                                  "value": [
                                                    "relevantPeriod"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "387",
                  "locator": "159:3-163:47",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "375",
                      "locator": "159:3-159:100",
                      "alias": "QualifyingEncounter",
                      "expression": {
                        "localId": "374",
                        "locator": "159:3-159:80",
                        "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "386",
                      "locator": "160:5-163:47",
                      "alias": "HipKneeProcedure",
                      "type": "With",
                      "expression": {
                        "localId": "378",
                        "locator": "160:10-161:66",
                        "type": "Union",
                        "operand": [
                          {
                            "localId": "376",
                            "locator": "160:12-160:62",
                            "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                            "templateId": "PositiveProcedurePerformed",
                            "codeProperty": "code",
                            "codeComparator": "in",
                            "type": "Retrieve",
                            "codes": {
                              "locator": "160:37-160:61",
                              "name": "Hip Replacement Surgery",
                              "type": "ValueSetRef"
                            }
                          },
                          {
                            "localId": "377",
                            "locator": "161:13-161:64",
                            "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                            "templateId": "PositiveProcedurePerformed",
                            "codeProperty": "code",
                            "codeComparator": "in",
                            "type": "Retrieve",
                            "codes": {
                              "locator": "161:38-161:63",
                              "name": "Knee Replacement Surgery",
                              "type": "ValueSetRef"
                            }
                          }
                        ]
                      },
                      "suchThat": {
                        "localId": "385",
                        "locator": "162:17-163:47",
                        "type": "SameOrBefore",
                        "operand": [
                          {
                            "locator": "162:49-162:54",
                            "type": "Start",
                            "operand": {
                              "localId": "381",
                              "locator": "162:17-162:47",
                              "path": "relevantPeriod",
                              "scope": "HipKneeProcedure",
                              "type": "Property"
                            }
                          },
                          {
                            "localId": "384",
                            "locator": "163:7-163:47",
                            "type": "End",
                            "operand": {
                              "localId": "383",
                              "locator": "163:14-163:47",
                              "path": "relevantPeriod",
                              "scope": "QualifyingEncounter",
                              "type": "Property"
                            }
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "412",
                "locator": "192:1-202:75",
                "name": "VTE Prophylaxis by Medication Administered or Device Applied",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "412",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"VTE Prophylaxis by Medication Administered or Device Applied\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "411",
                          "s": [
                            {
                              "r": "409",
                              "s": [
                                {
                                  "r": "407",
                                  "s": [
                                    {
                                      "r": "405",
                                      "s": [
                                        {
                                          "r": "403",
                                          "s": [
                                            {
                                              "r": "401",
                                              "s": [
                                                {
                                                  "r": "399",
                                                  "s": [
                                                    {
                                                      "r": "397",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "( "
                                                          ]
                                                        },
                                                        {
                                                          "r": "397",
                                                          "s": [
                                                            {
                                                              "s": [
                                                                {
                                                                  "r": "392",
                                                                  "s": [
                                                                    {
                                                                      "r": "391",
                                                                      "s": [
                                                                        {
                                                                          "r": "391",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "[",
                                                                                "\"Medication, Administered\"",
                                                                                ": "
                                                                              ]
                                                                            },
                                                                            {
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "\"Low Dose Unfractionated Heparin for VTE Prophylaxis\""
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                "]"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " ",
                                                                        "VTEMedication"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\n      "
                                                              ]
                                                            },
                                                            {
                                                              "r": "396",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "where "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "396",
                                                                  "s": [
                                                                    {
                                                                      "r": "394",
                                                                      "s": [
                                                                        {
                                                                          "r": "393",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "VTEMedication"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "."
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "394",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "route"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " in "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "395",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "\"Subcutaneous route\""
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n  )"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n    union "
                                                      ]
                                                    },
                                                    {
                                                      "r": "398",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "[",
                                                            "\"Medication, Administered\"",
                                                            ": "
                                                          ]
                                                        },
                                                        {
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Low Molecular Weight Heparin for VTE Prophylaxis\""
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "]"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n    union "
                                                  ]
                                                },
                                                {
                                                  "r": "400",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Medication, Administered\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Injectable Factor Xa Inhibitor for VTE Prophylaxis\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n    union "
                                              ]
                                            },
                                            {
                                              "r": "402",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Medication, Administered\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Warfarin\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n    union "
                                          ]
                                        },
                                        {
                                          "r": "404",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Medication, Administered\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Rivaroxaban and Betrixaban for VTE Prophylaxis\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n    union "
                                      ]
                                    },
                                    {
                                      "r": "406",
                                      "s": [
                                        {
                                          "value": [
                                            "[",
                                            "\"Procedure, Performed\"",
                                            ": "
                                          ]
                                        },
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Intermittent pneumatic compression devices (IPC)\""
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "]"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    union "
                                  ]
                                },
                                {
                                  "r": "408",
                                  "s": [
                                    {
                                      "value": [
                                        "[",
                                        "\"Procedure, Performed\"",
                                        ": "
                                      ]
                                    },
                                    {
                                      "s": [
                                        {
                                          "value": [
                                            "\"Venous foot pumps (VFP)\""
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "]"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "410",
                              "s": [
                                {
                                  "value": [
                                    "[",
                                    "\"Procedure, Performed\"",
                                    ": "
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "\"Graduated compression stockings (GCS)\""
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "]"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "411",
                  "locator": "193:3-202:75",
                  "type": "Union",
                  "operand": [
                    {
                      "type": "As",
                      "operand": {
                        "localId": "409",
                        "locator": "193:3-201:61",
                        "type": "Union",
                        "operand": [
                          {
                            "type": "As",
                            "operand": {
                              "localId": "407",
                              "locator": "193:3-200:86",
                              "type": "Union",
                              "operand": [
                                {
                                  "type": "As",
                                  "operand": {
                                    "localId": "403",
                                    "locator": "193:3-198:50",
                                    "type": "Union",
                                    "operand": [
                                      {
                                        "localId": "399",
                                        "locator": "193:3-196:90",
                                        "type": "Union",
                                        "operand": [
                                          {
                                            "localId": "397",
                                            "locator": "193:3-195:3",
                                            "type": "Query",
                                            "source": [
                                              {
                                                "localId": "392",
                                                "locator": "193:5-193:101",
                                                "alias": "VTEMedication",
                                                "expression": {
                                                  "localId": "391",
                                                  "locator": "193:5-193:87",
                                                  "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                                  "templateId": "PositiveMedicationAdministered",
                                                  "codeProperty": "code",
                                                  "codeComparator": "in",
                                                  "type": "Retrieve",
                                                  "codes": {
                                                    "locator": "193:34-193:86",
                                                    "name": "Low Dose Unfractionated Heparin for VTE Prophylaxis",
                                                    "type": "ValueSetRef"
                                                  }
                                                }
                                              }
                                            ],
                                            "relationship": [],
                                            "where": {
                                              "localId": "396",
                                              "locator": "194:7-194:55",
                                              "type": "InValueSet",
                                              "code": {
                                                "localId": "394",
                                                "locator": "194:13-194:31",
                                                "path": "route",
                                                "scope": "VTEMedication",
                                                "type": "Property"
                                              },
                                              "valueset": {
                                                "localId": "395",
                                                "locator": "194:36-194:55",
                                                "name": "Subcutaneous route",
                                                "type": "ValueSetRef"
                                              }
                                            }
                                          },
                                          {
                                            "localId": "398",
                                            "locator": "196:11-196:90",
                                            "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                            "templateId": "PositiveMedicationAdministered",
                                            "codeProperty": "code",
                                            "codeComparator": "in",
                                            "type": "Retrieve",
                                            "codes": {
                                              "locator": "196:40-196:89",
                                              "name": "Low Molecular Weight Heparin for VTE Prophylaxis",
                                              "type": "ValueSetRef"
                                            }
                                          }
                                        ]
                                      },
                                      {
                                        "type": "Union",
                                        "operand": [
                                          {
                                            "localId": "400",
                                            "locator": "197:11-197:92",
                                            "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                            "templateId": "PositiveMedicationAdministered",
                                            "codeProperty": "code",
                                            "codeComparator": "in",
                                            "type": "Retrieve",
                                            "codes": {
                                              "locator": "197:40-197:91",
                                              "name": "Injectable Factor Xa Inhibitor for VTE Prophylaxis",
                                              "type": "ValueSetRef"
                                            }
                                          },
                                          {
                                            "localId": "402",
                                            "locator": "198:11-198:50",
                                            "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                            "templateId": "PositiveMedicationAdministered",
                                            "codeProperty": "code",
                                            "codeComparator": "in",
                                            "type": "Retrieve",
                                            "codes": {
                                              "locator": "198:40-198:49",
                                              "name": "Warfarin",
                                              "type": "ValueSetRef"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  "asTypeSpecifier": {
                                    "type": "ListTypeSpecifier",
                                    "elementType": {
                                      "type": "ChoiceTypeSpecifier",
                                      "choice": [
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                                          "type": "NamedTypeSpecifier"
                                        },
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                          "type": "NamedTypeSpecifier"
                                        }
                                      ]
                                    }
                                  }
                                },
                                {
                                  "type": "As",
                                  "operand": {
                                    "type": "Union",
                                    "operand": [
                                      {
                                        "type": "As",
                                        "operand": {
                                          "localId": "404",
                                          "locator": "199:11-199:88",
                                          "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                          "templateId": "PositiveMedicationAdministered",
                                          "codeProperty": "code",
                                          "codeComparator": "in",
                                          "type": "Retrieve",
                                          "codes": {
                                            "locator": "199:40-199:87",
                                            "name": "Rivaroxaban and Betrixaban for VTE Prophylaxis",
                                            "type": "ValueSetRef"
                                          }
                                        },
                                        "asTypeSpecifier": {
                                          "type": "ListTypeSpecifier",
                                          "elementType": {
                                            "type": "ChoiceTypeSpecifier",
                                            "choice": [
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                                                "type": "NamedTypeSpecifier"
                                              },
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                                "type": "NamedTypeSpecifier"
                                              }
                                            ]
                                          }
                                        }
                                      },
                                      {
                                        "type": "As",
                                        "operand": {
                                          "localId": "406",
                                          "locator": "200:11-200:86",
                                          "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                                          "templateId": "PositiveProcedurePerformed",
                                          "codeProperty": "code",
                                          "codeComparator": "in",
                                          "type": "Retrieve",
                                          "codes": {
                                            "locator": "200:36-200:85",
                                            "name": "Intermittent pneumatic compression devices (IPC)",
                                            "type": "ValueSetRef"
                                          }
                                        },
                                        "asTypeSpecifier": {
                                          "type": "ListTypeSpecifier",
                                          "elementType": {
                                            "type": "ChoiceTypeSpecifier",
                                            "choice": [
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                                                "type": "NamedTypeSpecifier"
                                              },
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                                "type": "NamedTypeSpecifier"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    ]
                                  },
                                  "asTypeSpecifier": {
                                    "type": "ListTypeSpecifier",
                                    "elementType": {
                                      "type": "ChoiceTypeSpecifier",
                                      "choice": [
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                                          "type": "NamedTypeSpecifier"
                                        },
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                          "type": "NamedTypeSpecifier"
                                        }
                                      ]
                                    }
                                  }
                                }
                              ]
                            },
                            "asTypeSpecifier": {
                              "type": "ListTypeSpecifier",
                              "elementType": {
                                "type": "ChoiceTypeSpecifier",
                                "choice": [
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                    "type": "NamedTypeSpecifier"
                                  }
                                ]
                              }
                            }
                          },
                          {
                            "type": "As",
                            "operand": {
                              "localId": "408",
                              "locator": "201:11-201:61",
                              "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                              "templateId": "PositiveProcedurePerformed",
                              "codeProperty": "code",
                              "codeComparator": "in",
                              "type": "Retrieve",
                              "codes": {
                                "locator": "201:36-201:60",
                                "name": "Venous foot pumps (VFP)",
                                "type": "ValueSetRef"
                              }
                            },
                            "asTypeSpecifier": {
                              "type": "ListTypeSpecifier",
                              "elementType": {
                                "type": "ChoiceTypeSpecifier",
                                "choice": [
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                                    "type": "NamedTypeSpecifier"
                                  }
                                ]
                              }
                            }
                          }
                        ]
                      },
                      "asTypeSpecifier": {
                        "type": "ListTypeSpecifier",
                        "elementType": {
                          "type": "ChoiceTypeSpecifier",
                          "choice": [
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                              "type": "NamedTypeSpecifier"
                            },
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                              "type": "NamedTypeSpecifier"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "type": "As",
                      "operand": {
                        "localId": "410",
                        "locator": "202:11-202:75",
                        "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                        "templateId": "PositiveProcedurePerformed",
                        "codeProperty": "code",
                        "codeComparator": "in",
                        "type": "Retrieve",
                        "codes": {
                          "locator": "202:36-202:74",
                          "name": "Graduated compression stockings (GCS)",
                          "type": "ValueSetRef"
                        }
                      },
                      "asTypeSpecifier": {
                        "type": "ListTypeSpecifier",
                        "elementType": {
                          "type": "ChoiceTypeSpecifier",
                          "choice": [
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                              "type": "NamedTypeSpecifier"
                            },
                            {
                              "name": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                              "type": "NamedTypeSpecifier"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              },
              {
                "localId": "449",
                "locator": "204:1-217:5",
                "name": "Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "449",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "448",
                          "s": [
                            {
                              "r": "422",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "422",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "390",
                                          "s": [
                                            {
                                              "r": "389",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "QualifyingEncounter"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      "
                                      ]
                                    },
                                    {
                                      "r": "421",
                                      "s": [
                                        {
                                          "value": [
                                            "with "
                                          ]
                                        },
                                        {
                                          "r": "414",
                                          "s": [
                                            {
                                              "r": "413",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"VTE Prophylaxis by Medication Administered or Device Applied\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "VTEProphylaxis"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n        such that "
                                          ]
                                        },
                                        {
                                          "r": "420",
                                          "s": [
                                            {
                                              "r": "416",
                                              "s": [
                                                {
                                                  "r": "415",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "VTEProphylaxis"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "416",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "r": "420",
                                              "value": [
                                                " ",
                                                "starts during",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "419",
                                              "s": [
                                                {
                                                  "r": "417",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "VTEICU"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "419",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"",
                                                        " ( "
                                                      ]
                                                    },
                                                    {
                                                      "r": "418",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "QualifyingEncounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " )"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  )"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "447",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "447",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "value": [
                                            "from\n        "
                                          ]
                                        },
                                        {
                                          "r": "424",
                                          "s": [
                                            {
                                              "r": "423",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "QualifyingEncounter"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ",\n        "
                                          ]
                                        },
                                        {
                                          "r": "426",
                                          "s": [
                                            {
                                              "r": "425",
                                              "s": [
                                                {
                                                  "r": "425",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Procedure, Performed\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"General or Neuraxial Anesthesia\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "AnesthesiaProcedure"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ",\n        "
                                          ]
                                        },
                                        {
                                          "r": "428",
                                          "s": [
                                            {
                                              "r": "427",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"VTE Prophylaxis by Medication Administered or Device Applied\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "VTEProphylaxis"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n        "
                                      ]
                                    },
                                    {
                                      "r": "444",
                                      "s": [
                                        {
                                          "value": [
                                            "where "
                                          ]
                                        },
                                        {
                                          "r": "444",
                                          "s": [
                                            {
                                              "r": "435",
                                              "s": [
                                                {
                                                  "r": "430",
                                                  "s": [
                                                    {
                                                      "r": "429",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "AnesthesiaProcedure"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "430",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " "
                                                  ]
                                                },
                                                {
                                                  "r": "435",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "ends "
                                                      ]
                                                    },
                                                    {
                                                      "r": "434",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "1 ",
                                                            "day"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " after day of"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " "
                                                  ]
                                                },
                                                {
                                                  "r": "433",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "start of "
                                                      ]
                                                    },
                                                    {
                                                      "r": "432",
                                                      "s": [
                                                        {
                                                          "r": "431",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "QualifyingEncounter"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "432",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "relevantPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n          and "
                                              ]
                                            },
                                            {
                                              "r": "443",
                                              "s": [
                                                {
                                                  "r": "437",
                                                  "s": [
                                                    {
                                                      "r": "436",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "VTEProphylaxis"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "437",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "r": "443",
                                                  "value": [
                                                    " ",
                                                    "starts during",
                                                    " "
                                                  ]
                                                },
                                                {
                                                  "r": "442",
                                                  "s": [
                                                    {
                                                      "r": "438",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "VTEICU"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "442",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"CalendarDayOfOrDayAfter\"",
                                                            " ( \n          "
                                                          ]
                                                        },
                                                        {
                                                          "r": "441",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "end of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "440",
                                                              "s": [
                                                                {
                                                                  "r": "439",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "AnesthesiaProcedure"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "440",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "relevantPeriod"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " )"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n        "
                                      ]
                                    },
                                    {
                                      "r": "446",
                                      "s": [
                                        {
                                          "value": [
                                            "return "
                                          ]
                                        },
                                        {
                                          "r": "445",
                                          "s": [
                                            {
                                              "value": [
                                                "QualifyingEncounter"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    )"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "448",
                  "locator": "205:3-217:5",
                  "type": "Union",
                  "operand": [
                    {
                      "localId": "422",
                      "locator": "205:3-208:3",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "390",
                          "locator": "205:5-205:102",
                          "alias": "QualifyingEncounter",
                          "expression": {
                            "localId": "389",
                            "locator": "205:5-205:82",
                            "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                            "type": "ExpressionRef"
                          }
                        }
                      ],
                      "relationship": [
                        {
                          "localId": "421",
                          "locator": "206:7-207:145",
                          "alias": "VTEProphylaxis",
                          "type": "With",
                          "expression": {
                            "localId": "413",
                            "locator": "206:12-206:73",
                            "name": "VTE Prophylaxis by Medication Administered or Device Applied",
                            "type": "ExpressionRef"
                          },
                          "suchThat": {
                            "localId": "420",
                            "locator": "207:19-207:145",
                            "type": "In",
                            "operand": [
                              {
                                "locator": "207:49-207:54",
                                "type": "Start",
                                "operand": {
                                  "localId": "416",
                                  "locator": "207:19-207:47",
                                  "path": "relevantPeriod",
                                  "scope": "VTEProphylaxis",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "419",
                                "locator": "207:63-207:145",
                                "name": "FromDayOfStartOfHospitalizationToDayAfterAdmission",
                                "libraryName": "VTEICU",
                                "type": "FunctionRef",
                                "operand": [
                                  {
                                    "localId": "418",
                                    "locator": "207:125-207:143",
                                    "name": "QualifyingEncounter",
                                    "type": "AliasRef"
                                  }
                                ]
                              }
                            ]
                          }
                        }
                      ]
                    },
                    {
                      "localId": "447",
                      "locator": "209:11-217:5",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "424",
                          "locator": "210:9-210:106",
                          "alias": "QualifyingEncounter",
                          "expression": {
                            "localId": "423",
                            "locator": "210:9-210:86",
                            "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                            "type": "ExpressionRef"
                          }
                        },
                        {
                          "localId": "426",
                          "locator": "211:9-211:87",
                          "alias": "AnesthesiaProcedure",
                          "expression": {
                            "localId": "425",
                            "locator": "211:9-211:67",
                            "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                            "templateId": "PositiveProcedurePerformed",
                            "codeProperty": "code",
                            "codeComparator": "in",
                            "type": "Retrieve",
                            "codes": {
                              "locator": "211:34-211:66",
                              "name": "General or Neuraxial Anesthesia",
                              "type": "ValueSetRef"
                            }
                          }
                        },
                        {
                          "localId": "428",
                          "locator": "212:9-212:85",
                          "alias": "VTEProphylaxis",
                          "expression": {
                            "localId": "427",
                            "locator": "212:9-212:70",
                            "name": "VTE Prophylaxis by Medication Administered or Device Applied",
                            "type": "ExpressionRef"
                          }
                        }
                      ],
                      "relationship": [],
                      "where": {
                        "localId": "444",
                        "locator": "213:9-215:53",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "435",
                            "locator": "213:15-213:116",
                            "precision": "Day",
                            "type": "SameAs",
                            "operand": [
                              {
                                "locator": "213:50-213:53",
                                "type": "End",
                                "operand": {
                                  "localId": "430",
                                  "locator": "213:15-213:48",
                                  "path": "relevantPeriod",
                                  "scope": "AnesthesiaProcedure",
                                  "type": "Property"
                                }
                              },
                              {
                                "locator": "213:74-213:116",
                                "type": "Add",
                                "operand": [
                                  {
                                    "localId": "433",
                                    "locator": "213:74-213:116",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "432",
                                      "locator": "213:83-213:116",
                                      "path": "relevantPeriod",
                                      "scope": "QualifyingEncounter",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "434",
                                    "locator": "213:55-213:59",
                                    "value": 1,
                                    "unit": "day",
                                    "type": "Quantity"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "443",
                            "locator": "214:15-215:53",
                            "type": "In",
                            "operand": [
                              {
                                "locator": "214:45-214:50",
                                "type": "Start",
                                "operand": {
                                  "localId": "437",
                                  "locator": "214:15-214:43",
                                  "path": "relevantPeriod",
                                  "scope": "VTEProphylaxis",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "442",
                                "locator": "214:59-215:53",
                                "name": "CalendarDayOfOrDayAfter",
                                "libraryName": "VTEICU",
                                "type": "FunctionRef",
                                "operand": [
                                  {
                                    "localId": "441",
                                    "locator": "215:11-215:51",
                                    "type": "End",
                                    "operand": {
                                      "localId": "440",
                                      "locator": "215:18-215:51",
                                      "path": "relevantPeriod",
                                      "scope": "AnesthesiaProcedure",
                                      "type": "Property"
                                    }
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      },
                      "return": {
                        "localId": "446",
                        "locator": "216:9-216:34",
                        "expression": {
                          "localId": "445",
                          "locator": "216:16-216:34",
                          "name": "QualifyingEncounter",
                          "type": "AliasRef"
                        }
                      }
                    }
                  ]
                }
              },
              {
                "localId": "491",
                "locator": "219:1-232:5",
                "name": "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "491",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "490",
                          "s": [
                            {
                              "r": "464",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "464",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "452",
                                          "s": [
                                            {
                                              "r": "451",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "QualifyingEncounter"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      "
                                      ]
                                    },
                                    {
                                      "r": "463",
                                      "s": [
                                        {
                                          "value": [
                                            "with "
                                          ]
                                        },
                                        {
                                          "r": "454",
                                          "s": [
                                            {
                                              "r": "453",
                                              "s": [
                                                {
                                                  "r": "453",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Medication, Administered\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "FactorXaMedication"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n        such that "
                                          ]
                                        },
                                        {
                                          "r": "462",
                                          "s": [
                                            {
                                              "r": "456",
                                              "s": [
                                                {
                                                  "r": "455",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "FactorXaMedication"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "456",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "r": "462",
                                              "value": [
                                                " ",
                                                "starts during",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "461",
                                              "s": [
                                                {
                                                  "r": "457",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "VTEICU"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "461",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"CalendarDayOfOrDayAfter\"",
                                                        " ( "
                                                      ]
                                                    },
                                                    {
                                                      "r": "460",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "459",
                                                          "s": [
                                                            {
                                                              "r": "458",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "QualifyingEncounter"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "459",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " )"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  )"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "489",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "489",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "value": [
                                            "from\n        "
                                          ]
                                        },
                                        {
                                          "r": "466",
                                          "s": [
                                            {
                                              "r": "465",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "QualifyingEncounter"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ",\n        "
                                          ]
                                        },
                                        {
                                          "r": "468",
                                          "s": [
                                            {
                                              "r": "467",
                                              "s": [
                                                {
                                                  "r": "467",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Procedure, Performed\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"General or Neuraxial Anesthesia\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "AnesthesiaProcedure"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ",\n        "
                                          ]
                                        },
                                        {
                                          "r": "470",
                                          "s": [
                                            {
                                              "r": "469",
                                              "s": [
                                                {
                                                  "r": "469",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Medication, Administered\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "FactorXaMedication"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n        "
                                      ]
                                    },
                                    {
                                      "r": "486",
                                      "s": [
                                        {
                                          "value": [
                                            "where "
                                          ]
                                        },
                                        {
                                          "r": "486",
                                          "s": [
                                            {
                                              "r": "477",
                                              "s": [
                                                {
                                                  "r": "472",
                                                  "s": [
                                                    {
                                                      "r": "471",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "AnesthesiaProcedure"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "472",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " "
                                                  ]
                                                },
                                                {
                                                  "r": "477",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "ends "
                                                      ]
                                                    },
                                                    {
                                                      "r": "476",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "1 ",
                                                            "day"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " after day of"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " "
                                                  ]
                                                },
                                                {
                                                  "r": "475",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "start of "
                                                      ]
                                                    },
                                                    {
                                                      "r": "474",
                                                      "s": [
                                                        {
                                                          "r": "473",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "QualifyingEncounter"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "474",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "relevantPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n          and "
                                              ]
                                            },
                                            {
                                              "r": "485",
                                              "s": [
                                                {
                                                  "r": "479",
                                                  "s": [
                                                    {
                                                      "r": "478",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "FactorXaMedication"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "479",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "r": "485",
                                                  "value": [
                                                    " ",
                                                    "starts during",
                                                    " "
                                                  ]
                                                },
                                                {
                                                  "r": "484",
                                                  "s": [
                                                    {
                                                      "r": "480",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "VTEICU"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "484",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"CalendarDayOfOrDayAfter\"",
                                                            " ( \n          "
                                                          ]
                                                        },
                                                        {
                                                          "r": "483",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "end of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "482",
                                                              "s": [
                                                                {
                                                                  "r": "481",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "AnesthesiaProcedure"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "482",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "relevantPeriod"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " )"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n        "
                                      ]
                                    },
                                    {
                                      "r": "488",
                                      "s": [
                                        {
                                          "value": [
                                            "return "
                                          ]
                                        },
                                        {
                                          "r": "487",
                                          "s": [
                                            {
                                              "value": [
                                                "QualifyingEncounter"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    )"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "490",
                  "locator": "220:3-232:5",
                  "type": "Union",
                  "operand": [
                    {
                      "localId": "464",
                      "locator": "220:3-223:3",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "452",
                          "locator": "220:5-220:102",
                          "alias": "QualifyingEncounter",
                          "expression": {
                            "localId": "451",
                            "locator": "220:5-220:82",
                            "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                            "type": "ExpressionRef"
                          }
                        }
                      ],
                      "relationship": [
                        {
                          "localId": "463",
                          "locator": "221:7-222:146",
                          "alias": "FactorXaMedication",
                          "type": "With",
                          "expression": {
                            "localId": "453",
                            "locator": "221:12-221:104",
                            "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                            "templateId": "PositiveMedicationAdministered",
                            "codeProperty": "code",
                            "codeComparator": "in",
                            "type": "Retrieve",
                            "codes": {
                              "locator": "221:41-221:103",
                              "name": "Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment",
                              "type": "ValueSetRef"
                            }
                          },
                          "suchThat": {
                            "localId": "462",
                            "locator": "222:19-222:146",
                            "type": "In",
                            "operand": [
                              {
                                "locator": "222:53-222:58",
                                "type": "Start",
                                "operand": {
                                  "localId": "456",
                                  "locator": "222:19-222:51",
                                  "path": "relevantPeriod",
                                  "scope": "FactorXaMedication",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "461",
                                "locator": "222:67-222:146",
                                "name": "CalendarDayOfOrDayAfter",
                                "libraryName": "VTEICU",
                                "type": "FunctionRef",
                                "operand": [
                                  {
                                    "localId": "460",
                                    "locator": "222:102-222:144",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "459",
                                      "locator": "222:111-222:144",
                                      "path": "relevantPeriod",
                                      "scope": "QualifyingEncounter",
                                      "type": "Property"
                                    }
                                  }
                                ]
                              }
                            ]
                          }
                        }
                      ]
                    },
                    {
                      "localId": "489",
                      "locator": "224:11-232:5",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "466",
                          "locator": "225:9-225:106",
                          "alias": "QualifyingEncounter",
                          "expression": {
                            "localId": "465",
                            "locator": "225:9-225:86",
                            "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                            "type": "ExpressionRef"
                          }
                        },
                        {
                          "localId": "468",
                          "locator": "226:9-226:87",
                          "alias": "AnesthesiaProcedure",
                          "expression": {
                            "localId": "467",
                            "locator": "226:9-226:67",
                            "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveProcedurePerformed",
                            "templateId": "PositiveProcedurePerformed",
                            "codeProperty": "code",
                            "codeComparator": "in",
                            "type": "Retrieve",
                            "codes": {
                              "locator": "226:34-226:66",
                              "name": "General or Neuraxial Anesthesia",
                              "type": "ValueSetRef"
                            }
                          }
                        },
                        {
                          "localId": "470",
                          "locator": "227:9-227:120",
                          "alias": "FactorXaMedication",
                          "expression": {
                            "localId": "469",
                            "locator": "227:9-227:101",
                            "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveMedicationAdministered",
                            "templateId": "PositiveMedicationAdministered",
                            "codeProperty": "code",
                            "codeComparator": "in",
                            "type": "Retrieve",
                            "codes": {
                              "locator": "227:38-227:100",
                              "name": "Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment",
                              "type": "ValueSetRef"
                            }
                          }
                        }
                      ],
                      "relationship": [],
                      "where": {
                        "localId": "486",
                        "locator": "228:9-230:53",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "477",
                            "locator": "228:15-228:116",
                            "precision": "Day",
                            "type": "SameAs",
                            "operand": [
                              {
                                "locator": "228:50-228:53",
                                "type": "End",
                                "operand": {
                                  "localId": "472",
                                  "locator": "228:15-228:48",
                                  "path": "relevantPeriod",
                                  "scope": "AnesthesiaProcedure",
                                  "type": "Property"
                                }
                              },
                              {
                                "locator": "228:74-228:116",
                                "type": "Add",
                                "operand": [
                                  {
                                    "localId": "475",
                                    "locator": "228:74-228:116",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "474",
                                      "locator": "228:83-228:116",
                                      "path": "relevantPeriod",
                                      "scope": "QualifyingEncounter",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "476",
                                    "locator": "228:55-228:59",
                                    "value": 1,
                                    "unit": "day",
                                    "type": "Quantity"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "485",
                            "locator": "229:15-230:53",
                            "type": "In",
                            "operand": [
                              {
                                "locator": "229:49-229:54",
                                "type": "Start",
                                "operand": {
                                  "localId": "479",
                                  "locator": "229:15-229:47",
                                  "path": "relevantPeriod",
                                  "scope": "FactorXaMedication",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "484",
                                "locator": "229:63-230:53",
                                "name": "CalendarDayOfOrDayAfter",
                                "libraryName": "VTEICU",
                                "type": "FunctionRef",
                                "operand": [
                                  {
                                    "localId": "483",
                                    "locator": "230:11-230:51",
                                    "type": "End",
                                    "operand": {
                                      "localId": "482",
                                      "locator": "230:18-230:51",
                                      "path": "relevantPeriod",
                                      "scope": "AnesthesiaProcedure",
                                      "type": "Property"
                                    }
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      },
                      "return": {
                        "localId": "488",
                        "locator": "231:9-231:34",
                        "expression": {
                          "localId": "487",
                          "locator": "231:16-231:34",
                          "name": "QualifyingEncounter",
                          "type": "AliasRef"
                        }
                      }
                    }
                  ]
                }
              },
              {
                "localId": "530",
                "locator": "176:1-190:5",
                "name": "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "530",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "529",
                          "s": [
                            {
                              "r": "516",
                              "s": [
                                {
                                  "r": "504",
                                  "s": [
                                    {
                                      "value": [
                                        "( "
                                      ]
                                    },
                                    {
                                      "r": "504",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "r": "494",
                                              "s": [
                                                {
                                                  "r": "493",
                                                  "s": [
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "QualifyingEncounter"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n      "
                                          ]
                                        },
                                        {
                                          "r": "503",
                                          "s": [
                                            {
                                              "value": [
                                                "with "
                                              ]
                                            },
                                            {
                                              "r": "496",
                                              "s": [
                                                {
                                                  "r": "495",
                                                  "s": [
                                                    {
                                                      "r": "495",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "[",
                                                            "\"Diagnosis\"",
                                                            ": "
                                                          ]
                                                        },
                                                        {
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Atrial Fibrillation/Flutter\""
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "]"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "AtrialFibrillation"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n        such that "
                                              ]
                                            },
                                            {
                                              "r": "502",
                                              "s": [
                                                {
                                                  "r": "498",
                                                  "s": [
                                                    {
                                                      "r": "497",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "AtrialFibrillation"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "498",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "prevalencePeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "r": "502",
                                                  "value": [
                                                    " ",
                                                    "starts on or before",
                                                    " \n        "
                                                  ]
                                                },
                                                {
                                                  "r": "501",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "end of "
                                                      ]
                                                    },
                                                    {
                                                      "r": "500",
                                                      "s": [
                                                        {
                                                          "r": "499",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "QualifyingEncounter"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "500",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "relevantPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n  )"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    union "
                                  ]
                                },
                                {
                                  "r": "515",
                                  "s": [
                                    {
                                      "value": [
                                        "( "
                                      ]
                                    },
                                    {
                                      "r": "515",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "r": "506",
                                              "s": [
                                                {
                                                  "r": "505",
                                                  "s": [
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "QualifyingEncounter"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n        "
                                          ]
                                        },
                                        {
                                          "r": "514",
                                          "s": [
                                            {
                                              "value": [
                                                "where "
                                              ]
                                            },
                                            {
                                              "r": "514",
                                              "s": [
                                                {
                                                  "value": [
                                                    "exists "
                                                  ]
                                                },
                                                {
                                                  "r": "513",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "( "
                                                      ]
                                                    },
                                                    {
                                                      "r": "513",
                                                      "s": [
                                                        {
                                                          "s": [
                                                            {
                                                              "r": "508",
                                                              "s": [
                                                                {
                                                                  "r": "507",
                                                                  "s": [
                                                                    {
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "QualifyingEncounter",
                                                                            ".",
                                                                            "diagnoses"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " ",
                                                                    "QualifyingEncounterDiagnoses"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n            "
                                                          ]
                                                        },
                                                        {
                                                          "r": "512",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "where "
                                                              ]
                                                            },
                                                            {
                                                              "r": "512",
                                                              "s": [
                                                                {
                                                                  "r": "510",
                                                                  "s": [
                                                                    {
                                                                      "r": "509",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "QualifyingEncounterDiagnoses"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "."
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "510",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "code"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " in "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "511",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Atrial Fibrillation/Flutter\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n        )"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n    )"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "528",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "528",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "518",
                                          "s": [
                                            {
                                              "r": "517",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "QualifyingEncounter"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n        "
                                      ]
                                    },
                                    {
                                      "r": "527",
                                      "s": [
                                        {
                                          "value": [
                                            "with "
                                          ]
                                        },
                                        {
                                          "r": "520",
                                          "s": [
                                            {
                                              "r": "519",
                                              "s": [
                                                {
                                                  "r": "519",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Diagnosis\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Venous Thromboembolism\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "VTEDiagnosis"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n          such that "
                                          ]
                                        },
                                        {
                                          "r": "526",
                                          "s": [
                                            {
                                              "r": "522",
                                              "s": [
                                                {
                                                  "r": "521",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "VTEDiagnosis"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "522",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "prevalencePeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "r": "526",
                                              "value": [
                                                " ",
                                                "starts before",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "525",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "524",
                                                  "s": [
                                                    {
                                                      "r": "523",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "QualifyingEncounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "524",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    )"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "529",
                  "locator": "177:3-190:5",
                  "type": "Union",
                  "operand": [
                    {
                      "localId": "516",
                      "locator": "177:3-186:5",
                      "type": "Union",
                      "operand": [
                        {
                          "localId": "504",
                          "locator": "177:3-181:3",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "494",
                              "locator": "177:5-177:102",
                              "alias": "QualifyingEncounter",
                              "expression": {
                                "localId": "493",
                                "locator": "177:5-177:82",
                                "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                                "type": "ExpressionRef"
                              }
                            }
                          ],
                          "relationship": [
                            {
                              "localId": "503",
                              "locator": "178:7-180:49",
                              "alias": "AtrialFibrillation",
                              "type": "With",
                              "expression": {
                                "localId": "495",
                                "locator": "178:12-178:55",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}Diagnosis",
                                "codeProperty": "code",
                                "codeComparator": "in",
                                "type": "Retrieve",
                                "codes": {
                                  "locator": "178:26-178:54",
                                  "name": "Atrial Fibrillation/Flutter",
                                  "type": "ValueSetRef"
                                }
                              },
                              "suchThat": {
                                "localId": "502",
                                "locator": "179:19-180:49",
                                "type": "SameOrBefore",
                                "operand": [
                                  {
                                    "locator": "179:55-179:60",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "498",
                                      "locator": "179:19-179:53",
                                      "path": "prevalencePeriod",
                                      "scope": "AtrialFibrillation",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "501",
                                    "locator": "180:9-180:49",
                                    "type": "End",
                                    "operand": {
                                      "localId": "500",
                                      "locator": "180:16-180:49",
                                      "path": "relevantPeriod",
                                      "scope": "QualifyingEncounter",
                                      "type": "Property"
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        },
                        {
                          "localId": "515",
                          "locator": "182:11-186:5",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "506",
                              "locator": "182:13-182:110",
                              "alias": "QualifyingEncounter",
                              "expression": {
                                "localId": "505",
                                "locator": "182:13-182:90",
                                "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                                "type": "ExpressionRef"
                              }
                            }
                          ],
                          "relationship": [],
                          "where": {
                            "localId": "514",
                            "locator": "183:9-185:9",
                            "type": "Exists",
                            "operand": {
                              "localId": "513",
                              "locator": "183:22-185:9",
                              "type": "Query",
                              "source": [
                                {
                                  "localId": "508",
                                  "locator": "183:24-183:81",
                                  "alias": "QualifyingEncounterDiagnoses",
                                  "expression": {
                                    "localId": "507",
                                    "locator": "183:24-183:52",
                                    "path": "diagnoses",
                                    "scope": "QualifyingEncounter",
                                    "type": "Property"
                                  }
                                }
                              ],
                              "relationship": [],
                              "where": {
                                "localId": "512",
                                "locator": "184:13-184:84",
                                "type": "InValueSet",
                                "code": {
                                  "localId": "510",
                                  "locator": "184:19-184:51",
                                  "path": "code",
                                  "scope": "QualifyingEncounterDiagnoses",
                                  "type": "Property"
                                },
                                "valueset": {
                                  "localId": "511",
                                  "locator": "184:56-184:84",
                                  "name": "Atrial Fibrillation/Flutter",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          }
                        }
                      ]
                    },
                    {
                      "localId": "528",
                      "locator": "187:11-190:5",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "518",
                          "locator": "187:13-187:110",
                          "alias": "QualifyingEncounter",
                          "expression": {
                            "localId": "517",
                            "locator": "187:13-187:90",
                            "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                            "type": "ExpressionRef"
                          }
                        }
                      ],
                      "relationship": [
                        {
                          "localId": "527",
                          "locator": "188:9-189:107",
                          "alias": "VTEDiagnosis",
                          "type": "With",
                          "expression": {
                            "localId": "519",
                            "locator": "188:14-188:52",
                            "dataType": "{urn:healthit-gov:qdm:v5_6}Diagnosis",
                            "codeProperty": "code",
                            "codeComparator": "in",
                            "type": "Retrieve",
                            "codes": {
                              "locator": "188:28-188:51",
                              "name": "Venous Thromboembolism",
                              "type": "ValueSetRef"
                            }
                          },
                          "suchThat": {
                            "localId": "526",
                            "locator": "189:21-189:107",
                            "type": "Before",
                            "operand": [
                              {
                                "locator": "189:51-189:56",
                                "type": "Start",
                                "operand": {
                                  "localId": "522",
                                  "locator": "189:21-189:49",
                                  "path": "prevalencePeriod",
                                  "scope": "VTEDiagnosis",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "525",
                                "locator": "189:65-189:107",
                                "type": "Start",
                                "operand": {
                                  "localId": "524",
                                  "locator": "189:74-189:107",
                                  "path": "relevantPeriod",
                                  "scope": "QualifyingEncounter",
                                  "type": "Property"
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  ]
                }
              },
              {
                "localId": "542",
                "locator": "165:1-174:68",
                "name": "Numerator",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "542",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Numerator\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "541",
                          "s": [
                            {
                              "r": "539",
                              "s": [
                                {
                                  "r": "537",
                                  "s": [
                                    {
                                      "r": "535",
                                      "s": [
                                        {
                                          "r": "450",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure\""
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n    union "
                                          ]
                                        },
                                        {
                                          "r": "534",
                                          "s": [
                                            {
                                              "value": [
                                                "( "
                                              ]
                                            },
                                            {
                                              "r": "534",
                                              "s": [
                                                {
                                                  "r": "492",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n        intersect "
                                                  ]
                                                },
                                                {
                                                  "r": "533",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "( "
                                                      ]
                                                    },
                                                    {
                                                      "r": "533",
                                                      "s": [
                                                        {
                                                          "r": "531",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\""
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n            union "
                                                          ]
                                                        },
                                                        {
                                                          "r": "532",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\""
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n        )"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n    )"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n    union "
                                      ]
                                    },
                                    {
                                      "r": "536",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Encounter With Low Risk for VTE or Anticoagulant Administered\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    union "
                                  ]
                                },
                                {
                                  "r": "538",
                                  "s": [
                                    {
                                      "value": [
                                        "\"Encounter With No VTE Prophylaxis Due to Medical Reason\""
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    union "
                              ]
                            },
                            {
                              "r": "540",
                              "s": [
                                {
                                  "value": [
                                    "\"Encounter With No VTE Prophylaxis Due to Patient Refusal\""
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "541",
                  "locator": "166:3-174:68",
                  "type": "Union",
                  "operand": [
                    {
                      "localId": "539",
                      "locator": "166:3-173:67",
                      "type": "Union",
                      "operand": [
                        {
                          "localId": "535",
                          "locator": "166:3-171:5",
                          "type": "Union",
                          "operand": [
                            {
                              "localId": "450",
                              "locator": "166:3-166:116",
                              "name": "Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure",
                              "type": "ExpressionRef"
                            },
                            {
                              "localId": "534",
                              "locator": "167:11-171:5",
                              "type": "Intersect",
                              "operand": [
                                {
                                  "localId": "492",
                                  "locator": "167:13-167:123",
                                  "name": "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure",
                                  "type": "ExpressionRef"
                                },
                                {
                                  "localId": "533",
                                  "locator": "168:19-170:9",
                                  "type": "Union",
                                  "operand": [
                                    {
                                      "localId": "531",
                                      "locator": "168:21-168:93",
                                      "name": "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE",
                                      "type": "ExpressionRef"
                                    },
                                    {
                                      "localId": "532",
                                      "locator": "169:19-169:96",
                                      "name": "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery",
                                      "type": "ExpressionRef"
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "type": "Union",
                          "operand": [
                            {
                              "localId": "536",
                              "locator": "172:11-172:73",
                              "name": "Encounter With Low Risk for VTE or Anticoagulant Administered",
                              "type": "ExpressionRef"
                            },
                            {
                              "localId": "538",
                              "locator": "173:11-173:67",
                              "name": "Encounter With No VTE Prophylaxis Due to Medical Reason",
                              "type": "ExpressionRef"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "localId": "540",
                      "locator": "174:11-174:68",
                      "name": "Encounter With No VTE Prophylaxis Due to Patient Refusal",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "statements": [
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Admission Without VTE or Obstetrical Conditions\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Global.\"Inpatient Encounter\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "38"
                              },
                              {
                                "children": [
                                  {
                                    "text": " InpatientEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "39"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "not "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "InpatientEncounter.diagnoses"
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "40"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " EncounterDiagnoses"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "41"
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n          "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "where "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "( "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "EncounterDiagnoses"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "42"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "."
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "code"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "43"
                                                                      }
                                                                    ],
                                                                    "ref_id": "43"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " in "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "\"Obstetrics\""
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "44"
                                                                  }
                                                                ],
                                                                "node_type": "InValueSet",
                                                                "ref_id": "45"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\n              or "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "EncounterDiagnoses"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "46"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "."
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "code"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "47"
                                                                      }
                                                                    ],
                                                                    "ref_id": "47"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " in "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "\"Venous Thromboembolism\""
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "48"
                                                                  }
                                                                ],
                                                                "node_type": "InValueSet",
                                                                "ref_id": "49"
                                                              }
                                                            ],
                                                            "node_type": "Or",
                                                            "ref_id": "50"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\n              or "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "EncounterDiagnoses"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "51"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "."
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "code"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "52"
                                                                  }
                                                                ],
                                                                "ref_id": "52"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " in "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "\"Obstetrics VTE\""
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "53"
                                                              }
                                                            ],
                                                            "node_type": "InValueSet",
                                                            "ref_id": "54"
                                                          }
                                                        ],
                                                        "ref_id": "55"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\n          )"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "55"
                                                  }
                                                ],
                                                "ref_id": "55"
                                              }
                                            ],
                                            "node_type": "Query",
                                            "ref_id": "56"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n      )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Query",
                                        "ref_id": "56"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "57"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n    )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Exists",
                                "ref_id": "57"
                              }
                            ],
                            "ref_id": "58"
                          }
                        ],
                        "ref_id": "58"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "59"
                  }
                ],
                "ref_id": "60"
              }
            ],
            "define_name": "Admission Without VTE or Obstetrical Conditions"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "( "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Global.\"Inpatient Encounter\""
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "61"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " InpatientEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "62"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "with "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Patient Characteristic Birthdate\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Birth date\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "63"
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "63"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " BirthDate"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "64"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        such that "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Global"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "65"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"CalendarAgeInYearsAt\" ( "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "BirthDate"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "66"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "birthDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "67"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "67"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": ", "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "start of "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "InpatientEncounter"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "68"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "."
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "relevantPeriod"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "69"
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "69"
                                                  }
                                                ],
                                                "node_type": "Start",
                                                "ref_id": "70"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " )"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "FunctionRef",
                                            "ref_id": "71"
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "71"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " >= 18"
                                          }
                                        ],
                                        "node_type": "Literal",
                                        "ref_id": "72"
                                      }
                                    ],
                                    "node_type": "GreaterOrEqual",
                                    "ref_id": "73"
                                  }
                                ],
                                "ref_id": "74"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "75"
                          },
                          {
                            "children": [
                              {
                                "text": "\n  )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "75"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    intersect "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Admission Without VTE or Obstetrical Conditions\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "76"
                      }
                    ],
                    "node_type": "Intersect",
                    "ref_id": "77"
                  }
                ],
                "ref_id": "78"
              }
            ],
            "define_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Initial Population\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "79"
                  }
                ],
                "ref_id": "80"
              }
            ],
            "define_name": "Initial Population"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Initial Population\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "81"
                  }
                ],
                "ref_id": "82"
              }
            ],
            "define_name": "Denominator"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Low Risk Indicator For VTE\":\n  /*The variable \"LowRiskDatetime\" is to hold VTE Risk Assessment relevant dateTime, INR Laboratory Test result dateTime, and Anticoagulant Medication administration start dateTime.*/\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "( "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "[\"Assessment, Performed\": "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Risk for venous thromboembolism\""
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "]"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "85"
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "85"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " VTERiskAssessment"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "86"
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n      "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "where "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "VTERiskAssessment"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "87"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "result"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "88"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "88"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " in "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Low Risk\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "89"
                                          }
                                        ],
                                        "ref_id": "90"
                                      }
                                    ],
                                    "ref_id": "90"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n      "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "return "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "{\n        "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "id: "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "VTERiskAssessment"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "91"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "id"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "92"
                                                  }
                                                ],
                                                "ref_id": "92"
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": ",\n        "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "LowRiskDatetime: "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "VTERiskAssessment"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "93"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "relevantDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "94"
                                                  }
                                                ],
                                                "ref_id": "94"
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n      }"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Tuple",
                                        "ref_id": "95"
                                      }
                                    ],
                                    "ref_id": "96"
                                  }
                                ],
                                "node_type": "Query",
                                "ref_id": "97"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n  )"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "97"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    union "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "( "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "[\"Laboratory Test, Performed\": "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"INR\""
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "]"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "98"
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "98"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " INRLabTest"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "99"
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "where "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "INRLabTest"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "100"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "result"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "101"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "101"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " > 3.0"
                                              }
                                            ],
                                            "node_type": "Literal",
                                            "ref_id": "102"
                                          }
                                        ],
                                        "ref_id": "103"
                                      }
                                    ],
                                    "ref_id": "103"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "return "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "{\n          "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "id: "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "INRLabTest"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "104"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "id"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "105"
                                                  }
                                                ],
                                                "ref_id": "105"
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": ",\n          "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "LowRiskDatetime: "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "INRLabTest"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "106"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "resultDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "107"
                                                  }
                                                ],
                                                "ref_id": "107"
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n        }"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Tuple",
                                        "ref_id": "108"
                                      }
                                    ],
                                    "ref_id": "109"
                                  }
                                ],
                                "node_type": "Query",
                                "ref_id": "110"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n    )"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "110"
                          }
                        ],
                        "node_type": "Union",
                        "ref_id": "111"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "( "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "( "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "[\"Medication, Administered\": "
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "\"Unfractionated Heparin\""
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "]"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "node_type": "Retrieve",
                                                                        "ref_id": "112"
                                                                      }
                                                                    ],
                                                                    "node_type": "Retrieve",
                                                                    "ref_id": "112"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " UnfractionatedHeparin"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "113"
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\n          "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "where "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "UnfractionatedHeparin"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "114"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "."
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "route"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "115"
                                                                      }
                                                                    ],
                                                                    "ref_id": "115"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " in "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "\"Intravenous route\""
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "116"
                                                                  }
                                                                ],
                                                                "ref_id": "117"
                                                              }
                                                            ],
                                                            "ref_id": "117"
                                                          }
                                                        ],
                                                        "node_type": "Query",
                                                        "ref_id": "118"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\n      )"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Query",
                                                    "ref_id": "118"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n        union "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "[\"Medication, Administered\": "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Direct Thrombin Inhibitor\""
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "]"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Retrieve",
                                                    "ref_id": "119"
                                                  }
                                                ],
                                                "node_type": "Union",
                                                "ref_id": "120"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n        union "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "[\"Medication, Administered\": "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Glycoprotein IIb/IIIa Inhibitors\""
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "]"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "121"
                                              }
                                            ],
                                            "node_type": "Union",
                                            "ref_id": "122"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Union",
                                        "ref_id": "122"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " AnticoagulantMedication"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "123"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "return "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "{\n          "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "id: "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "AnticoagulantMedication"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "124"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "id"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "125"
                                              }
                                            ],
                                            "ref_id": "125"
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": ",\n          "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "LowRiskDatetime: "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "start of "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "AnticoagulantMedication"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "126"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "relevantPeriod"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "127"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "127"
                                              }
                                            ],
                                            "ref_id": "128"
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n        }"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Tuple",
                                    "ref_id": "129"
                                  }
                                ],
                                "ref_id": "130"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "131"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "131"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "132"
                  }
                ],
                "ref_id": "133"
              }
            ],
            "define_name": "Low Risk Indicator For VTE"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "83"
                              },
                              {
                                "children": [
                                  {
                                    "text": " QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "84"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Low Risk Indicator For VTE\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "134"
                              },
                              {
                                "children": [
                                  {
                                    "text": " LowRiskForVTE"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "135"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "LowRiskForVTE"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "136"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "LowRiskDatetime"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "137"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "137"
                              },
                              {
                                "children": [
                                  {
                                    "text": " during "
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "141"
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "VTEICU"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "138"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\" ( "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "QualifyingEncounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "AliasRef",
                                        "ref_id": "139"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "140"
                                  }
                                ],
                                "node_type": "FunctionRef",
                                "ref_id": "140"
                              }
                            ],
                            "node_type": "In",
                            "ref_id": "141"
                          }
                        ],
                        "ref_id": "142"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "143"
                  }
                ],
                "ref_id": "144"
              }
            ],
            "define_name": "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "from\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "146"
                              },
                              {
                                "children": [
                                  {
                                    "text": " QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "147"
                          },
                          {
                            "children": [
                              {
                                "text": ",\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Procedure, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"General or Neuraxial Anesthesia\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "148"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "148"
                              },
                              {
                                "children": [
                                  {
                                    "text": " AnesthesiaProcedure"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "149"
                          },
                          {
                            "children": [
                              {
                                "text": ",\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Low Risk Indicator For VTE\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "150"
                              },
                              {
                                "children": [
                                  {
                                    "text": " LowRiskForVTE"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "151"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "AnesthesiaProcedure"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "152"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "relevantPeriod"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "153"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "153"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "ends "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "1 day"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Quantity",
                                        "ref_id": "157"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " after day of"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "SameAs",
                                    "ref_id": "158"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "start of "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "QualifyingEncounter"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "154"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "155"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "155"
                                      }
                                    ],
                                    "node_type": "Start",
                                    "ref_id": "156"
                                  }
                                ],
                                "node_type": "SameAs",
                                "ref_id": "158"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "LowRiskForVTE"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "159"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "LowRiskDatetime"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "160"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "160"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " during "
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "166"
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "VTEICU"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "161"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"CalendarDayOfOrDayAfter\" ( \n      "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "end of "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "AnesthesiaProcedure"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "162"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "relevantPeriod"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "163"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "163"
                                              }
                                            ],
                                            "node_type": "End",
                                            "ref_id": "164"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "165"
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "165"
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "166"
                              }
                            ],
                            "ref_id": "167"
                          }
                        ],
                        "ref_id": "167"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "return "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "node_type": "AliasRef",
                            "ref_id": "168"
                          }
                        ],
                        "ref_id": "169"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "170"
                  }
                ],
                "ref_id": "171"
              }
            ],
            "define_name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter With Low Risk for VTE or Anticoagulant Administered\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "145"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "172"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "173"
                  }
                ],
                "ref_id": "174"
              }
            ],
            "define_name": "Encounter With Low Risk for VTE or Anticoagulant Administered"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"No VTE Prophylaxis Medication Administered or Ordered\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "[\"Medication, Not Administered\": "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Low Dose Unfractionated Heparin for VTE Prophylaxis\""
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "]"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Retrieve",
                                                        "ref_id": "177"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\n    union "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "[\"Medication, Not Administered\": "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Low Molecular Weight Heparin for VTE Prophylaxis\""
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "]"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Retrieve",
                                                        "ref_id": "178"
                                                      }
                                                    ],
                                                    "node_type": "Union",
                                                    "ref_id": "179"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n    union "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "[\"Medication, Not Administered\": "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Injectable Factor Xa Inhibitor for VTE Prophylaxis\""
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "]"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Retrieve",
                                                    "ref_id": "180"
                                                  }
                                                ],
                                                "ref_id": "181"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n    union "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "[\"Medication, Not Administered\": "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Warfarin\""
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "]"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "182"
                                              }
                                            ],
                                            "node_type": "Union",
                                            "ref_id": "183"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n    union "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Medication, Not Administered\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Rivaroxaban and Betrixaban for VTE Prophylaxis\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "184"
                                          }
                                        ],
                                        "ref_id": "185"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    union "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Medication, Not Ordered\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Low Dose Unfractionated Heparin for VTE Prophylaxis\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "186"
                                      }
                                    ],
                                    "node_type": "Union",
                                    "ref_id": "187"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n    union "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Medication, Not Ordered\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Low Molecular Weight Heparin for VTE Prophylaxis\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "188"
                                  }
                                ],
                                "node_type": "Union",
                                "ref_id": "189"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n    union "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "[\"Medication, Not Ordered\": "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Injectable Factor Xa Inhibitor for VTE Prophylaxis\""
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "]"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "190"
                              }
                            ],
                            "node_type": "Union",
                            "ref_id": "191"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    union "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "[\"Medication, Not Ordered\": "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Warfarin\""
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "]"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Retrieve",
                            "ref_id": "192"
                          }
                        ],
                        "node_type": "Union",
                        "ref_id": "193"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "[\"Medication, Not Ordered\": "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Rivaroxaban and Betrixaban for VTE Prophylaxis\""
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "]"
                              }
                            ]
                          }
                        ],
                        "node_type": "Retrieve",
                        "ref_id": "194"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "195"
                  }
                ],
                "ref_id": "196"
              }
            ],
            "define_name": "No VTE Prophylaxis Medication Administered or Ordered"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "175"
                              },
                              {
                                "children": [
                                  {
                                    "text": " QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "176"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "197"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NoVTEMedication"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "198"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NoVTEMedication"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "199"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "negationRationale"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "200"
                                      }
                                    ],
                                    "ref_id": "200"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " in "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Medical Reason\""
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "201"
                                  }
                                ],
                                "node_type": "InValueSet",
                                "ref_id": "202"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NoVTEMedication"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "203"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "authorDatetime"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "204"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "204"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " during "
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "208"
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "VTEICU"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "205"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\" ( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "QualifyingEncounter"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "AliasRef",
                                            "ref_id": "206"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "207"
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "207"
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "208"
                              }
                            ],
                            "node_type": "And",
                            "ref_id": "209"
                          }
                        ],
                        "ref_id": "210"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "211"
                  }
                ],
                "ref_id": "212"
              }
            ],
            "define_name": "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"No VTE Prophylaxis Device Applied or Ordered\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Procedure, Not Performed\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Intermittent pneumatic compression devices (IPC)\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "216"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    union "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Procedure, Not Performed\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Venous foot pumps (VFP)\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "217"
                                      }
                                    ],
                                    "node_type": "Union",
                                    "ref_id": "218"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n    union "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Procedure, Not Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Graduated compression stockings (GCS)\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "219"
                                  }
                                ],
                                "ref_id": "220"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n    union "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "[\"Device, Not Ordered\": "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Intermittent pneumatic compression devices (IPC)\""
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "]"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "221"
                              }
                            ],
                            "node_type": "Union",
                            "ref_id": "222"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    union "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "[\"Device, Not Ordered\": "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Venous foot pumps (VFP)\""
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "]"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Retrieve",
                            "ref_id": "223"
                          }
                        ],
                        "node_type": "Union",
                        "ref_id": "224"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "[\"Device, Not Ordered\": "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Graduated compression stockings (GCS)\""
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "]"
                              }
                            ]
                          }
                        ],
                        "node_type": "Retrieve",
                        "ref_id": "225"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "226"
                  }
                ],
                "ref_id": "227"
              }
            ],
            "define_name": "No VTE Prophylaxis Device Applied or Ordered"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "214"
                              },
                              {
                                "children": [
                                  {
                                    "text": " QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "215"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"No VTE Prophylaxis Device Applied or Ordered\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "228"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NoVTEDevice"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "229"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NoVTEDevice"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "230"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "negationRationale"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "231"
                                      }
                                    ],
                                    "ref_id": "231"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " in "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Medical Reason\""
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "232"
                                  }
                                ],
                                "node_type": "InValueSet",
                                "ref_id": "233"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NoVTEDevice"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "234"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "authorDatetime"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "235"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "235"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " during "
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "239"
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "VTEICU"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "236"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\" ( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "QualifyingEncounter"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "AliasRef",
                                            "ref_id": "237"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "238"
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "238"
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "239"
                              }
                            ],
                            "node_type": "And",
                            "ref_id": "240"
                          }
                        ],
                        "ref_id": "241"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "242"
                  }
                ],
                "ref_id": "243"
              }
            ],
            "define_name": "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "from\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "246"
                              },
                              {
                                "children": [
                                  {
                                    "text": " QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "247"
                          },
                          {
                            "children": [
                              {
                                "text": ",\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Procedure, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"General or Neuraxial Anesthesia\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "248"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "248"
                              },
                              {
                                "children": [
                                  {
                                    "text": " AnesthesiaProcedure"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "249"
                          },
                          {
                            "children": [
                              {
                                "text": ",\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "250"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NoVTEMedication"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "251"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "NoVTEMedication"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "252"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "negationRationale"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "253"
                                          }
                                        ],
                                        "ref_id": "253"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " in "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Medical Reason\""
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "254"
                                      }
                                    ],
                                    "node_type": "InValueSet",
                                    "ref_id": "255"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n      and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "AnesthesiaProcedure"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "256"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "257"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "257"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "ends "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "1 day"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Quantity",
                                            "ref_id": "261"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " after day of"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "SameAs",
                                        "ref_id": "262"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "QualifyingEncounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "258"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "259"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "259"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "260"
                                      }
                                    ],
                                    "node_type": "SameAs",
                                    "ref_id": "262"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "263"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NoVTEMedication"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "264"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "authorDatetime"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "265"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "265"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " during "
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "271"
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "VTEICU"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "266"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"CalendarDayOfOrDayAfter\" ( \n      "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "end of "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "AnesthesiaProcedure"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "267"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "relevantPeriod"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "268"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "268"
                                              }
                                            ],
                                            "node_type": "End",
                                            "ref_id": "269"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "270"
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "270"
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "271"
                              }
                            ],
                            "ref_id": "272"
                          }
                        ],
                        "ref_id": "272"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "return "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "node_type": "AliasRef",
                            "ref_id": "273"
                          }
                        ],
                        "ref_id": "274"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "275"
                  }
                ],
                "ref_id": "276"
              }
            ],
            "define_name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "from\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "278"
                              },
                              {
                                "children": [
                                  {
                                    "text": " QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "279"
                          },
                          {
                            "children": [
                              {
                                "text": ",\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Procedure, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"General or Neuraxial Anesthesia\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "280"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "280"
                              },
                              {
                                "children": [
                                  {
                                    "text": " AnesthesiaProcedure"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "281"
                          },
                          {
                            "children": [
                              {
                                "text": ",\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"No VTE Prophylaxis Device Applied or Ordered\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "282"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NoVTEDevice"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "283"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "NoVTEDevice"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "284"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "negationRationale"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "285"
                                          }
                                        ],
                                        "ref_id": "285"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " in "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Medical Reason\""
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "286"
                                      }
                                    ],
                                    "node_type": "InValueSet",
                                    "ref_id": "287"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n      and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "AnesthesiaProcedure"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "288"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "289"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "289"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "ends "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "1 day"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Quantity",
                                            "ref_id": "293"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " after day of"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "SameAs",
                                        "ref_id": "294"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "QualifyingEncounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "290"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "291"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "291"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "292"
                                      }
                                    ],
                                    "node_type": "SameAs",
                                    "ref_id": "294"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "295"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NoVTEDevice"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "296"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "authorDatetime"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "297"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "297"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " during "
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "303"
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "VTEICU"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "298"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"CalendarDayOfOrDayAfter\" ( \n      "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "end of "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "AnesthesiaProcedure"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "299"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "relevantPeriod"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "300"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "300"
                                              }
                                            ],
                                            "node_type": "End",
                                            "ref_id": "301"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "302"
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "302"
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "303"
                              }
                            ],
                            "ref_id": "304"
                          }
                        ],
                        "ref_id": "304"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "return "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "node_type": "AliasRef",
                            "ref_id": "305"
                          }
                        ],
                        "ref_id": "306"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "307"
                  }
                ],
                "ref_id": "308"
              }
            ],
            "define_name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter With No VTE Prophylaxis Due to Medical Reason\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "( "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "213"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      intersect "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "244"
                              }
                            ],
                            "node_type": "Intersect",
                            "ref_id": "245"
                          },
                          {
                            "children": [
                              {
                                "text": "\n  )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Intersect",
                        "ref_id": "245"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "( "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "277"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        intersect "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "309"
                              }
                            ],
                            "node_type": "Intersect",
                            "ref_id": "310"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Intersect",
                        "ref_id": "310"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "311"
                  }
                ],
                "ref_id": "312"
              }
            ],
            "define_name": "Encounter With No VTE Prophylaxis Due to Medical Reason"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "315"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    union "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"No VTE Prophylaxis Device Applied or Ordered\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "316"
                                      }
                                    ],
                                    "node_type": "Union",
                                    "ref_id": "317"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Union",
                                "ref_id": "317"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NoVTEProphylaxis"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "318"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "NoVTEProphylaxis"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "319"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "negationRationale"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "320"
                                  }
                                ],
                                "ref_id": "320"
                              },
                              {
                                "children": [
                                  {
                                    "text": " in "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Patient Refusal\""
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "321"
                              }
                            ],
                            "ref_id": "322"
                          }
                        ],
                        "ref_id": "322"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "323"
                  }
                ],
                "ref_id": "324"
              }
            ],
            "define_name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "313"
                              },
                              {
                                "children": [
                                  {
                                    "text": " QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "314"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "325"
                              },
                              {
                                "children": [
                                  {
                                    "text": " PatientRefusal"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "326"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "PatientRefusal"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "327"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "authorDatetime"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "328"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "328"
                              },
                              {
                                "children": [
                                  {
                                    "text": " during "
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "332"
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "VTEICU"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "329"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\" ( "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "QualifyingEncounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "AliasRef",
                                        "ref_id": "330"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "331"
                                  }
                                ],
                                "node_type": "FunctionRef",
                                "ref_id": "331"
                              }
                            ],
                            "node_type": "In",
                            "ref_id": "332"
                          }
                        ],
                        "ref_id": "333"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "334"
                  }
                ],
                "ref_id": "335"
              }
            ],
            "define_name": "No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "from\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "337"
                              },
                              {
                                "children": [
                                  {
                                    "text": " QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "338"
                          },
                          {
                            "children": [
                              {
                                "text": ",\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Procedure, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"General or Neuraxial Anesthesia\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "339"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "339"
                              },
                              {
                                "children": [
                                  {
                                    "text": " AnesthesiaProcedure"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "340"
                          },
                          {
                            "children": [
                              {
                                "text": ",\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "341"
                              },
                              {
                                "children": [
                                  {
                                    "text": " PatientRefusal"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "342"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "AnesthesiaProcedure"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "343"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "relevantPeriod"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "344"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "344"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "ends "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "1 day"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Quantity",
                                        "ref_id": "348"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " after day of"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "SameAs",
                                    "ref_id": "349"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "start of "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "QualifyingEncounter"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "345"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "346"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "346"
                                      }
                                    ],
                                    "node_type": "Start",
                                    "ref_id": "347"
                                  }
                                ],
                                "node_type": "SameAs",
                                "ref_id": "349"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "PatientRefusal"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "350"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "authorDatetime"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "351"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "351"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " during "
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "357"
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "VTEICU"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "352"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"CalendarDayOfOrDayAfter\" ( \n      "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "end of "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "AnesthesiaProcedure"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "353"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "relevantPeriod"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "354"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "354"
                                              }
                                            ],
                                            "node_type": "End",
                                            "ref_id": "355"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "356"
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "356"
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "357"
                              }
                            ],
                            "ref_id": "358"
                          }
                        ],
                        "ref_id": "358"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "return "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "node_type": "AliasRef",
                            "ref_id": "359"
                          }
                        ],
                        "ref_id": "360"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "361"
                  }
                ],
                "ref_id": "362"
              }
            ],
            "define_name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter With No VTE Prophylaxis Due to Patient Refusal\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "336"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "363"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "364"
                  }
                ],
                "ref_id": "365"
              }
            ],
            "define_name": "Encounter With No VTE Prophylaxis Due to Patient Refusal"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"SDE Ethnicity\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "[\"Patient Characteristic Ethnicity\": "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Ethnicity\""
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "]"
                          }
                        ]
                      }
                    ],
                    "node_type": "Retrieve",
                    "ref_id": "366"
                  }
                ],
                "ref_id": "367"
              }
            ],
            "define_name": "SDE Ethnicity"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"SDE Payer\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "[\"Patient Characteristic Payer\": "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Payer\""
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "]"
                          }
                        ]
                      }
                    ],
                    "node_type": "Retrieve",
                    "ref_id": "368"
                  }
                ],
                "ref_id": "369"
              }
            ],
            "define_name": "SDE Payer"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"SDE Race\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "[\"Patient Characteristic Race\": "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Race\""
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "]"
                          }
                        ]
                      }
                    ],
                    "node_type": "Retrieve",
                    "ref_id": "370"
                  }
                ],
                "ref_id": "371"
              }
            ],
            "define_name": "SDE Race"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"SDE Sex\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "[\"Patient Characteristic Sex\": "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"ONC Administrative Sex\""
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "]"
                          }
                        ]
                      }
                    ],
                    "node_type": "Retrieve",
                    "ref_id": "372"
                  }
                ],
                "ref_id": "373"
              }
            ],
            "define_name": "SDE Sex"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "374"
                              },
                              {
                                "children": [
                                  {
                                    "text": " QualifyingEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "375"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Procedure, Performed\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Hip Replacement Surgery\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "376"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n      union "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Procedure, Performed\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Knee Replacement Surgery\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "377"
                                      }
                                    ],
                                    "node_type": "Union",
                                    "ref_id": "378"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Union",
                                "ref_id": "378"
                              },
                              {
                                "children": [
                                  {
                                    "text": " HipKneeProcedure"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "379"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "HipKneeProcedure"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "380"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "relevantPeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "381"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "381"
                              },
                              {
                                "children": [
                                  {
                                    "text": " starts on or before \n      "
                                  }
                                ],
                                "node_type": "SameOrBefore",
                                "ref_id": "385"
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "end of "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "QualifyingEncounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "382"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "relevantPeriod"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "383"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "383"
                                  }
                                ],
                                "node_type": "End",
                                "ref_id": "384"
                              }
                            ],
                            "node_type": "SameOrBefore",
                            "ref_id": "385"
                          }
                        ],
                        "ref_id": "386"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "387"
                  }
                ],
                "ref_id": "388"
              }
            ],
            "define_name": "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"VTE Prophylaxis by Medication Administered or Device Applied\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "( "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "[\"Medication, Administered\": "
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "\"Low Dose Unfractionated Heparin for VTE Prophylaxis\""
                                                                              }
                                                                            ]
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "]"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "node_type": "Retrieve",
                                                                    "ref_id": "391"
                                                                  }
                                                                ],
                                                                "node_type": "Retrieve",
                                                                "ref_id": "391"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " VTEMedication"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "392"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\n      "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "where "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "VTEMedication"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "393"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "."
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "route"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "394"
                                                                  }
                                                                ],
                                                                "ref_id": "394"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " in "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "\"Subcutaneous route\""
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "395"
                                                              }
                                                            ],
                                                            "ref_id": "396"
                                                          }
                                                        ],
                                                        "ref_id": "396"
                                                      }
                                                    ],
                                                    "node_type": "Query",
                                                    "ref_id": "397"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n  )"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Query",
                                                "ref_id": "397"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n    union "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "[\"Medication, Administered\": "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Low Molecular Weight Heparin for VTE Prophylaxis\""
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "]"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "398"
                                              }
                                            ],
                                            "node_type": "Union",
                                            "ref_id": "399"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n    union "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Medication, Administered\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Injectable Factor Xa Inhibitor for VTE Prophylaxis\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "400"
                                          }
                                        ],
                                        "ref_id": "401"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    union "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Medication, Administered\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Warfarin\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "402"
                                      }
                                    ],
                                    "node_type": "Union",
                                    "ref_id": "403"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n    union "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Medication, Administered\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Rivaroxaban and Betrixaban for VTE Prophylaxis\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "404"
                                  }
                                ],
                                "ref_id": "405"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n    union "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "[\"Procedure, Performed\": "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Intermittent pneumatic compression devices (IPC)\""
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "]"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "406"
                              }
                            ],
                            "node_type": "Union",
                            "ref_id": "407"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    union "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "[\"Procedure, Performed\": "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Venous foot pumps (VFP)\""
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "]"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Retrieve",
                            "ref_id": "408"
                          }
                        ],
                        "node_type": "Union",
                        "ref_id": "409"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "[\"Procedure, Performed\": "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Graduated compression stockings (GCS)\""
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "]"
                              }
                            ]
                          }
                        ],
                        "node_type": "Retrieve",
                        "ref_id": "410"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "411"
                  }
                ],
                "ref_id": "412"
              }
            ],
            "define_name": "VTE Prophylaxis by Medication Administered or Device Applied"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "( "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "389"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " QualifyingEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "390"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "with "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"VTE Prophylaxis by Medication Administered or Device Applied\""
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "413"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " VTEProphylaxis"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "414"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        such that "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "VTEProphylaxis"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "415"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "416"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "416"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " starts during "
                                          }
                                        ],
                                        "node_type": "In",
                                        "ref_id": "420"
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "VTEICU"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "417"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\" ( "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "QualifyingEncounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "AliasRef",
                                                "ref_id": "418"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " )"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "FunctionRef",
                                            "ref_id": "419"
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "419"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "420"
                                  }
                                ],
                                "ref_id": "421"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "422"
                          },
                          {
                            "children": [
                              {
                                "text": "\n  )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "422"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "( "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "from\n        "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "423"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " QualifyingEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "424"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": ",\n        "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Procedure, Performed\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"General or Neuraxial Anesthesia\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "425"
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "425"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " AnesthesiaProcedure"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "426"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": ",\n        "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"VTE Prophylaxis by Medication Administered or Device Applied\""
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "427"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " VTEProphylaxis"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "428"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "where "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "AnesthesiaProcedure"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "429"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "430"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "430"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "ends "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "1 day"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Quantity",
                                                "ref_id": "434"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " after day of"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "SameAs",
                                            "ref_id": "435"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "start of "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "QualifyingEncounter"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "431"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "relevantPeriod"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "432"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "432"
                                              }
                                            ],
                                            "node_type": "Start",
                                            "ref_id": "433"
                                          }
                                        ],
                                        "node_type": "SameAs",
                                        "ref_id": "435"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n          and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "VTEProphylaxis"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "436"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "437"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "437"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " starts during "
                                              }
                                            ],
                                            "node_type": "In",
                                            "ref_id": "443"
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "VTEICU"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "438"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"CalendarDayOfOrDayAfter\" ( \n          "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "end of "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "AnesthesiaProcedure"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "439"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "."
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "relevantPeriod"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "440"
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "440"
                                                      }
                                                    ],
                                                    "node_type": "End",
                                                    "ref_id": "441"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": " )"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "FunctionRef",
                                                "ref_id": "442"
                                              }
                                            ],
                                            "node_type": "FunctionRef",
                                            "ref_id": "442"
                                          }
                                        ],
                                        "node_type": "In",
                                        "ref_id": "443"
                                      }
                                    ],
                                    "ref_id": "444"
                                  }
                                ],
                                "ref_id": "444"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "return "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "QualifyingEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "AliasRef",
                                    "ref_id": "445"
                                  }
                                ],
                                "ref_id": "446"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "447"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "447"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "448"
                  }
                ],
                "ref_id": "449"
              }
            ],
            "define_name": "Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "( "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "451"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " QualifyingEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "452"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "with "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Medication, Administered\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "453"
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "453"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " FactorXaMedication"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "454"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        such that "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "FactorXaMedication"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "455"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "456"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "456"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " starts during "
                                          }
                                        ],
                                        "node_type": "In",
                                        "ref_id": "462"
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "VTEICU"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "457"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"CalendarDayOfOrDayAfter\" ( "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "start of "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "QualifyingEncounter"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "458"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "."
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "relevantPeriod"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "459"
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "459"
                                                  }
                                                ],
                                                "node_type": "Start",
                                                "ref_id": "460"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " )"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "FunctionRef",
                                            "ref_id": "461"
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "461"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "462"
                                  }
                                ],
                                "ref_id": "463"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "464"
                          },
                          {
                            "children": [
                              {
                                "text": "\n  )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "464"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "( "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "from\n        "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "465"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " QualifyingEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "466"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": ",\n        "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Procedure, Performed\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"General or Neuraxial Anesthesia\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "467"
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "467"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " AnesthesiaProcedure"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "468"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": ",\n        "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Medication, Administered\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "469"
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "469"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " FactorXaMedication"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "470"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "where "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "AnesthesiaProcedure"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "471"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "472"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "472"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "ends "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "1 day"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Quantity",
                                                "ref_id": "476"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " after day of"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "SameAs",
                                            "ref_id": "477"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "start of "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "QualifyingEncounter"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "473"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "relevantPeriod"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "474"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "474"
                                              }
                                            ],
                                            "node_type": "Start",
                                            "ref_id": "475"
                                          }
                                        ],
                                        "node_type": "SameAs",
                                        "ref_id": "477"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n          and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "FactorXaMedication"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "478"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "479"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "479"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " starts during "
                                              }
                                            ],
                                            "node_type": "In",
                                            "ref_id": "485"
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "VTEICU"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "480"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"CalendarDayOfOrDayAfter\" ( \n          "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "end of "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "AnesthesiaProcedure"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "481"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "."
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "relevantPeriod"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "482"
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "482"
                                                      }
                                                    ],
                                                    "node_type": "End",
                                                    "ref_id": "483"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": " )"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "FunctionRef",
                                                "ref_id": "484"
                                              }
                                            ],
                                            "node_type": "FunctionRef",
                                            "ref_id": "484"
                                          }
                                        ],
                                        "node_type": "In",
                                        "ref_id": "485"
                                      }
                                    ],
                                    "ref_id": "486"
                                  }
                                ],
                                "ref_id": "486"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "return "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "QualifyingEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "AliasRef",
                                    "ref_id": "487"
                                  }
                                ],
                                "ref_id": "488"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "489"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "489"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "490"
                  }
                ],
                "ref_id": "491"
              }
            ],
            "define_name": "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "( "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "493"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " QualifyingEncounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "494"
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n      "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "with "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "[\"Diagnosis\": "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Atrial Fibrillation/Flutter\""
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "]"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "495"
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "495"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " AtrialFibrillation"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "496"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n        such that "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "AtrialFibrillation"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "497"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "prevalencePeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "498"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "498"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " starts on or before \n        "
                                              }
                                            ],
                                            "node_type": "SameOrBefore",
                                            "ref_id": "502"
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "end of "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "QualifyingEncounter"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "499"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "relevantPeriod"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "500"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "500"
                                              }
                                            ],
                                            "node_type": "End",
                                            "ref_id": "501"
                                          }
                                        ],
                                        "node_type": "SameOrBefore",
                                        "ref_id": "502"
                                      }
                                    ],
                                    "ref_id": "503"
                                  }
                                ],
                                "node_type": "Query",
                                "ref_id": "504"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n  )"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "504"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    union "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "( "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "505"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " QualifyingEncounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "506"
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "where "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "exists "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "( "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "QualifyingEncounter.diagnoses"
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "507"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " QualifyingEncounterDiagnoses"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "508"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n            "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "where "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "QualifyingEncounterDiagnoses"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "509"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "."
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "code"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "510"
                                                              }
                                                            ],
                                                            "ref_id": "510"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " in "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Atrial Fibrillation/Flutter\""
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "511"
                                                          }
                                                        ],
                                                        "ref_id": "512"
                                                      }
                                                    ],
                                                    "ref_id": "512"
                                                  }
                                                ],
                                                "node_type": "Query",
                                                "ref_id": "513"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n        )"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Query",
                                            "ref_id": "513"
                                          }
                                        ],
                                        "ref_id": "514"
                                      }
                                    ],
                                    "ref_id": "514"
                                  }
                                ],
                                "node_type": "Query",
                                "ref_id": "515"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n    )"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "515"
                          }
                        ],
                        "node_type": "Union",
                        "ref_id": "516"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "( "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "517"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " QualifyingEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "518"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "with "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Diagnosis\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Venous Thromboembolism\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "519"
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "519"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " VTEDiagnosis"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "520"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n          such that "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "VTEDiagnosis"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "521"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "prevalencePeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "522"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "522"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " starts before "
                                          }
                                        ],
                                        "node_type": "Before",
                                        "ref_id": "526"
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "QualifyingEncounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "523"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "524"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "524"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "525"
                                      }
                                    ],
                                    "node_type": "Before",
                                    "ref_id": "526"
                                  }
                                ],
                                "ref_id": "527"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "528"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "528"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "529"
                  }
                ],
                "ref_id": "530"
              }
            ],
            "define_name": "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Numerator\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ExpressionRef",
                                    "ref_id": "450"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n    union "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "( "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "492"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n        intersect "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "( "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "ExpressionRef",
                                                    "ref_id": "531"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n            union "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "ExpressionRef",
                                                    "ref_id": "532"
                                                  }
                                                ],
                                                "node_type": "Union",
                                                "ref_id": "533"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n        )"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Union",
                                            "ref_id": "533"
                                          }
                                        ],
                                        "node_type": "Intersect",
                                        "ref_id": "534"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Intersect",
                                    "ref_id": "534"
                                  }
                                ],
                                "node_type": "Union",
                                "ref_id": "535"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n    union "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Encounter With Low Risk for VTE or Anticoagulant Administered\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "536"
                              }
                            ],
                            "ref_id": "537"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    union "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Encounter With No VTE Prophylaxis Due to Medical Reason\""
                                  }
                                ]
                              }
                            ],
                            "node_type": "ExpressionRef",
                            "ref_id": "538"
                          }
                        ],
                        "node_type": "Union",
                        "ref_id": "539"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Encounter With No VTE Prophylaxis Due to Patient Refusal\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "540"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "541"
                  }
                ],
                "ref_id": "542"
              }
            ],
            "define_name": "Numerator"
          }
        ],
        "identifier": {
          "id": "CMS108",
          "version": "0.1.005"
        }
      },
      "is_main_library": true,
      "is_top_level": true,
      "library_name": "CMS108",
      "library_version": "0.1.005",
      "statement_dependencies": [
        {
          "_id": "609d998eb78902cd9466f536",
          "statement_name": "Patient"
        },
        {
          "_id": "609d998eb78902cd9466f537",
          "statement_name": "Admission Without VTE or Obstetrical Conditions",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f538",
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctionsNEW",
              "statement_name": "Inpatient Encounter"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f539",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f53a",
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctionsNEW",
              "statement_name": "Inpatient Encounter"
            },
            {
              "_id": "609d998eb78902cd9466f53b",
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctionsNEW",
              "statement_name": "CalendarAgeInYearsAt"
            },
            {
              "_id": "609d998eb78902cd9466f53c",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Admission Without VTE or Obstetrical Conditions"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f53d",
          "statement_name": "Initial Population",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f53e",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f53f",
          "statement_name": "Denominator",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f540",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Initial Population"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f541",
          "statement_name": "Low Risk Indicator For VTE"
        },
        {
          "_id": "609d998eb78902cd9466f542",
          "statement_name": "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f543",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            },
            {
              "_id": "609d998eb78902cd9466f544",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Low Risk Indicator For VTE"
            },
            {
              "_id": "609d998eb78902cd9466f545",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "FromDayOfStartOfHospitalizationToDayAfterAdmission"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f546",
          "statement_name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f547",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            },
            {
              "_id": "609d998eb78902cd9466f548",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Low Risk Indicator For VTE"
            },
            {
              "_id": "609d998eb78902cd9466f549",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "CalendarDayOfOrDayAfter"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f54a",
          "statement_name": "Encounter With Low Risk for VTE or Anticoagulant Administered",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f54b",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Low Risk for VTE or Anticoagulant Administered From Day of Start of Hospitalization To Day After Admission"
            },
            {
              "_id": "609d998eb78902cd9466f54c",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f54d",
          "statement_name": "No VTE Prophylaxis Medication Administered or Ordered"
        },
        {
          "_id": "609d998eb78902cd9466f54e",
          "statement_name": "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f54f",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            },
            {
              "_id": "609d998eb78902cd9466f550",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Medication Administered or Ordered"
            },
            {
              "_id": "609d998eb78902cd9466f551",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "FromDayOfStartOfHospitalizationToDayAfterAdmission"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f552",
          "statement_name": "No VTE Prophylaxis Device Applied or Ordered"
        },
        {
          "_id": "609d998eb78902cd9466f553",
          "statement_name": "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f554",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            },
            {
              "_id": "609d998eb78902cd9466f555",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Device Applied or Ordered"
            },
            {
              "_id": "609d998eb78902cd9466f556",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "FromDayOfStartOfHospitalizationToDayAfterAdmission"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f557",
          "statement_name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f558",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            },
            {
              "_id": "609d998eb78902cd9466f559",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Medication Administered or Ordered"
            },
            {
              "_id": "609d998eb78902cd9466f55a",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "CalendarDayOfOrDayAfter"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f55b",
          "statement_name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f55c",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            },
            {
              "_id": "609d998eb78902cd9466f55d",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Device Applied or Ordered"
            },
            {
              "_id": "609d998eb78902cd9466f55e",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "CalendarDayOfOrDayAfter"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f55f",
          "statement_name": "Encounter With No VTE Prophylaxis Due to Medical Reason",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f560",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Medication Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"
            },
            {
              "_id": "609d998eb78902cd9466f561",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Device Due to Medical Reason From Day of Start of Hospitalization To Day After Admission"
            },
            {
              "_id": "609d998eb78902cd9466f562",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure"
            },
            {
              "_id": "609d998eb78902cd9466f563",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f564",
          "statement_name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f565",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Medication Administered or Ordered"
            },
            {
              "_id": "609d998eb78902cd9466f566",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Device Applied or Ordered"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f567",
          "statement_name": "No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f568",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            },
            {
              "_id": "609d998eb78902cd9466f569",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal"
            },
            {
              "_id": "609d998eb78902cd9466f56a",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "FromDayOfStartOfHospitalizationToDayAfterAdmission"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f56b",
          "statement_name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f56c",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            },
            {
              "_id": "609d998eb78902cd9466f56d",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal"
            },
            {
              "_id": "609d998eb78902cd9466f56e",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "CalendarDayOfOrDayAfter"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f56f",
          "statement_name": "Encounter With No VTE Prophylaxis Due to Patient Refusal",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f570",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Due to Patient Refusal From Day of Start of Hospitalization To Day After Admission"
            },
            {
              "_id": "609d998eb78902cd9466f571",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f572",
          "statement_name": "SDE Ethnicity"
        },
        {
          "_id": "609d998eb78902cd9466f573",
          "statement_name": "SDE Payer"
        },
        {
          "_id": "609d998eb78902cd9466f574",
          "statement_name": "SDE Race"
        },
        {
          "_id": "609d998eb78902cd9466f575",
          "statement_name": "SDE Sex"
        },
        {
          "_id": "609d998eb78902cd9466f576",
          "statement_name": "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f577",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f578",
          "statement_name": "VTE Prophylaxis by Medication Administered or Device Applied"
        },
        {
          "_id": "609d998eb78902cd9466f579",
          "statement_name": "Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f57a",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            },
            {
              "_id": "609d998eb78902cd9466f57b",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "VTE Prophylaxis by Medication Administered or Device Applied"
            },
            {
              "_id": "609d998eb78902cd9466f57c",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "FromDayOfStartOfHospitalizationToDayAfterAdmission"
            },
            {
              "_id": "609d998eb78902cd9466f57d",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "CalendarDayOfOrDayAfter"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f57e",
          "statement_name": "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f57f",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            },
            {
              "_id": "609d998eb78902cd9466f580",
              "hqmf_id": null,
              "library_name": "TEST_VTEICU56",
              "statement_name": "CalendarDayOfOrDayAfter"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f581",
          "statement_name": "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f582",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f583",
          "statement_name": "Numerator",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f584",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With VTE Prophylaxis Received From Day of Start of Hospitalization To Day After Admission or Procedure"
            },
            {
              "_id": "609d998eb78902cd9466f585",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure"
            },
            {
              "_id": "609d998eb78902cd9466f586",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE"
            },
            {
              "_id": "609d998eb78902cd9466f587",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery"
            },
            {
              "_id": "609d998eb78902cd9466f588",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With Low Risk for VTE or Anticoagulant Administered"
            },
            {
              "_id": "609d998eb78902cd9466f589",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With No VTE Prophylaxis Due to Medical Reason"
            },
            {
              "_id": "609d998eb78902cd9466f58a",
              "hqmf_id": null,
              "library_name": "CMS108",
              "statement_name": "Encounter With No VTE Prophylaxis Due to Patient Refusal"
            }
          ]
        }
      ]
    },
    {
      "_id": "609d998eb78902cd9466f58b",
      "cql": "library MATGlobalCommonFunctionsNEW version '7.0.000'\n\n/*This is an interim version for use prior to AU 2020 release.  We anticipate another release for inclusion with the program measures in Spring 2020*/\n\nusing QDM version '5.6'\n\nvalueset \"Emergency Department Visit\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.292' \nvalueset \"Encounter Inpatient\": 'urn:oid:2.16.840.1.113883.3.666.5.307' \nvalueset \"Intensive Care Unit\": 'urn:oid:2.16.840.1.113762.1.4.1029.206' \nvalueset \"Observation Services\": 'urn:oid:2.16.840.1.113762.1.4.1111.143' \nvalueset \"Outpatient Surgery Service\": 'urn:oid:2.16.840.1.113762.1.4.1110.38' \n\nparameter \"Measurement Period\" Interval<DateTime>\n\ncontext Patient\n\ndefine \"ED Encounter\":\n  [\"Encounter, Performed\": \"Emergency Department Visit\"]\n\ndefine \"Inpatient Encounter\":\n  [\"Encounter, Performed\": \"Encounter Inpatient\"] EncounterInpatient\n    where \"LengthInDays\"(EncounterInpatient.relevantPeriod)<= 120\n      and EncounterInpatient.relevantPeriod ends during day of \"Measurement Period\"\n\n/*CalendarAgeInDaysAt calculates the calendar age (meaning the age without considering time components) in days.*/\ndefine function \"CalendarAgeInDaysAt\"(BirthDateTime DateTime, AsOf DateTime ):\n  days between ToDate(BirthDateTime)and ToDate(AsOf)\n\n/*CalendarAgeInDays calculates the calendar age (meaning the age without considering time components) in days as of today*/\ndefine function \"CalendarAgeInDays\"(BirthDateTime DateTime ):\n  CalendarAgeInDaysAt(BirthDateTime, Today())\n\n/*CalendarAgeInMonthsAt calculates the calendar age (meaning the age without considering time components) in months.*/\ndefine function \"CalendarAgeInMonthsAt\"(BirthDateTime DateTime, AsOf DateTime ):\n  months between ToDate(BirthDateTime)and ToDate(AsOf)\n\n/*CalendarAgeInMonths calculates the calendar age (meaning the age without considering time components) in months as of today.*/\ndefine function \"CalendarAgeInMonths\"(BirthDateTime DateTime ):\n  CalendarAgeInMonthsAt(BirthDateTime, Today())\n\n/*CalendarAgeInYearsAt calculates the calendar age (meaning the age without considering time components) in years.*/\ndefine function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime ):\n  years between ToDate(BirthDateTime)and ToDate(AsOf)\n\n/*CalendarAgeInYears calculates the calendar age (meaning the age without considering time components) in years as of today.*/\ndefine function \"CalendarAgeInYears\"(BirthDateTime DateTime ):\n  CalendarAgeInYearsAt(BirthDateTime, Today())\n\n/*calculates the difference in calendar days between the start and end of the given interval.*/\ndefine function \"LengthInDays\"(Value Interval<DateTime> ):\n  difference in days between start of Value and end of Value\n\n/* returns list of all locations within an encounter, including locations for immediately prior ED visit. */\ndefine function \"HospitalizationLocations\"(Encounter \"Encounter, Performed\" ):\n  Encounter Visit\n  \tlet EDVisit: Last([\"Encounter, Performed\": \"Emergency Department Visit\"] LastED\n  \t\t\twhere LastED.relevantPeriod ends 1 hour or less on or before start of Visit.relevantPeriod\n  \t\t\tsort by \n  \t\t\tend of relevantPeriod\n  \t)\n  \treturn if EDVisit is null then Visit.facilityLocations \n  \t\telse flatten { EDVisit.facilityLocations, Visit.facilityLocations }\n\n/*Returns the arrival time in the ED for the encounter.  \n*/\ndefine function \"EmergencyDepartmentArrivalTime\"(Encounter \"Encounter, Performed\" ):\n  start of First((\"HospitalizationLocations\"(Encounter))HospitalLocation\n  \t\twhere HospitalLocation.code in \"Emergency Department Visit\"\n  \t\tsort by start of locationPeriod\n  ).locationPeriod\n\n/*Returns admission time for an encounter or for immediately prior emergency department visit.  */\ndefine function \"HospitalAdmissionTime\"(Encounter \"Encounter, Performed\" ):\n  start of \"Hospitalization\"(Encounter)\n\n/*Returns earliest arrival time for an encounter including any prior ED visit. */\ndefine function \"HospitalArrivalTime\"(Encounter \"Encounter, Performed\" ):\n  start of First((\"HospitalizationLocations\"(Encounter))HospitalLocation\n  \t\tsort by start of locationPeriod\n  ).locationPeriod\n\n/*Hospitalization returns the total interval for admission to discharge for the given encounter, or for the admission of any immediately prior emergency department visit to the discharge of the given encounter.*/\ndefine function \"Hospitalization\"(Encounter \"Encounter, Performed\" ):\n  Encounter Visit\n  \tlet EDVisit: Last([\"Encounter, Performed\": \"Emergency Department Visit\"] LastED\n  \t\t\twhere LastED.relevantPeriod ends 1 hour or less on or before start of Visit.relevantPeriod\n  \t\t\tsort by \n  \t\t\tend of relevantPeriod\n  \t)\n  \treturn Interval[Coalesce(start of EDVisit.relevantPeriod, start of Visit.relevantPeriod), \n  \tend of Visit.relevantPeriod]\n\n/*Returns the length of stay in days (i.e. the number of days between admission and discharge) for the given encounter, or from the admission of any immediately prior emergency department visit to the discharge of the encounter*/\ndefine function \"HospitalizationLengthofStay\"(Encounter \"Encounter, Performed\" ):\n  LengthInDays(\"Hospitalization\"(Encounter))\n\n/*Returns the latest departure time for encounter including any prior ED visit. */\ndefine function \"HospitalDepartureTime\"(Encounter \"Encounter, Performed\" ):\n  end of Last((\"HospitalizationLocations\"(Encounter))HospitalLocation\n  \t\tsort by start of locationPeriod\n  ).locationPeriod\n\n/*Hospital Discharge Time returns the discharge time for an encounter*/\ndefine function \"HospitalDischargeTime\"(Encounter \"Encounter, Performed\" ):\n  end of Encounter.relevantPeriod\n\n/*Hospitalization with Observation and Outpatient Surgery Service returns the total interval from the start of any immediately prior emergency department visit, outpatient surgery visit or observation visit to the discharge of the given encounter.*/\ndefine function \"HospitalizationWithObservationAndOutpatientSurgeryService\"(Encounter \"Encounter, Performed\" ):\n  Encounter Visit\n  \tlet ObsVisit: Last([\"Encounter, Performed\": \"Observation Services\"] LastObs\n  \t\t\twhere LastObs.relevantPeriod ends 1 hour or less on or before start of Visit.relevantPeriod\n  \t\t\tsort by \n  \t\t\tend of relevantPeriod\n  \t),\n  \tVisitStart: Coalesce(start of ObsVisit.relevantPeriod, start of Visit.relevantPeriod),\n  \tEDVisit: Last([\"Encounter, Performed\": \"Emergency Department Visit\"] LastED\n  \t\t\twhere LastED.relevantPeriod ends 1 hour or less on or before VisitStart\n  \t\t\tsort by \n  \t\t\tend of relevantPeriod\n  \t),\n  \tVisitStartWithED: Coalesce(start of EDVisit.relevantPeriod, VisitStart),\n  \tOutpatientSurgeryVisit: Last([\"Encounter, Performed\": \"Outpatient Surgery Service\"] LastSurgeryOP\n  \t\t\twhere LastSurgeryOP.relevantPeriod ends 1 hour or less on or before VisitStartWithED\n  \t\t\tsort by \n  \t\t\tend of relevantPeriod\n  \t)\n  \treturn Interval[Coalesce(start of OutpatientSurgeryVisit.relevantPeriod, VisitStartWithED), \n  \tend of Visit.relevantPeriod]\n\n/*Hospitalization with Observation returns the total interval from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter*/\ndefine function \"HospitalizationWithObservation\"(Encounter \"Encounter, Performed\" ):\n  Encounter Visit\n  \tlet ObsVisit: Last([\"Encounter, Performed\": \"Observation Services\"] LastObs\n  \t\t\twhere LastObs.relevantPeriod ends 1 hour or less on or before start of Visit.relevantPeriod\n  \t\t\tsort by \n  \t\t\tend of relevantPeriod\n  \t),\n  \tVisitStart: Coalesce(start of ObsVisit.relevantPeriod, start of Visit.relevantPeriod),\n  \tEDVisit: Last([\"Encounter, Performed\": \"Emergency Department Visit\"] LastED\n  \t\t\twhere LastED.relevantPeriod ends 1 hour or less on or before VisitStart\n  \t\t\tsort by \n  \t\t\tend of relevantPeriod\n  \t)\n  \treturn Interval[Coalesce(start of EDVisit.relevantPeriod, VisitStart), \n  \tend of Visit.relevantPeriod]\n\n/*ToDate takes a given DateTime value and returns a DateTime with the time components \"zeroed\", and the timezone of the input value, for example, given the DateTime @2012-01-01T06:30:00.0Z, this function will return @2012-01-01T00:00:00.0Z.*/\ndefine function \"ToDate\"(Value DateTime ):\n  DateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from Value)\n\n/*Hospitalization with Observation Length of Stay returns the length in days from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter*/\ndefine function \"HospitalizationWithObservationLengthofStay\"(Encounter \"Encounter, Performed\" ):\n  \"LengthInDays\"(\"HospitalizationWithObservation\"(Encounter))\n\n/*First Inpatient Intensive Care Unit returns the first intensive care unit for the given encounter, without considering any immediately prior emergency department visit.*/\ndefine function \"FirstInpatientIntensiveCareUnit\"(Encounter \"Encounter, Performed\" ):\n  First((Encounter.facilityLocations)HospitalLocation\n      where HospitalLocation.code in \"Intensive Care Unit\"\n        and HospitalLocation.locationPeriod during Encounter.relevantPeriod\n      sort by start of locationPeriod\n  )\n\n/*Given a datetime and a period, returns the period (if a period is provided) or the interval beginning and ending on the datetime (if a datetime is provided)*/\ndefine function \"NormalizeInterval\"(pointInTime DateTime, period Interval<DateTime> ):\n  if pointInTime is not null then Interval[pointInTime, pointInTime]\n    else if period is not null then period \n    else null as Interval<DateTime>\n\n/*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)*/\ndefine function \"HasStart\"(period Interval<DateTime> ):\n  not ( start of period is null\n      or start of period = minimum DateTime\n  )\n\n/*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)*/\ndefine function \"HasEnd\"(period Interval<DateTime> ):\n  not ( \n    end of period is null\n      or \n      end of period = maximum DateTime\n  )\n\n/*Given an interval, return the ending point if the interval has an ending boundary specified, otherwise, return the starting point*/\ndefine function \"Latest\"(period Interval<DateTime> ):\n  if ( HasEnd(period)) then \n  end of period \n    else start of period\n\n/*Given an interval, return the starting point if the interval has a starting boundary specified, otherwise, return the ending point*/\ndefine function \"Earliest\"(period Interval<DateTime> ):\n  if ( HasStart(period)) then start of period \n    else \n  end of period\n\n/*Given a pointInTime or period, if the pointInTime is specified, returns the pointInTime, returns the ending point of the period if the period has an ending boundary specified, otherwise returns the starting point of the interval*/\ndefine function \"LatestOf\"(pointInTime DateTime, period Interval<DateTime> ):\n  Latest(NormalizeInterval(pointInTime, period))\n\n/*Given a pointInTime or period, if the pointInTime is specified, returns the pointInTime, returns the starting point of the period if the period has a starting boundary specified, otherwise returns the ending point of the period*/\ndefine function \"EarliestOf\"(pointInTime DateTime, period Interval<DateTime> ):\n  Earliest(NormalizeInterval(pointInTime, period))\n\n",
      "elm": {
        "library": {
          "annotation": [
            {
              "translatorOptions": "EnableAnnotations,EnableLocators,DisableListDemotion,DisableListPromotion,DisableMethodInvocation",
              "type": "CqlToElmInfo"
            },
            {
              "type": "Annotation",
              "s": {
                "r": "448",
                "s": [
                  {
                    "value": [
                      "",
                      "library MATGlobalCommonFunctionsNEW version '7.0.000'"
                    ]
                  }
                ]
              }
            }
          ],
          "identifier": {
            "id": "MATGlobalCommonFunctionsNEW",
            "version": "7.0.000"
          },
          "schemaIdentifier": {
            "id": "urn:hl7-org:elm",
            "version": "r1"
          },
          "usings": {
            "def": [
              {
                "localIdentifier": "System",
                "uri": "urn:hl7-org:elm-types:r1"
              },
              {
                "localId": "1",
                "locator": "5:1-5:23",
                "localIdentifier": "QDM",
                "uri": "urn:healthit-gov:qdm:v5_6",
                "version": "5.6",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "1",
                      "s": [
                        {
                          "value": [
                            "/*This is an interim version for use prior to AU 2020 release.  We anticipate another release for inclusion with the program measures in Spring 2020*/",
                            "using "
                          ]
                        },
                        {
                          "s": [
                            {
                              "value": [
                                "QDM"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " version ",
                            "'5.6'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          },
          "parameters": {
            "def": [
              {
                "localId": "9",
                "locator": "13:1-13:49",
                "name": "Measurement Period",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "9",
                      "s": [
                        {
                          "value": [
                            "",
                            "parameter ",
                            "\"Measurement Period\"",
                            " "
                          ]
                        },
                        {
                          "r": "8",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "7",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "parameterTypeSpecifier": {
                  "localId": "8",
                  "locator": "13:32-13:49",
                  "type": "IntervalTypeSpecifier",
                  "pointType": {
                    "localId": "7",
                    "locator": "13:41-13:48",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "2",
                "locator": "7:1-7:82",
                "name": "Emergency Department Visit",
                "id": "2.16.840.1.113883.3.117.1.7.1.292",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "2",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Emergency Department Visit\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.292'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "3",
                "locator": "8:1-8:71",
                "name": "Encounter Inpatient",
                "id": "2.16.840.1.113883.3.666.5.307",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "3",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Encounter Inpatient\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.666.5.307'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "4",
                "locator": "9:1-9:72",
                "name": "Intensive Care Unit",
                "id": "2.16.840.1.113762.1.4.1029.206",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "4",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Intensive Care Unit\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113762.1.4.1029.206'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "5",
                "locator": "10:1-10:73",
                "name": "Observation Services",
                "id": "2.16.840.1.113762.1.4.1111.143",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "5",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Observation Services\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113762.1.4.1111.143'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "6",
                "locator": "11:1-11:78",
                "name": "Outpatient Surgery Service",
                "id": "2.16.840.1.113762.1.4.1110.38",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "6",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Outpatient Surgery Service\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113762.1.4.1110.38'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          },
          "contexts": {
            "def": [
              {
                "locator": "15:1-15:15",
                "name": "Patient"
              }
            ]
          },
          "statements": {
            "def": [
              {
                "locator": "15:1-15:15",
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "locator": "15:1-15:15",
                    "dataType": "{urn:healthit-gov:qdm:v5_6}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "11",
                "locator": "17:1-18:56",
                "name": "ED Encounter",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "11",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"ED Encounter\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "10",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Encounter, Performed\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Emergency Department Visit\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "10",
                  "locator": "18:3-18:56",
                  "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                  "templateId": "PositiveEncounterPerformed",
                  "codeProperty": "code",
                  "codeComparator": "in",
                  "type": "Retrieve",
                  "codes": {
                    "locator": "18:28-18:55",
                    "name": "Emergency Department Visit",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "23",
                "locator": "50:1-51:60",
                "name": "LengthInDays",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "23",
                      "s": [
                        {
                          "value": [
                            "/*calculates the difference in calendar days between the start and end of the given interval.*/",
                            "define function ",
                            "\"LengthInDays\"",
                            "(",
                            "Value",
                            " "
                          ]
                        },
                        {
                          "r": "17",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "16",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "22",
                          "s": [
                            {
                              "r": "22",
                              "s": [
                                {
                                  "value": [
                                    "difference in days between "
                                  ]
                                },
                                {
                                  "r": "19",
                                  "s": [
                                    {
                                      "value": [
                                        "start of "
                                      ]
                                    },
                                    {
                                      "r": "18",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " and "
                                  ]
                                },
                                {
                                  "r": "21",
                                  "s": [
                                    {
                                      "value": [
                                        "end of "
                                      ]
                                    },
                                    {
                                      "r": "20",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "22",
                  "locator": "51:3-51:60",
                  "precision": "Day",
                  "type": "DifferenceBetween",
                  "operand": [
                    {
                      "localId": "19",
                      "locator": "51:30-51:43",
                      "type": "Start",
                      "operand": {
                        "localId": "18",
                        "locator": "51:39-51:43",
                        "name": "Value",
                        "type": "OperandRef"
                      }
                    },
                    {
                      "localId": "21",
                      "locator": "51:49-51:60",
                      "type": "End",
                      "operand": {
                        "localId": "20",
                        "locator": "51:56-51:60",
                        "name": "Value",
                        "type": "OperandRef"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "Value",
                    "operandTypeSpecifier": {
                      "localId": "17",
                      "locator": "50:38-50:55",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "16",
                        "locator": "50:47-50:54",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              },
              {
                "localId": "33",
                "locator": "20:1-23:83",
                "name": "Inpatient Encounter",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "33",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Inpatient Encounter\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "32",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "13",
                                  "s": [
                                    {
                                      "r": "12",
                                      "s": [
                                        {
                                          "r": "12",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Encounter Inpatient\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "EncounterInpatient"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "31",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "31",
                                  "s": [
                                    {
                                      "r": "26",
                                      "s": [
                                        {
                                          "r": "24",
                                          "s": [
                                            {
                                              "value": [
                                                "\"LengthInDays\"",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "15",
                                              "s": [
                                                {
                                                  "r": "14",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "EncounterInpatient"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "15",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "r": "25",
                                          "value": [
                                            "<=",
                                            " ",
                                            "120"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      and "
                                      ]
                                    },
                                    {
                                      "r": "30",
                                      "s": [
                                        {
                                          "r": "28",
                                          "s": [
                                            {
                                              "r": "27",
                                              "s": [
                                                {
                                                  "value": [
                                                    "EncounterInpatient"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "28",
                                              "s": [
                                                {
                                                  "value": [
                                                    "relevantPeriod"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "r": "30",
                                          "value": [
                                            " ",
                                            "ends during day of",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "29",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "32",
                  "locator": "21:3-23:83",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "13",
                      "locator": "21:3-21:68",
                      "alias": "EncounterInpatient",
                      "expression": {
                        "localId": "12",
                        "locator": "21:3-21:49",
                        "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "codeComparator": "in",
                        "type": "Retrieve",
                        "codes": {
                          "locator": "21:28-21:48",
                          "name": "Encounter Inpatient",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [],
                  "where": {
                    "localId": "31",
                    "locator": "22:5-23:83",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "26",
                        "locator": "22:11-22:65",
                        "type": "LessOrEqual",
                        "operand": [
                          {
                            "localId": "24",
                            "locator": "22:11-22:59",
                            "name": "LengthInDays",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "15",
                                "locator": "22:26-22:58",
                                "path": "relevantPeriod",
                                "scope": "EncounterInpatient",
                                "type": "Property"
                              }
                            ]
                          },
                          {
                            "localId": "25",
                            "locator": "22:63-22:65",
                            "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                            "value": "120",
                            "type": "Literal"
                          }
                        ]
                      },
                      {
                        "localId": "30",
                        "locator": "23:11-23:83",
                        "precision": "Day",
                        "type": "In",
                        "operand": [
                          {
                            "locator": "23:45-23:48",
                            "type": "End",
                            "operand": {
                              "localId": "28",
                              "locator": "23:11-23:43",
                              "path": "relevantPeriod",
                              "scope": "EncounterInpatient",
                              "type": "Property"
                            }
                          },
                          {
                            "localId": "29",
                            "locator": "23:64-23:83",
                            "name": "Measurement Period",
                            "type": "ParameterRef"
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              {
                "localId": "41",
                "locator": "26:1-27:52",
                "name": "CalendarAgeInDaysAt",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "41",
                      "s": [
                        {
                          "value": [
                            "/*CalendarAgeInDaysAt calculates the calendar age (meaning the age without considering time components) in days.*/",
                            "define function ",
                            "\"CalendarAgeInDaysAt\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "34",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "AsOf",
                            " "
                          ]
                        },
                        {
                          "r": "35",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "40",
                          "s": [
                            {
                              "r": "40",
                              "s": [
                                {
                                  "value": [
                                    "days between "
                                  ]
                                },
                                {
                                  "r": "37",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "36",
                                      "s": [
                                        {
                                          "value": [
                                            "BirthDateTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "and "
                                  ]
                                },
                                {
                                  "r": "39",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "38",
                                      "s": [
                                        {
                                          "value": [
                                            "AsOf"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "40",
                  "locator": "27:3-27:52",
                  "precision": "Day",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "37",
                      "locator": "27:16-27:36",
                      "type": "ToDate",
                      "operand": {
                        "localId": "36",
                        "locator": "27:23-27:35",
                        "name": "BirthDateTime",
                        "type": "OperandRef"
                      }
                    },
                    {
                      "localId": "39",
                      "locator": "27:41-27:52",
                      "type": "ToDate",
                      "operand": {
                        "localId": "38",
                        "locator": "27:48-27:51",
                        "name": "AsOf",
                        "type": "OperandRef"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "34",
                      "locator": "26:53-26:60",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "35",
                      "locator": "26:68-26:75",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "46",
                "locator": "30:1-31:45",
                "name": "CalendarAgeInDays",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "46",
                      "s": [
                        {
                          "value": [
                            "/*CalendarAgeInDays calculates the calendar age (meaning the age without considering time components) in days as of today*/",
                            "define function ",
                            "\"CalendarAgeInDays\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "42",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "45",
                          "s": [
                            {
                              "r": "45",
                              "s": [
                                {
                                  "value": [
                                    "CalendarAgeInDaysAt",
                                    "("
                                  ]
                                },
                                {
                                  "r": "43",
                                  "s": [
                                    {
                                      "value": [
                                        "BirthDateTime"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "44",
                                  "s": [
                                    {
                                      "value": [
                                        "Today",
                                        "()"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "45",
                  "locator": "31:3-31:45",
                  "name": "CalendarAgeInDaysAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "43",
                      "locator": "31:23-31:35",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "type": "ToDateTime",
                      "operand": {
                        "localId": "44",
                        "locator": "31:38-31:44",
                        "type": "Today"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "42",
                      "locator": "30:51-30:58",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "54",
                "locator": "34:1-35:54",
                "name": "CalendarAgeInMonthsAt",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "54",
                      "s": [
                        {
                          "value": [
                            "/*CalendarAgeInMonthsAt calculates the calendar age (meaning the age without considering time components) in months.*/",
                            "define function ",
                            "\"CalendarAgeInMonthsAt\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "47",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "AsOf",
                            " "
                          ]
                        },
                        {
                          "r": "48",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "53",
                          "s": [
                            {
                              "r": "53",
                              "s": [
                                {
                                  "value": [
                                    "months between "
                                  ]
                                },
                                {
                                  "r": "50",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "49",
                                      "s": [
                                        {
                                          "value": [
                                            "BirthDateTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "and "
                                  ]
                                },
                                {
                                  "r": "52",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "51",
                                      "s": [
                                        {
                                          "value": [
                                            "AsOf"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "53",
                  "locator": "35:3-35:54",
                  "precision": "Month",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "50",
                      "locator": "35:18-35:38",
                      "type": "ToDate",
                      "operand": {
                        "localId": "49",
                        "locator": "35:25-35:37",
                        "name": "BirthDateTime",
                        "type": "OperandRef"
                      }
                    },
                    {
                      "localId": "52",
                      "locator": "35:43-35:54",
                      "type": "ToDate",
                      "operand": {
                        "localId": "51",
                        "locator": "35:50-35:53",
                        "name": "AsOf",
                        "type": "OperandRef"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "47",
                      "locator": "34:55-34:62",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "48",
                      "locator": "34:70-34:77",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "59",
                "locator": "38:1-39:47",
                "name": "CalendarAgeInMonths",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "59",
                      "s": [
                        {
                          "value": [
                            "/*CalendarAgeInMonths calculates the calendar age (meaning the age without considering time components) in months as of today.*/",
                            "define function ",
                            "\"CalendarAgeInMonths\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "55",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "58",
                          "s": [
                            {
                              "r": "58",
                              "s": [
                                {
                                  "value": [
                                    "CalendarAgeInMonthsAt",
                                    "("
                                  ]
                                },
                                {
                                  "r": "56",
                                  "s": [
                                    {
                                      "value": [
                                        "BirthDateTime"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "57",
                                  "s": [
                                    {
                                      "value": [
                                        "Today",
                                        "()"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "58",
                  "locator": "39:3-39:47",
                  "name": "CalendarAgeInMonthsAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "56",
                      "locator": "39:25-39:37",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "type": "ToDateTime",
                      "operand": {
                        "localId": "57",
                        "locator": "39:40-39:46",
                        "type": "Today"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "55",
                      "locator": "38:53-38:60",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "67",
                "locator": "42:1-43:53",
                "name": "CalendarAgeInYearsAt",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "67",
                      "s": [
                        {
                          "value": [
                            "/*CalendarAgeInYearsAt calculates the calendar age (meaning the age without considering time components) in years.*/",
                            "define function ",
                            "\"CalendarAgeInYearsAt\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "60",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "AsOf",
                            " "
                          ]
                        },
                        {
                          "r": "61",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "66",
                          "s": [
                            {
                              "r": "66",
                              "s": [
                                {
                                  "value": [
                                    "years between "
                                  ]
                                },
                                {
                                  "r": "63",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "62",
                                      "s": [
                                        {
                                          "value": [
                                            "BirthDateTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "and "
                                  ]
                                },
                                {
                                  "r": "65",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "64",
                                      "s": [
                                        {
                                          "value": [
                                            "AsOf"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "66",
                  "locator": "43:3-43:53",
                  "precision": "Year",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "63",
                      "locator": "43:17-43:37",
                      "type": "ToDate",
                      "operand": {
                        "localId": "62",
                        "locator": "43:24-43:36",
                        "name": "BirthDateTime",
                        "type": "OperandRef"
                      }
                    },
                    {
                      "localId": "65",
                      "locator": "43:42-43:53",
                      "type": "ToDate",
                      "operand": {
                        "localId": "64",
                        "locator": "43:49-43:52",
                        "name": "AsOf",
                        "type": "OperandRef"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "60",
                      "locator": "42:54-42:61",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "61",
                      "locator": "42:69-42:76",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "72",
                "locator": "46:1-47:46",
                "name": "CalendarAgeInYears",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "72",
                      "s": [
                        {
                          "value": [
                            "/*CalendarAgeInYears calculates the calendar age (meaning the age without considering time components) in years as of today.*/",
                            "define function ",
                            "\"CalendarAgeInYears\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "68",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "71",
                          "s": [
                            {
                              "r": "71",
                              "s": [
                                {
                                  "value": [
                                    "CalendarAgeInYearsAt",
                                    "("
                                  ]
                                },
                                {
                                  "r": "69",
                                  "s": [
                                    {
                                      "value": [
                                        "BirthDateTime"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "70",
                                  "s": [
                                    {
                                      "value": [
                                        "Today",
                                        "()"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "71",
                  "locator": "47:3-47:46",
                  "name": "CalendarAgeInYearsAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "69",
                      "locator": "47:24-47:36",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "type": "ToDateTime",
                      "operand": {
                        "localId": "70",
                        "locator": "47:39-47:45",
                        "type": "Today"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "68",
                      "locator": "46:52-46:59",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "108",
                "locator": "54:1-62:71",
                "name": "HospitalizationLocations",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "108",
                      "s": [
                        {
                          "value": [
                            "/* returns list of all locations within an encounter, including locations for immediately prior ED visit. */",
                            "define function ",
                            "\"HospitalizationLocations\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "76",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "107",
                          "s": [
                            {
                              "r": "107",
                              "s": [
                                {
                                  "s": [
                                    {
                                      "r": "78",
                                      "s": [
                                        {
                                          "r": "77",
                                          "s": [
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "Encounter"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "Visit"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  \t"
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "let "
                                      ]
                                    },
                                    {
                                      "r": "94",
                                      "s": [
                                        {
                                          "value": [
                                            "EDVisit",
                                            ": "
                                          ]
                                        },
                                        {
                                          "r": "93",
                                          "s": [
                                            {
                                              "value": [
                                                "Last",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "92",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "r": "80",
                                                      "s": [
                                                        {
                                                          "r": "79",
                                                          "s": [
                                                            {
                                                              "r": "79",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Encounter, Performed\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Emergency Department Visit\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " ",
                                                            "LastED"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "87",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "where "
                                                      ]
                                                    },
                                                    {
                                                      "r": "87",
                                                      "s": [
                                                        {
                                                          "r": "82",
                                                          "s": [
                                                            {
                                                              "r": "81",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "LastED"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "82",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "87",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "ends "
                                                              ]
                                                            },
                                                            {
                                                              "r": "86",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "1 ",
                                                                    "hour"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " or less on or before"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "85",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "start of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "84",
                                                              "s": [
                                                                {
                                                                  "r": "83",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "Visit"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "84",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "relevantPeriod"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "91",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "sort by \n  \t\t\t"
                                                      ]
                                                    },
                                                    {
                                                      "r": "90",
                                                      "s": [
                                                        {
                                                          "r": "89",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "end of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "88",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t)"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  \t"
                                  ]
                                },
                                {
                                  "r": "106",
                                  "s": [
                                    {
                                      "value": [
                                        "return "
                                      ]
                                    },
                                    {
                                      "r": "105",
                                      "s": [
                                        {
                                          "value": [
                                            "if "
                                          ]
                                        },
                                        {
                                          "r": "96",
                                          "s": [
                                            {
                                              "r": "95",
                                              "s": [
                                                {
                                                  "value": [
                                                    "EDVisit"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " is null"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " then "
                                          ]
                                        },
                                        {
                                          "r": "98",
                                          "s": [
                                            {
                                              "r": "97",
                                              "s": [
                                                {
                                                  "value": [
                                                    "Visit"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "98",
                                              "s": [
                                                {
                                                  "value": [
                                                    "facilityLocations"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " \n  \t\telse "
                                          ]
                                        },
                                        {
                                          "r": "104",
                                          "s": [
                                            {
                                              "value": [
                                                "flatten "
                                              ]
                                            },
                                            {
                                              "r": "103",
                                              "s": [
                                                {
                                                  "value": [
                                                    "{ "
                                                  ]
                                                },
                                                {
                                                  "r": "100",
                                                  "s": [
                                                    {
                                                      "r": "99",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "EDVisit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "100",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "facilityLocations"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ", "
                                                  ]
                                                },
                                                {
                                                  "r": "102",
                                                  "s": [
                                                    {
                                                      "r": "101",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Visit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "102",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "facilityLocations"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " }"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "107",
                  "locator": "55:3-62:71",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "78",
                      "locator": "55:3-55:17",
                      "alias": "Visit",
                      "expression": {
                        "localId": "77",
                        "locator": "55:3-55:11",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    }
                  ],
                  "let": [
                    {
                      "localId": "94",
                      "locator": "56:8-60:4",
                      "identifier": "EDVisit",
                      "expression": {
                        "localId": "93",
                        "locator": "56:17-60:4",
                        "type": "Last",
                        "source": {
                          "localId": "92",
                          "locator": "56:22-59:26",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "80",
                              "locator": "56:22-56:82",
                              "alias": "LastED",
                              "expression": {
                                "localId": "79",
                                "locator": "56:22-56:75",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                                "templateId": "PositiveEncounterPerformed",
                                "codeProperty": "code",
                                "codeComparator": "in",
                                "type": "Retrieve",
                                "codes": {
                                  "locator": "56:47-56:74",
                                  "name": "Emergency Department Visit",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [],
                          "where": {
                            "localId": "87",
                            "locator": "57:6-57:95",
                            "type": "And",
                            "operand": [
                              {
                                "locator": "57:39-57:52",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "57:34-57:37",
                                    "type": "End",
                                    "operand": {
                                      "localId": "82",
                                      "locator": "57:12-57:32",
                                      "path": "relevantPeriod",
                                      "scope": "LastED",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "locator": "57:39-57:52",
                                    "lowClosed": true,
                                    "highClosed": true,
                                    "type": "Interval",
                                    "low": {
                                      "locator": "57:67-57:95",
                                      "type": "Subtract",
                                      "operand": [
                                        {
                                          "localId": "85",
                                          "locator": "57:67-57:95",
                                          "type": "Start",
                                          "operand": {
                                            "localId": "84",
                                            "locator": "57:76-57:95",
                                            "path": "relevantPeriod",
                                            "scope": "Visit",
                                            "type": "Property"
                                          }
                                        },
                                        {
                                          "localId": "86",
                                          "locator": "57:39-57:44",
                                          "value": 1,
                                          "unit": "hour",
                                          "type": "Quantity"
                                        }
                                      ]
                                    },
                                    "high": {
                                      "localId": "85",
                                      "locator": "57:67-57:95",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "84",
                                        "locator": "57:76-57:95",
                                        "path": "relevantPeriod",
                                        "scope": "Visit",
                                        "type": "Property"
                                      }
                                    }
                                  }
                                ]
                              },
                              {
                                "locator": "57:39-57:52",
                                "type": "Not",
                                "operand": {
                                  "locator": "57:39-57:52",
                                  "type": "IsNull",
                                  "operand": {
                                    "localId": "85",
                                    "locator": "57:67-57:95",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "84",
                                      "locator": "57:76-57:95",
                                      "path": "relevantPeriod",
                                      "scope": "Visit",
                                      "type": "Property"
                                    }
                                  }
                                }
                              }
                            ]
                          },
                          "sort": {
                            "localId": "91",
                            "locator": "58:6-59:26",
                            "by": [
                              {
                                "localId": "90",
                                "locator": "59:6-59:26",
                                "direction": "asc",
                                "type": "ByExpression",
                                "expression": {
                                  "localId": "89",
                                  "locator": "59:6-59:26",
                                  "type": "End",
                                  "operand": {
                                    "localId": "88",
                                    "locator": "59:13-59:26",
                                    "name": "relevantPeriod",
                                    "type": "IdentifierRef"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  ],
                  "relationship": [],
                  "return": {
                    "localId": "106",
                    "locator": "61:4-62:71",
                    "expression": {
                      "localId": "105",
                      "locator": "61:11-62:71",
                      "type": "If",
                      "condition": {
                        "localId": "96",
                        "locator": "61:14-61:28",
                        "type": "IsNull",
                        "operand": {
                          "localId": "95",
                          "locator": "61:14-61:20",
                          "name": "EDVisit",
                          "type": "QueryLetRef"
                        }
                      },
                      "then": {
                        "localId": "98",
                        "locator": "61:35-61:57",
                        "path": "facilityLocations",
                        "scope": "Visit",
                        "type": "Property"
                      },
                      "else": {
                        "localId": "104",
                        "locator": "62:10-62:71",
                        "type": "Flatten",
                        "operand": {
                          "localId": "103",
                          "locator": "62:18-62:71",
                          "type": "List",
                          "element": [
                            {
                              "localId": "100",
                              "locator": "62:20-62:44",
                              "path": "facilityLocations",
                              "type": "Property",
                              "source": {
                                "localId": "99",
                                "locator": "62:20-62:26",
                                "name": "EDVisit",
                                "type": "QueryLetRef"
                              }
                            },
                            {
                              "localId": "102",
                              "locator": "62:47-62:69",
                              "path": "facilityLocations",
                              "scope": "Visit",
                              "type": "Property"
                            }
                          ]
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "76",
                      "locator": "54:54-54:75",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "125",
                "locator": "66:1-70:18",
                "name": "EmergencyDepartmentArrivalTime",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "125",
                      "s": [
                        {
                          "value": [
                            "/*Returns the arrival time in the ED for the encounter.  \n*/",
                            "define function ",
                            "\"EmergencyDepartmentArrivalTime\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "109",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "124",
                          "s": [
                            {
                              "r": "124",
                              "s": [
                                {
                                  "value": [
                                    "start of "
                                  ]
                                },
                                {
                                  "r": "123",
                                  "s": [
                                    {
                                      "r": "122",
                                      "s": [
                                        {
                                          "value": [
                                            "First",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "121",
                                          "s": [
                                            {
                                              "s": [
                                                {
                                                  "r": "112",
                                                  "s": [
                                                    {
                                                      "r": "111",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "("
                                                          ]
                                                        },
                                                        {
                                                          "r": "111",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"HospitalizationLocations\"",
                                                                "("
                                                              ]
                                                            },
                                                            {
                                                              "r": "110",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "Encounter"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                ")"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            ")"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "HospitalLocation"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t\t"
                                              ]
                                            },
                                            {
                                              "r": "116",
                                              "s": [
                                                {
                                                  "value": [
                                                    "where "
                                                  ]
                                                },
                                                {
                                                  "r": "116",
                                                  "s": [
                                                    {
                                                      "r": "114",
                                                      "s": [
                                                        {
                                                          "r": "113",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "HospitalLocation"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "114",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "code"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " in "
                                                      ]
                                                    },
                                                    {
                                                      "r": "115",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Emergency Department Visit\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t\t"
                                              ]
                                            },
                                            {
                                              "r": "120",
                                              "s": [
                                                {
                                                  "value": [
                                                    "sort by "
                                                  ]
                                                },
                                                {
                                                  "r": "119",
                                                  "s": [
                                                    {
                                                      "r": "118",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "117",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "locationPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n  )"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "123",
                                      "s": [
                                        {
                                          "value": [
                                            "locationPeriod"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "124",
                  "locator": "67:3-70:18",
                  "type": "Start",
                  "operand": {
                    "localId": "123",
                    "locator": "67:12-70:18",
                    "path": "locationPeriod",
                    "type": "Property",
                    "source": {
                      "localId": "122",
                      "locator": "67:12-70:3",
                      "type": "First",
                      "source": {
                        "localId": "121",
                        "locator": "67:18-69:35",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "112",
                            "locator": "67:18-67:72",
                            "alias": "HospitalLocation",
                            "expression": {
                              "localId": "111",
                              "locator": "67:18-67:56",
                              "name": "HospitalizationLocations",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "110",
                                  "locator": "67:46-67:54",
                                  "name": "Encounter",
                                  "type": "OperandRef"
                                }
                              ]
                            }
                          }
                        ],
                        "relationship": [],
                        "where": {
                          "localId": "116",
                          "locator": "68:5-68:63",
                          "type": "InValueSet",
                          "code": {
                            "localId": "114",
                            "locator": "68:11-68:31",
                            "path": "code",
                            "scope": "HospitalLocation",
                            "type": "Property"
                          },
                          "valueset": {
                            "localId": "115",
                            "locator": "68:36-68:63",
                            "name": "Emergency Department Visit",
                            "type": "ValueSetRef"
                          }
                        },
                        "sort": {
                          "localId": "120",
                          "locator": "69:5-69:35",
                          "by": [
                            {
                              "localId": "119",
                              "locator": "69:13-69:35",
                              "direction": "asc",
                              "type": "ByExpression",
                              "expression": {
                                "localId": "118",
                                "locator": "69:13-69:35",
                                "type": "Start",
                                "operand": {
                                  "localId": "117",
                                  "locator": "69:22-69:35",
                                  "name": "locationPeriod",
                                  "type": "IdentifierRef"
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "109",
                      "locator": "66:60-66:81",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "160",
                "locator": "83:1-91:31",
                "name": "Hospitalization",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "160",
                      "s": [
                        {
                          "value": [
                            "/*Hospitalization returns the total interval for admission to discharge for the given encounter, or for the admission of any immediately prior emergency department visit to the discharge of the given encounter.*/",
                            "define function ",
                            "\"Hospitalization\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "128",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "159",
                          "s": [
                            {
                              "r": "159",
                              "s": [
                                {
                                  "s": [
                                    {
                                      "r": "130",
                                      "s": [
                                        {
                                          "r": "129",
                                          "s": [
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "Encounter"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "Visit"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  \t"
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "let "
                                      ]
                                    },
                                    {
                                      "r": "146",
                                      "s": [
                                        {
                                          "value": [
                                            "EDVisit",
                                            ": "
                                          ]
                                        },
                                        {
                                          "r": "145",
                                          "s": [
                                            {
                                              "value": [
                                                "Last",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "144",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "r": "132",
                                                      "s": [
                                                        {
                                                          "r": "131",
                                                          "s": [
                                                            {
                                                              "r": "131",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Encounter, Performed\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Emergency Department Visit\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " ",
                                                            "LastED"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "139",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "where "
                                                      ]
                                                    },
                                                    {
                                                      "r": "139",
                                                      "s": [
                                                        {
                                                          "r": "134",
                                                          "s": [
                                                            {
                                                              "r": "133",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "LastED"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "134",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "139",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "ends "
                                                              ]
                                                            },
                                                            {
                                                              "r": "138",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "1 ",
                                                                    "hour"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " or less on or before"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "137",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "start of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "136",
                                                              "s": [
                                                                {
                                                                  "r": "135",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "Visit"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "136",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "relevantPeriod"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "143",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "sort by \n  \t\t\t"
                                                      ]
                                                    },
                                                    {
                                                      "r": "142",
                                                      "s": [
                                                        {
                                                          "r": "141",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "end of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "140",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t)"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  \t"
                                  ]
                                },
                                {
                                  "r": "158",
                                  "s": [
                                    {
                                      "value": [
                                        "return "
                                      ]
                                    },
                                    {
                                      "r": "157",
                                      "s": [
                                        {
                                          "value": [
                                            "Interval["
                                          ]
                                        },
                                        {
                                          "r": "153",
                                          "s": [
                                            {
                                              "value": [
                                                "Coalesce",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "149",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "148",
                                                  "s": [
                                                    {
                                                      "r": "147",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "EDVisit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "148",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ", "
                                              ]
                                            },
                                            {
                                              "r": "152",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "151",
                                                  "s": [
                                                    {
                                                      "r": "150",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Visit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "151",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ", \n  \t"
                                          ]
                                        },
                                        {
                                          "r": "156",
                                          "s": [
                                            {
                                              "value": [
                                                "end of "
                                              ]
                                            },
                                            {
                                              "r": "155",
                                              "s": [
                                                {
                                                  "r": "154",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Visit"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "155",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "]"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "159",
                  "locator": "84:3-91:31",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "130",
                      "locator": "84:3-84:17",
                      "alias": "Visit",
                      "expression": {
                        "localId": "129",
                        "locator": "84:3-84:11",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    }
                  ],
                  "let": [
                    {
                      "localId": "146",
                      "locator": "85:8-89:4",
                      "identifier": "EDVisit",
                      "expression": {
                        "localId": "145",
                        "locator": "85:17-89:4",
                        "type": "Last",
                        "source": {
                          "localId": "144",
                          "locator": "85:22-88:26",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "132",
                              "locator": "85:22-85:82",
                              "alias": "LastED",
                              "expression": {
                                "localId": "131",
                                "locator": "85:22-85:75",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                                "templateId": "PositiveEncounterPerformed",
                                "codeProperty": "code",
                                "codeComparator": "in",
                                "type": "Retrieve",
                                "codes": {
                                  "locator": "85:47-85:74",
                                  "name": "Emergency Department Visit",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [],
                          "where": {
                            "localId": "139",
                            "locator": "86:6-86:95",
                            "type": "And",
                            "operand": [
                              {
                                "locator": "86:39-86:52",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "86:34-86:37",
                                    "type": "End",
                                    "operand": {
                                      "localId": "134",
                                      "locator": "86:12-86:32",
                                      "path": "relevantPeriod",
                                      "scope": "LastED",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "locator": "86:39-86:52",
                                    "lowClosed": true,
                                    "highClosed": true,
                                    "type": "Interval",
                                    "low": {
                                      "locator": "86:67-86:95",
                                      "type": "Subtract",
                                      "operand": [
                                        {
                                          "localId": "137",
                                          "locator": "86:67-86:95",
                                          "type": "Start",
                                          "operand": {
                                            "localId": "136",
                                            "locator": "86:76-86:95",
                                            "path": "relevantPeriod",
                                            "scope": "Visit",
                                            "type": "Property"
                                          }
                                        },
                                        {
                                          "localId": "138",
                                          "locator": "86:39-86:44",
                                          "value": 1,
                                          "unit": "hour",
                                          "type": "Quantity"
                                        }
                                      ]
                                    },
                                    "high": {
                                      "localId": "137",
                                      "locator": "86:67-86:95",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "136",
                                        "locator": "86:76-86:95",
                                        "path": "relevantPeriod",
                                        "scope": "Visit",
                                        "type": "Property"
                                      }
                                    }
                                  }
                                ]
                              },
                              {
                                "locator": "86:39-86:52",
                                "type": "Not",
                                "operand": {
                                  "locator": "86:39-86:52",
                                  "type": "IsNull",
                                  "operand": {
                                    "localId": "137",
                                    "locator": "86:67-86:95",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "136",
                                      "locator": "86:76-86:95",
                                      "path": "relevantPeriod",
                                      "scope": "Visit",
                                      "type": "Property"
                                    }
                                  }
                                }
                              }
                            ]
                          },
                          "sort": {
                            "localId": "143",
                            "locator": "87:6-88:26",
                            "by": [
                              {
                                "localId": "142",
                                "locator": "88:6-88:26",
                                "direction": "asc",
                                "type": "ByExpression",
                                "expression": {
                                  "localId": "141",
                                  "locator": "88:6-88:26",
                                  "type": "End",
                                  "operand": {
                                    "localId": "140",
                                    "locator": "88:13-88:26",
                                    "name": "relevantPeriod",
                                    "type": "IdentifierRef"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  ],
                  "relationship": [],
                  "return": {
                    "localId": "158",
                    "locator": "90:4-91:31",
                    "expression": {
                      "localId": "157",
                      "locator": "90:11-91:31",
                      "lowClosed": true,
                      "highClosed": true,
                      "type": "Interval",
                      "low": {
                        "localId": "153",
                        "locator": "90:20-90:91",
                        "type": "Coalesce",
                        "operand": [
                          {
                            "localId": "149",
                            "locator": "90:29-90:59",
                            "type": "Start",
                            "operand": {
                              "localId": "148",
                              "locator": "90:38-90:59",
                              "path": "relevantPeriod",
                              "type": "Property",
                              "source": {
                                "localId": "147",
                                "locator": "90:38-90:44",
                                "name": "EDVisit",
                                "type": "QueryLetRef"
                              }
                            }
                          },
                          {
                            "localId": "152",
                            "locator": "90:62-90:90",
                            "type": "Start",
                            "operand": {
                              "localId": "151",
                              "locator": "90:71-90:90",
                              "path": "relevantPeriod",
                              "scope": "Visit",
                              "type": "Property"
                            }
                          }
                        ]
                      },
                      "high": {
                        "localId": "156",
                        "locator": "91:4-91:30",
                        "type": "End",
                        "operand": {
                          "localId": "155",
                          "locator": "91:11-91:30",
                          "path": "relevantPeriod",
                          "scope": "Visit",
                          "type": "Property"
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "128",
                      "locator": "83:45-83:66",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "163",
                "locator": "73:1-74:39",
                "name": "HospitalAdmissionTime",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "163",
                      "s": [
                        {
                          "value": [
                            "/*Returns admission time for an encounter or for immediately prior emergency department visit.  */",
                            "define function ",
                            "\"HospitalAdmissionTime\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "126",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "162",
                          "s": [
                            {
                              "r": "162",
                              "s": [
                                {
                                  "value": [
                                    "start of "
                                  ]
                                },
                                {
                                  "r": "161",
                                  "s": [
                                    {
                                      "value": [
                                        "\"Hospitalization\"",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "127",
                                      "s": [
                                        {
                                          "value": [
                                            "Encounter"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "162",
                  "locator": "74:3-74:39",
                  "type": "Start",
                  "operand": {
                    "localId": "161",
                    "locator": "74:12-74:39",
                    "name": "Hospitalization",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "127",
                        "locator": "74:30-74:38",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    ]
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "126",
                      "locator": "73:51-73:72",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "176",
                "locator": "77:1-80:18",
                "name": "HospitalArrivalTime",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "176",
                      "s": [
                        {
                          "value": [
                            "/*Returns earliest arrival time for an encounter including any prior ED visit. */",
                            "define function ",
                            "\"HospitalArrivalTime\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "164",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "175",
                          "s": [
                            {
                              "r": "175",
                              "s": [
                                {
                                  "value": [
                                    "start of "
                                  ]
                                },
                                {
                                  "r": "174",
                                  "s": [
                                    {
                                      "r": "173",
                                      "s": [
                                        {
                                          "value": [
                                            "First",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "172",
                                          "s": [
                                            {
                                              "s": [
                                                {
                                                  "r": "167",
                                                  "s": [
                                                    {
                                                      "r": "166",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "("
                                                          ]
                                                        },
                                                        {
                                                          "r": "166",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"HospitalizationLocations\"",
                                                                "("
                                                              ]
                                                            },
                                                            {
                                                              "r": "165",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "Encounter"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                ")"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            ")"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "HospitalLocation"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t\t"
                                              ]
                                            },
                                            {
                                              "r": "171",
                                              "s": [
                                                {
                                                  "value": [
                                                    "sort by "
                                                  ]
                                                },
                                                {
                                                  "r": "170",
                                                  "s": [
                                                    {
                                                      "r": "169",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "168",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "locationPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n  )"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "174",
                                      "s": [
                                        {
                                          "value": [
                                            "locationPeriod"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "175",
                  "locator": "78:3-80:18",
                  "type": "Start",
                  "operand": {
                    "localId": "174",
                    "locator": "78:12-80:18",
                    "path": "locationPeriod",
                    "type": "Property",
                    "source": {
                      "localId": "173",
                      "locator": "78:12-80:3",
                      "type": "First",
                      "source": {
                        "localId": "172",
                        "locator": "78:18-79:35",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "167",
                            "locator": "78:18-78:72",
                            "alias": "HospitalLocation",
                            "expression": {
                              "localId": "166",
                              "locator": "78:18-78:56",
                              "name": "HospitalizationLocations",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "165",
                                  "locator": "78:46-78:54",
                                  "name": "Encounter",
                                  "type": "OperandRef"
                                }
                              ]
                            }
                          }
                        ],
                        "relationship": [],
                        "sort": {
                          "localId": "171",
                          "locator": "79:5-79:35",
                          "by": [
                            {
                              "localId": "170",
                              "locator": "79:13-79:35",
                              "direction": "asc",
                              "type": "ByExpression",
                              "expression": {
                                "localId": "169",
                                "locator": "79:13-79:35",
                                "type": "Start",
                                "operand": {
                                  "localId": "168",
                                  "locator": "79:22-79:35",
                                  "name": "locationPeriod",
                                  "type": "IdentifierRef"
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "164",
                      "locator": "77:49-77:70",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "183",
                "locator": "94:1-95:44",
                "name": "HospitalizationLengthofStay",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "183",
                      "s": [
                        {
                          "value": [
                            "/*Returns the length of stay in days (i.e. the number of days between admission and discharge) for the given encounter, or from the admission of any immediately prior emergency department visit to the discharge of the encounter*/",
                            "define function ",
                            "\"HospitalizationLengthofStay\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "179",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "182",
                          "s": [
                            {
                              "r": "182",
                              "s": [
                                {
                                  "value": [
                                    "LengthInDays",
                                    "("
                                  ]
                                },
                                {
                                  "r": "181",
                                  "s": [
                                    {
                                      "value": [
                                        "\"Hospitalization\"",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "180",
                                      "s": [
                                        {
                                          "value": [
                                            "Encounter"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "182",
                  "locator": "95:3-95:44",
                  "name": "LengthInDays",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "181",
                      "locator": "95:16-95:43",
                      "name": "Hospitalization",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "180",
                          "locator": "95:34-95:42",
                          "name": "Encounter",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "179",
                      "locator": "94:57-94:78",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "196",
                "locator": "98:1-101:18",
                "name": "HospitalDepartureTime",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "196",
                      "s": [
                        {
                          "value": [
                            "/*Returns the latest departure time for encounter including any prior ED visit. */",
                            "define function ",
                            "\"HospitalDepartureTime\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "184",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "195",
                          "s": [
                            {
                              "r": "195",
                              "s": [
                                {
                                  "value": [
                                    "end of "
                                  ]
                                },
                                {
                                  "r": "194",
                                  "s": [
                                    {
                                      "r": "193",
                                      "s": [
                                        {
                                          "value": [
                                            "Last",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "192",
                                          "s": [
                                            {
                                              "s": [
                                                {
                                                  "r": "187",
                                                  "s": [
                                                    {
                                                      "r": "186",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "("
                                                          ]
                                                        },
                                                        {
                                                          "r": "186",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"HospitalizationLocations\"",
                                                                "("
                                                              ]
                                                            },
                                                            {
                                                              "r": "185",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "Encounter"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                ")"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            ")"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "HospitalLocation"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t\t"
                                              ]
                                            },
                                            {
                                              "r": "191",
                                              "s": [
                                                {
                                                  "value": [
                                                    "sort by "
                                                  ]
                                                },
                                                {
                                                  "r": "190",
                                                  "s": [
                                                    {
                                                      "r": "189",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "188",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "locationPeriod"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n  )"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "194",
                                      "s": [
                                        {
                                          "value": [
                                            "locationPeriod"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "195",
                  "locator": "99:3-101:18",
                  "type": "End",
                  "operand": {
                    "localId": "194",
                    "locator": "99:10-101:18",
                    "path": "locationPeriod",
                    "type": "Property",
                    "source": {
                      "localId": "193",
                      "locator": "99:10-101:3",
                      "type": "Last",
                      "source": {
                        "localId": "192",
                        "locator": "99:15-100:35",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "187",
                            "locator": "99:15-99:69",
                            "alias": "HospitalLocation",
                            "expression": {
                              "localId": "186",
                              "locator": "99:15-99:53",
                              "name": "HospitalizationLocations",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "185",
                                  "locator": "99:43-99:51",
                                  "name": "Encounter",
                                  "type": "OperandRef"
                                }
                              ]
                            }
                          }
                        ],
                        "relationship": [],
                        "sort": {
                          "localId": "191",
                          "locator": "100:5-100:35",
                          "by": [
                            {
                              "localId": "190",
                              "locator": "100:13-100:35",
                              "direction": "asc",
                              "type": "ByExpression",
                              "expression": {
                                "localId": "189",
                                "locator": "100:13-100:35",
                                "type": "Start",
                                "operand": {
                                  "localId": "188",
                                  "locator": "100:22-100:35",
                                  "name": "locationPeriod",
                                  "type": "IdentifierRef"
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "184",
                      "locator": "98:51-98:72",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "201",
                "locator": "104:1-105:33",
                "name": "HospitalDischargeTime",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "201",
                      "s": [
                        {
                          "value": [
                            "/*Hospital Discharge Time returns the discharge time for an encounter*/",
                            "define function ",
                            "\"HospitalDischargeTime\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "197",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "200",
                          "s": [
                            {
                              "r": "200",
                              "s": [
                                {
                                  "value": [
                                    "end of "
                                  ]
                                },
                                {
                                  "r": "199",
                                  "s": [
                                    {
                                      "r": "198",
                                      "s": [
                                        {
                                          "value": [
                                            "Encounter"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "199",
                                      "s": [
                                        {
                                          "value": [
                                            "relevantPeriod"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "200",
                  "locator": "105:3-105:33",
                  "type": "End",
                  "operand": {
                    "localId": "199",
                    "locator": "105:10-105:33",
                    "path": "relevantPeriod",
                    "type": "Property",
                    "source": {
                      "localId": "198",
                      "locator": "105:10-105:18",
                      "name": "Encounter",
                      "type": "OperandRef"
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "197",
                      "locator": "104:51-104:72",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "274",
                "locator": "108:1-128:31",
                "name": "HospitalizationWithObservationAndOutpatientSurgeryService",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "274",
                      "s": [
                        {
                          "value": [
                            "/*Hospitalization with Observation and Outpatient Surgery Service returns the total interval from the start of any immediately prior emergency department visit, outpatient surgery visit or observation visit to the discharge of the given encounter.*/",
                            "define function ",
                            "\"HospitalizationWithObservationAndOutpatientSurgeryService\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "202",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "273",
                          "s": [
                            {
                              "r": "273",
                              "s": [
                                {
                                  "s": [
                                    {
                                      "r": "204",
                                      "s": [
                                        {
                                          "r": "203",
                                          "s": [
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "Encounter"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "Visit"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  \t"
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "let "
                                      ]
                                    },
                                    {
                                      "r": "220",
                                      "s": [
                                        {
                                          "value": [
                                            "ObsVisit",
                                            ": "
                                          ]
                                        },
                                        {
                                          "r": "219",
                                          "s": [
                                            {
                                              "value": [
                                                "Last",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "218",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "r": "206",
                                                      "s": [
                                                        {
                                                          "r": "205",
                                                          "s": [
                                                            {
                                                              "r": "205",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Encounter, Performed\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Observation Services\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " ",
                                                            "LastObs"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "213",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "where "
                                                      ]
                                                    },
                                                    {
                                                      "r": "213",
                                                      "s": [
                                                        {
                                                          "r": "208",
                                                          "s": [
                                                            {
                                                              "r": "207",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "LastObs"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "208",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "213",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "ends "
                                                              ]
                                                            },
                                                            {
                                                              "r": "212",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "1 ",
                                                                    "hour"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " or less on or before"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "211",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "start of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "210",
                                                              "s": [
                                                                {
                                                                  "r": "209",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "Visit"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "210",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "relevantPeriod"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "217",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "sort by \n  \t\t\t"
                                                      ]
                                                    },
                                                    {
                                                      "r": "216",
                                                      "s": [
                                                        {
                                                          "r": "215",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "end of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "214",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t)"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ",\n  \t"
                                      ]
                                    },
                                    {
                                      "r": "228",
                                      "s": [
                                        {
                                          "value": [
                                            "VisitStart",
                                            ": "
                                          ]
                                        },
                                        {
                                          "r": "227",
                                          "s": [
                                            {
                                              "value": [
                                                "Coalesce",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "223",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "222",
                                                  "s": [
                                                    {
                                                      "r": "221",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "ObsVisit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "222",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ", "
                                              ]
                                            },
                                            {
                                              "r": "226",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "225",
                                                  "s": [
                                                    {
                                                      "r": "224",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Visit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "225",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ",\n  \t"
                                      ]
                                    },
                                    {
                                      "r": "242",
                                      "s": [
                                        {
                                          "value": [
                                            "EDVisit",
                                            ": "
                                          ]
                                        },
                                        {
                                          "r": "241",
                                          "s": [
                                            {
                                              "value": [
                                                "Last",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "240",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "r": "230",
                                                      "s": [
                                                        {
                                                          "r": "229",
                                                          "s": [
                                                            {
                                                              "r": "229",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Encounter, Performed\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Emergency Department Visit\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " ",
                                                            "LastED"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "235",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "where "
                                                      ]
                                                    },
                                                    {
                                                      "r": "235",
                                                      "s": [
                                                        {
                                                          "r": "232",
                                                          "s": [
                                                            {
                                                              "r": "231",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "LastED"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "232",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "235",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "ends "
                                                              ]
                                                            },
                                                            {
                                                              "r": "234",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "1 ",
                                                                    "hour"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " or less on or before"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "233",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "VisitStart"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "239",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "sort by \n  \t\t\t"
                                                      ]
                                                    },
                                                    {
                                                      "r": "238",
                                                      "s": [
                                                        {
                                                          "r": "237",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "end of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "236",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t)"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ",\n  \t"
                                      ]
                                    },
                                    {
                                      "r": "248",
                                      "s": [
                                        {
                                          "value": [
                                            "VisitStartWithED",
                                            ": "
                                          ]
                                        },
                                        {
                                          "r": "247",
                                          "s": [
                                            {
                                              "value": [
                                                "Coalesce",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "245",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "244",
                                                  "s": [
                                                    {
                                                      "r": "243",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "EDVisit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "244",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ", "
                                              ]
                                            },
                                            {
                                              "r": "246",
                                              "s": [
                                                {
                                                  "value": [
                                                    "VisitStart"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ",\n  \t"
                                      ]
                                    },
                                    {
                                      "r": "262",
                                      "s": [
                                        {
                                          "value": [
                                            "OutpatientSurgeryVisit",
                                            ": "
                                          ]
                                        },
                                        {
                                          "r": "261",
                                          "s": [
                                            {
                                              "value": [
                                                "Last",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "260",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "r": "250",
                                                      "s": [
                                                        {
                                                          "r": "249",
                                                          "s": [
                                                            {
                                                              "r": "249",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Encounter, Performed\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Outpatient Surgery Service\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " ",
                                                            "LastSurgeryOP"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "255",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "where "
                                                      ]
                                                    },
                                                    {
                                                      "r": "255",
                                                      "s": [
                                                        {
                                                          "r": "252",
                                                          "s": [
                                                            {
                                                              "r": "251",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "LastSurgeryOP"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "252",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "255",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "ends "
                                                              ]
                                                            },
                                                            {
                                                              "r": "254",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "1 ",
                                                                    "hour"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " or less on or before"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "253",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "VisitStartWithED"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "259",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "sort by \n  \t\t\t"
                                                      ]
                                                    },
                                                    {
                                                      "r": "258",
                                                      "s": [
                                                        {
                                                          "r": "257",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "end of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "256",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t)"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  \t"
                                  ]
                                },
                                {
                                  "r": "272",
                                  "s": [
                                    {
                                      "value": [
                                        "return "
                                      ]
                                    },
                                    {
                                      "r": "271",
                                      "s": [
                                        {
                                          "value": [
                                            "Interval["
                                          ]
                                        },
                                        {
                                          "r": "267",
                                          "s": [
                                            {
                                              "value": [
                                                "Coalesce",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "265",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "264",
                                                  "s": [
                                                    {
                                                      "r": "263",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "OutpatientSurgeryVisit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "264",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ", "
                                              ]
                                            },
                                            {
                                              "r": "266",
                                              "s": [
                                                {
                                                  "value": [
                                                    "VisitStartWithED"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ", \n  \t"
                                          ]
                                        },
                                        {
                                          "r": "270",
                                          "s": [
                                            {
                                              "value": [
                                                "end of "
                                              ]
                                            },
                                            {
                                              "r": "269",
                                              "s": [
                                                {
                                                  "r": "268",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Visit"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "269",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "]"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "273",
                  "locator": "109:3-128:31",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "204",
                      "locator": "109:3-109:17",
                      "alias": "Visit",
                      "expression": {
                        "localId": "203",
                        "locator": "109:3-109:11",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    }
                  ],
                  "let": [
                    {
                      "localId": "220",
                      "locator": "110:8-114:4",
                      "identifier": "ObsVisit",
                      "expression": {
                        "localId": "219",
                        "locator": "110:18-114:4",
                        "type": "Last",
                        "source": {
                          "localId": "218",
                          "locator": "110:23-113:26",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "206",
                              "locator": "110:23-110:78",
                              "alias": "LastObs",
                              "expression": {
                                "localId": "205",
                                "locator": "110:23-110:70",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                                "templateId": "PositiveEncounterPerformed",
                                "codeProperty": "code",
                                "codeComparator": "in",
                                "type": "Retrieve",
                                "codes": {
                                  "locator": "110:48-110:69",
                                  "name": "Observation Services",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [],
                          "where": {
                            "localId": "213",
                            "locator": "111:6-111:96",
                            "type": "And",
                            "operand": [
                              {
                                "locator": "111:40-111:53",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "111:35-111:38",
                                    "type": "End",
                                    "operand": {
                                      "localId": "208",
                                      "locator": "111:12-111:33",
                                      "path": "relevantPeriod",
                                      "scope": "LastObs",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "locator": "111:40-111:53",
                                    "lowClosed": true,
                                    "highClosed": true,
                                    "type": "Interval",
                                    "low": {
                                      "locator": "111:68-111:96",
                                      "type": "Subtract",
                                      "operand": [
                                        {
                                          "localId": "211",
                                          "locator": "111:68-111:96",
                                          "type": "Start",
                                          "operand": {
                                            "localId": "210",
                                            "locator": "111:77-111:96",
                                            "path": "relevantPeriod",
                                            "scope": "Visit",
                                            "type": "Property"
                                          }
                                        },
                                        {
                                          "localId": "212",
                                          "locator": "111:40-111:45",
                                          "value": 1,
                                          "unit": "hour",
                                          "type": "Quantity"
                                        }
                                      ]
                                    },
                                    "high": {
                                      "localId": "211",
                                      "locator": "111:68-111:96",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "210",
                                        "locator": "111:77-111:96",
                                        "path": "relevantPeriod",
                                        "scope": "Visit",
                                        "type": "Property"
                                      }
                                    }
                                  }
                                ]
                              },
                              {
                                "locator": "111:40-111:53",
                                "type": "Not",
                                "operand": {
                                  "locator": "111:40-111:53",
                                  "type": "IsNull",
                                  "operand": {
                                    "localId": "211",
                                    "locator": "111:68-111:96",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "210",
                                      "locator": "111:77-111:96",
                                      "path": "relevantPeriod",
                                      "scope": "Visit",
                                      "type": "Property"
                                    }
                                  }
                                }
                              }
                            ]
                          },
                          "sort": {
                            "localId": "217",
                            "locator": "112:6-113:26",
                            "by": [
                              {
                                "localId": "216",
                                "locator": "113:6-113:26",
                                "direction": "asc",
                                "type": "ByExpression",
                                "expression": {
                                  "localId": "215",
                                  "locator": "113:6-113:26",
                                  "type": "End",
                                  "operand": {
                                    "localId": "214",
                                    "locator": "113:13-113:26",
                                    "name": "relevantPeriod",
                                    "type": "IdentifierRef"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "localId": "228",
                      "locator": "115:4-115:88",
                      "identifier": "VisitStart",
                      "expression": {
                        "localId": "227",
                        "locator": "115:16-115:88",
                        "type": "Coalesce",
                        "operand": [
                          {
                            "localId": "223",
                            "locator": "115:25-115:56",
                            "type": "Start",
                            "operand": {
                              "localId": "222",
                              "locator": "115:34-115:56",
                              "path": "relevantPeriod",
                              "type": "Property",
                              "source": {
                                "localId": "221",
                                "locator": "115:34-115:41",
                                "name": "ObsVisit",
                                "type": "QueryLetRef"
                              }
                            }
                          },
                          {
                            "localId": "226",
                            "locator": "115:59-115:87",
                            "type": "Start",
                            "operand": {
                              "localId": "225",
                              "locator": "115:68-115:87",
                              "path": "relevantPeriod",
                              "scope": "Visit",
                              "type": "Property"
                            }
                          }
                        ]
                      }
                    },
                    {
                      "localId": "242",
                      "locator": "116:4-120:4",
                      "identifier": "EDVisit",
                      "expression": {
                        "localId": "241",
                        "locator": "116:13-120:4",
                        "type": "Last",
                        "source": {
                          "localId": "240",
                          "locator": "116:18-119:26",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "230",
                              "locator": "116:18-116:78",
                              "alias": "LastED",
                              "expression": {
                                "localId": "229",
                                "locator": "116:18-116:71",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                                "templateId": "PositiveEncounterPerformed",
                                "codeProperty": "code",
                                "codeComparator": "in",
                                "type": "Retrieve",
                                "codes": {
                                  "locator": "116:43-116:70",
                                  "name": "Emergency Department Visit",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [],
                          "where": {
                            "localId": "235",
                            "locator": "117:6-117:76",
                            "type": "And",
                            "operand": [
                              {
                                "locator": "117:39-117:52",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "117:34-117:37",
                                    "type": "End",
                                    "operand": {
                                      "localId": "232",
                                      "locator": "117:12-117:32",
                                      "path": "relevantPeriod",
                                      "scope": "LastED",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "locator": "117:39-117:52",
                                    "lowClosed": true,
                                    "highClosed": true,
                                    "type": "Interval",
                                    "low": {
                                      "locator": "117:67-117:76",
                                      "type": "Subtract",
                                      "operand": [
                                        {
                                          "localId": "233",
                                          "locator": "117:67-117:76",
                                          "name": "VisitStart",
                                          "type": "QueryLetRef"
                                        },
                                        {
                                          "localId": "234",
                                          "locator": "117:39-117:44",
                                          "value": 1,
                                          "unit": "hour",
                                          "type": "Quantity"
                                        }
                                      ]
                                    },
                                    "high": {
                                      "localId": "233",
                                      "locator": "117:67-117:76",
                                      "name": "VisitStart",
                                      "type": "QueryLetRef"
                                    }
                                  }
                                ]
                              },
                              {
                                "locator": "117:39-117:52",
                                "type": "Not",
                                "operand": {
                                  "locator": "117:39-117:52",
                                  "type": "IsNull",
                                  "operand": {
                                    "localId": "233",
                                    "locator": "117:67-117:76",
                                    "name": "VisitStart",
                                    "type": "QueryLetRef"
                                  }
                                }
                              }
                            ]
                          },
                          "sort": {
                            "localId": "239",
                            "locator": "118:6-119:26",
                            "by": [
                              {
                                "localId": "238",
                                "locator": "119:6-119:26",
                                "direction": "asc",
                                "type": "ByExpression",
                                "expression": {
                                  "localId": "237",
                                  "locator": "119:6-119:26",
                                  "type": "End",
                                  "operand": {
                                    "localId": "236",
                                    "locator": "119:13-119:26",
                                    "name": "relevantPeriod",
                                    "type": "IdentifierRef"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "localId": "248",
                      "locator": "121:4-121:74",
                      "identifier": "VisitStartWithED",
                      "expression": {
                        "localId": "247",
                        "locator": "121:22-121:74",
                        "type": "Coalesce",
                        "operand": [
                          {
                            "localId": "245",
                            "locator": "121:31-121:61",
                            "type": "Start",
                            "operand": {
                              "localId": "244",
                              "locator": "121:40-121:61",
                              "path": "relevantPeriod",
                              "type": "Property",
                              "source": {
                                "localId": "243",
                                "locator": "121:40-121:46",
                                "name": "EDVisit",
                                "type": "QueryLetRef"
                              }
                            }
                          },
                          {
                            "localId": "246",
                            "locator": "121:64-121:73",
                            "name": "VisitStart",
                            "type": "QueryLetRef"
                          }
                        ]
                      }
                    },
                    {
                      "localId": "262",
                      "locator": "122:4-126:4",
                      "identifier": "OutpatientSurgeryVisit",
                      "expression": {
                        "localId": "261",
                        "locator": "122:28-126:4",
                        "type": "Last",
                        "source": {
                          "localId": "260",
                          "locator": "122:33-125:26",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "250",
                              "locator": "122:33-122:100",
                              "alias": "LastSurgeryOP",
                              "expression": {
                                "localId": "249",
                                "locator": "122:33-122:86",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                                "templateId": "PositiveEncounterPerformed",
                                "codeProperty": "code",
                                "codeComparator": "in",
                                "type": "Retrieve",
                                "codes": {
                                  "locator": "122:58-122:85",
                                  "name": "Outpatient Surgery Service",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [],
                          "where": {
                            "localId": "255",
                            "locator": "123:6-123:89",
                            "type": "And",
                            "operand": [
                              {
                                "locator": "123:46-123:59",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "123:41-123:44",
                                    "type": "End",
                                    "operand": {
                                      "localId": "252",
                                      "locator": "123:12-123:39",
                                      "path": "relevantPeriod",
                                      "scope": "LastSurgeryOP",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "locator": "123:46-123:59",
                                    "lowClosed": true,
                                    "highClosed": true,
                                    "type": "Interval",
                                    "low": {
                                      "locator": "123:74-123:89",
                                      "type": "Subtract",
                                      "operand": [
                                        {
                                          "localId": "253",
                                          "locator": "123:74-123:89",
                                          "name": "VisitStartWithED",
                                          "type": "QueryLetRef"
                                        },
                                        {
                                          "localId": "254",
                                          "locator": "123:46-123:51",
                                          "value": 1,
                                          "unit": "hour",
                                          "type": "Quantity"
                                        }
                                      ]
                                    },
                                    "high": {
                                      "localId": "253",
                                      "locator": "123:74-123:89",
                                      "name": "VisitStartWithED",
                                      "type": "QueryLetRef"
                                    }
                                  }
                                ]
                              },
                              {
                                "locator": "123:46-123:59",
                                "type": "Not",
                                "operand": {
                                  "locator": "123:46-123:59",
                                  "type": "IsNull",
                                  "operand": {
                                    "localId": "253",
                                    "locator": "123:74-123:89",
                                    "name": "VisitStartWithED",
                                    "type": "QueryLetRef"
                                  }
                                }
                              }
                            ]
                          },
                          "sort": {
                            "localId": "259",
                            "locator": "124:6-125:26",
                            "by": [
                              {
                                "localId": "258",
                                "locator": "125:6-125:26",
                                "direction": "asc",
                                "type": "ByExpression",
                                "expression": {
                                  "localId": "257",
                                  "locator": "125:6-125:26",
                                  "type": "End",
                                  "operand": {
                                    "localId": "256",
                                    "locator": "125:13-125:26",
                                    "name": "relevantPeriod",
                                    "type": "IdentifierRef"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  ],
                  "relationship": [],
                  "return": {
                    "localId": "272",
                    "locator": "127:4-128:31",
                    "expression": {
                      "localId": "271",
                      "locator": "127:11-128:31",
                      "lowClosed": true,
                      "highClosed": true,
                      "type": "Interval",
                      "low": {
                        "localId": "267",
                        "locator": "127:20-127:93",
                        "type": "Coalesce",
                        "operand": [
                          {
                            "localId": "265",
                            "locator": "127:29-127:74",
                            "type": "Start",
                            "operand": {
                              "localId": "264",
                              "locator": "127:38-127:74",
                              "path": "relevantPeriod",
                              "type": "Property",
                              "source": {
                                "localId": "263",
                                "locator": "127:38-127:59",
                                "name": "OutpatientSurgeryVisit",
                                "type": "QueryLetRef"
                              }
                            }
                          },
                          {
                            "localId": "266",
                            "locator": "127:77-127:92",
                            "name": "VisitStartWithED",
                            "type": "QueryLetRef"
                          }
                        ]
                      },
                      "high": {
                        "localId": "270",
                        "locator": "128:4-128:30",
                        "type": "End",
                        "operand": {
                          "localId": "269",
                          "locator": "128:11-128:30",
                          "path": "relevantPeriod",
                          "scope": "Visit",
                          "type": "Property"
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "202",
                      "locator": "108:87-108:108",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "327",
                "locator": "131:1-145:31",
                "name": "HospitalizationWithObservation",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "327",
                      "s": [
                        {
                          "value": [
                            "/*Hospitalization with Observation returns the total interval from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter*/",
                            "define function ",
                            "\"HospitalizationWithObservation\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "275",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "326",
                          "s": [
                            {
                              "r": "326",
                              "s": [
                                {
                                  "s": [
                                    {
                                      "r": "277",
                                      "s": [
                                        {
                                          "r": "276",
                                          "s": [
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "Encounter"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "Visit"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  \t"
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "let "
                                      ]
                                    },
                                    {
                                      "r": "293",
                                      "s": [
                                        {
                                          "value": [
                                            "ObsVisit",
                                            ": "
                                          ]
                                        },
                                        {
                                          "r": "292",
                                          "s": [
                                            {
                                              "value": [
                                                "Last",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "291",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "r": "279",
                                                      "s": [
                                                        {
                                                          "r": "278",
                                                          "s": [
                                                            {
                                                              "r": "278",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Encounter, Performed\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Observation Services\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " ",
                                                            "LastObs"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "286",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "where "
                                                      ]
                                                    },
                                                    {
                                                      "r": "286",
                                                      "s": [
                                                        {
                                                          "r": "281",
                                                          "s": [
                                                            {
                                                              "r": "280",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "LastObs"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "281",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "286",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "ends "
                                                              ]
                                                            },
                                                            {
                                                              "r": "285",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "1 ",
                                                                    "hour"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " or less on or before"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "284",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "start of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "283",
                                                              "s": [
                                                                {
                                                                  "r": "282",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "Visit"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "283",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "relevantPeriod"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "290",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "sort by \n  \t\t\t"
                                                      ]
                                                    },
                                                    {
                                                      "r": "289",
                                                      "s": [
                                                        {
                                                          "r": "288",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "end of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "287",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t)"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ",\n  \t"
                                      ]
                                    },
                                    {
                                      "r": "301",
                                      "s": [
                                        {
                                          "value": [
                                            "VisitStart",
                                            ": "
                                          ]
                                        },
                                        {
                                          "r": "300",
                                          "s": [
                                            {
                                              "value": [
                                                "Coalesce",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "296",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "295",
                                                  "s": [
                                                    {
                                                      "r": "294",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "ObsVisit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "295",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ", "
                                              ]
                                            },
                                            {
                                              "r": "299",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "298",
                                                  "s": [
                                                    {
                                                      "r": "297",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Visit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "298",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ",\n  \t"
                                      ]
                                    },
                                    {
                                      "r": "315",
                                      "s": [
                                        {
                                          "value": [
                                            "EDVisit",
                                            ": "
                                          ]
                                        },
                                        {
                                          "r": "314",
                                          "s": [
                                            {
                                              "value": [
                                                "Last",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "313",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "r": "303",
                                                      "s": [
                                                        {
                                                          "r": "302",
                                                          "s": [
                                                            {
                                                              "r": "302",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Encounter, Performed\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Emergency Department Visit\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " ",
                                                            "LastED"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "308",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "where "
                                                      ]
                                                    },
                                                    {
                                                      "r": "308",
                                                      "s": [
                                                        {
                                                          "r": "305",
                                                          "s": [
                                                            {
                                                              "r": "304",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "LastED"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "305",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "308",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "ends "
                                                              ]
                                                            },
                                                            {
                                                              "r": "307",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "1 ",
                                                                    "hour"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " or less on or before"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "306",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "VisitStart"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n  \t\t\t"
                                                  ]
                                                },
                                                {
                                                  "r": "312",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "sort by \n  \t\t\t"
                                                      ]
                                                    },
                                                    {
                                                      "r": "311",
                                                      "s": [
                                                        {
                                                          "r": "310",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "end of "
                                                              ]
                                                            },
                                                            {
                                                              "r": "309",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n  \t)"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  \t"
                                  ]
                                },
                                {
                                  "r": "325",
                                  "s": [
                                    {
                                      "value": [
                                        "return "
                                      ]
                                    },
                                    {
                                      "r": "324",
                                      "s": [
                                        {
                                          "value": [
                                            "Interval["
                                          ]
                                        },
                                        {
                                          "r": "320",
                                          "s": [
                                            {
                                              "value": [
                                                "Coalesce",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "318",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "317",
                                                  "s": [
                                                    {
                                                      "r": "316",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "EDVisit"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "317",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ", "
                                              ]
                                            },
                                            {
                                              "r": "319",
                                              "s": [
                                                {
                                                  "value": [
                                                    "VisitStart"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ", \n  \t"
                                          ]
                                        },
                                        {
                                          "r": "323",
                                          "s": [
                                            {
                                              "value": [
                                                "end of "
                                              ]
                                            },
                                            {
                                              "r": "322",
                                              "s": [
                                                {
                                                  "r": "321",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Visit"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "322",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "]"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "326",
                  "locator": "132:3-145:31",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "277",
                      "locator": "132:3-132:17",
                      "alias": "Visit",
                      "expression": {
                        "localId": "276",
                        "locator": "132:3-132:11",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    }
                  ],
                  "let": [
                    {
                      "localId": "293",
                      "locator": "133:8-137:4",
                      "identifier": "ObsVisit",
                      "expression": {
                        "localId": "292",
                        "locator": "133:18-137:4",
                        "type": "Last",
                        "source": {
                          "localId": "291",
                          "locator": "133:23-136:26",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "279",
                              "locator": "133:23-133:78",
                              "alias": "LastObs",
                              "expression": {
                                "localId": "278",
                                "locator": "133:23-133:70",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                                "templateId": "PositiveEncounterPerformed",
                                "codeProperty": "code",
                                "codeComparator": "in",
                                "type": "Retrieve",
                                "codes": {
                                  "locator": "133:48-133:69",
                                  "name": "Observation Services",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [],
                          "where": {
                            "localId": "286",
                            "locator": "134:6-134:96",
                            "type": "And",
                            "operand": [
                              {
                                "locator": "134:40-134:53",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "134:35-134:38",
                                    "type": "End",
                                    "operand": {
                                      "localId": "281",
                                      "locator": "134:12-134:33",
                                      "path": "relevantPeriod",
                                      "scope": "LastObs",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "locator": "134:40-134:53",
                                    "lowClosed": true,
                                    "highClosed": true,
                                    "type": "Interval",
                                    "low": {
                                      "locator": "134:68-134:96",
                                      "type": "Subtract",
                                      "operand": [
                                        {
                                          "localId": "284",
                                          "locator": "134:68-134:96",
                                          "type": "Start",
                                          "operand": {
                                            "localId": "283",
                                            "locator": "134:77-134:96",
                                            "path": "relevantPeriod",
                                            "scope": "Visit",
                                            "type": "Property"
                                          }
                                        },
                                        {
                                          "localId": "285",
                                          "locator": "134:40-134:45",
                                          "value": 1,
                                          "unit": "hour",
                                          "type": "Quantity"
                                        }
                                      ]
                                    },
                                    "high": {
                                      "localId": "284",
                                      "locator": "134:68-134:96",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "283",
                                        "locator": "134:77-134:96",
                                        "path": "relevantPeriod",
                                        "scope": "Visit",
                                        "type": "Property"
                                      }
                                    }
                                  }
                                ]
                              },
                              {
                                "locator": "134:40-134:53",
                                "type": "Not",
                                "operand": {
                                  "locator": "134:40-134:53",
                                  "type": "IsNull",
                                  "operand": {
                                    "localId": "284",
                                    "locator": "134:68-134:96",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "283",
                                      "locator": "134:77-134:96",
                                      "path": "relevantPeriod",
                                      "scope": "Visit",
                                      "type": "Property"
                                    }
                                  }
                                }
                              }
                            ]
                          },
                          "sort": {
                            "localId": "290",
                            "locator": "135:6-136:26",
                            "by": [
                              {
                                "localId": "289",
                                "locator": "136:6-136:26",
                                "direction": "asc",
                                "type": "ByExpression",
                                "expression": {
                                  "localId": "288",
                                  "locator": "136:6-136:26",
                                  "type": "End",
                                  "operand": {
                                    "localId": "287",
                                    "locator": "136:13-136:26",
                                    "name": "relevantPeriod",
                                    "type": "IdentifierRef"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "localId": "301",
                      "locator": "138:4-138:88",
                      "identifier": "VisitStart",
                      "expression": {
                        "localId": "300",
                        "locator": "138:16-138:88",
                        "type": "Coalesce",
                        "operand": [
                          {
                            "localId": "296",
                            "locator": "138:25-138:56",
                            "type": "Start",
                            "operand": {
                              "localId": "295",
                              "locator": "138:34-138:56",
                              "path": "relevantPeriod",
                              "type": "Property",
                              "source": {
                                "localId": "294",
                                "locator": "138:34-138:41",
                                "name": "ObsVisit",
                                "type": "QueryLetRef"
                              }
                            }
                          },
                          {
                            "localId": "299",
                            "locator": "138:59-138:87",
                            "type": "Start",
                            "operand": {
                              "localId": "298",
                              "locator": "138:68-138:87",
                              "path": "relevantPeriod",
                              "scope": "Visit",
                              "type": "Property"
                            }
                          }
                        ]
                      }
                    },
                    {
                      "localId": "315",
                      "locator": "139:4-143:4",
                      "identifier": "EDVisit",
                      "expression": {
                        "localId": "314",
                        "locator": "139:13-143:4",
                        "type": "Last",
                        "source": {
                          "localId": "313",
                          "locator": "139:18-142:26",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "303",
                              "locator": "139:18-139:78",
                              "alias": "LastED",
                              "expression": {
                                "localId": "302",
                                "locator": "139:18-139:71",
                                "dataType": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                                "templateId": "PositiveEncounterPerformed",
                                "codeProperty": "code",
                                "codeComparator": "in",
                                "type": "Retrieve",
                                "codes": {
                                  "locator": "139:43-139:70",
                                  "name": "Emergency Department Visit",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [],
                          "where": {
                            "localId": "308",
                            "locator": "140:6-140:76",
                            "type": "And",
                            "operand": [
                              {
                                "locator": "140:39-140:52",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "140:34-140:37",
                                    "type": "End",
                                    "operand": {
                                      "localId": "305",
                                      "locator": "140:12-140:32",
                                      "path": "relevantPeriod",
                                      "scope": "LastED",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "locator": "140:39-140:52",
                                    "lowClosed": true,
                                    "highClosed": true,
                                    "type": "Interval",
                                    "low": {
                                      "locator": "140:67-140:76",
                                      "type": "Subtract",
                                      "operand": [
                                        {
                                          "localId": "306",
                                          "locator": "140:67-140:76",
                                          "name": "VisitStart",
                                          "type": "QueryLetRef"
                                        },
                                        {
                                          "localId": "307",
                                          "locator": "140:39-140:44",
                                          "value": 1,
                                          "unit": "hour",
                                          "type": "Quantity"
                                        }
                                      ]
                                    },
                                    "high": {
                                      "localId": "306",
                                      "locator": "140:67-140:76",
                                      "name": "VisitStart",
                                      "type": "QueryLetRef"
                                    }
                                  }
                                ]
                              },
                              {
                                "locator": "140:39-140:52",
                                "type": "Not",
                                "operand": {
                                  "locator": "140:39-140:52",
                                  "type": "IsNull",
                                  "operand": {
                                    "localId": "306",
                                    "locator": "140:67-140:76",
                                    "name": "VisitStart",
                                    "type": "QueryLetRef"
                                  }
                                }
                              }
                            ]
                          },
                          "sort": {
                            "localId": "312",
                            "locator": "141:6-142:26",
                            "by": [
                              {
                                "localId": "311",
                                "locator": "142:6-142:26",
                                "direction": "asc",
                                "type": "ByExpression",
                                "expression": {
                                  "localId": "310",
                                  "locator": "142:6-142:26",
                                  "type": "End",
                                  "operand": {
                                    "localId": "309",
                                    "locator": "142:13-142:26",
                                    "name": "relevantPeriod",
                                    "type": "IdentifierRef"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  ],
                  "relationship": [],
                  "return": {
                    "localId": "325",
                    "locator": "144:4-145:31",
                    "expression": {
                      "localId": "324",
                      "locator": "144:11-145:31",
                      "lowClosed": true,
                      "highClosed": true,
                      "type": "Interval",
                      "low": {
                        "localId": "320",
                        "locator": "144:20-144:72",
                        "type": "Coalesce",
                        "operand": [
                          {
                            "localId": "318",
                            "locator": "144:29-144:59",
                            "type": "Start",
                            "operand": {
                              "localId": "317",
                              "locator": "144:38-144:59",
                              "path": "relevantPeriod",
                              "type": "Property",
                              "source": {
                                "localId": "316",
                                "locator": "144:38-144:44",
                                "name": "EDVisit",
                                "type": "QueryLetRef"
                              }
                            }
                          },
                          {
                            "localId": "319",
                            "locator": "144:62-144:71",
                            "name": "VisitStart",
                            "type": "QueryLetRef"
                          }
                        ]
                      },
                      "high": {
                        "localId": "323",
                        "locator": "145:4-145:30",
                        "type": "End",
                        "operand": {
                          "localId": "322",
                          "locator": "145:11-145:30",
                          "path": "relevantPeriod",
                          "scope": "Visit",
                          "type": "Property"
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "275",
                      "locator": "131:60-131:81",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "342",
                "locator": "148:1-149:100",
                "name": "ToDate",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "342",
                      "s": [
                        {
                          "value": [
                            "/*ToDate takes a given DateTime value and returns a DateTime with the time components \"zeroed\", and the timezone of the input value, for example, given the DateTime @2012-01-01T06:30:00.0Z, this function will return @2012-01-01T00:00:00.0Z.*/",
                            "define function ",
                            "\"ToDate\"",
                            "(",
                            "Value",
                            " "
                          ]
                        },
                        {
                          "r": "328",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "341",
                          "s": [
                            {
                              "r": "341",
                              "s": [
                                {
                                  "value": [
                                    "DateTime",
                                    "("
                                  ]
                                },
                                {
                                  "r": "330",
                                  "s": [
                                    {
                                      "value": [
                                        "year from "
                                      ]
                                    },
                                    {
                                      "r": "329",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "332",
                                  "s": [
                                    {
                                      "value": [
                                        "month from "
                                      ]
                                    },
                                    {
                                      "r": "331",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "334",
                                  "s": [
                                    {
                                      "value": [
                                        "day from "
                                      ]
                                    },
                                    {
                                      "r": "333",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "r": "335",
                                  "value": [
                                    ", ",
                                    "0",
                                    ", ",
                                    "0",
                                    ", ",
                                    "0",
                                    ", ",
                                    "0",
                                    ", "
                                  ]
                                },
                                {
                                  "r": "340",
                                  "s": [
                                    {
                                      "value": [
                                        "timezoneoffset from "
                                      ]
                                    },
                                    {
                                      "r": "339",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "341",
                  "locator": "149:3-149:100",
                  "type": "DateTime",
                  "year": {
                    "localId": "330",
                    "locator": "149:12-149:26",
                    "precision": "Year",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "329",
                      "locator": "149:22-149:26",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "month": {
                    "localId": "332",
                    "locator": "149:29-149:44",
                    "precision": "Month",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "331",
                      "locator": "149:40-149:44",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "day": {
                    "localId": "334",
                    "locator": "149:47-149:60",
                    "precision": "Day",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "333",
                      "locator": "149:56-149:60",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "hour": {
                    "localId": "335",
                    "locator": "149:63",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "minute": {
                    "localId": "336",
                    "locator": "149:66",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "second": {
                    "localId": "337",
                    "locator": "149:69",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "millisecond": {
                    "localId": "338",
                    "locator": "149:72",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "timezoneOffset": {
                    "localId": "340",
                    "locator": "149:75-149:99",
                    "type": "TimezoneOffsetFrom",
                    "operand": {
                      "localId": "339",
                      "locator": "149:95-149:99",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Value",
                    "operandTypeSpecifier": {
                      "localId": "328",
                      "locator": "148:32-148:39",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "347",
                "locator": "152:1-153:61",
                "name": "HospitalizationWithObservationLengthofStay",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "347",
                      "s": [
                        {
                          "value": [
                            "/*Hospitalization with Observation Length of Stay returns the length in days from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter*/",
                            "define function ",
                            "\"HospitalizationWithObservationLengthofStay\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "343",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "346",
                          "s": [
                            {
                              "r": "346",
                              "s": [
                                {
                                  "value": [
                                    "\"LengthInDays\"",
                                    "("
                                  ]
                                },
                                {
                                  "r": "345",
                                  "s": [
                                    {
                                      "value": [
                                        "\"HospitalizationWithObservation\"",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "344",
                                      "s": [
                                        {
                                          "value": [
                                            "Encounter"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "346",
                  "locator": "153:3-153:61",
                  "name": "LengthInDays",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "345",
                      "locator": "153:18-153:60",
                      "name": "HospitalizationWithObservation",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "344",
                          "locator": "153:51-153:59",
                          "name": "Encounter",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "343",
                      "locator": "152:72-152:93",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "368",
                "locator": "156:1-161:3",
                "name": "FirstInpatientIntensiveCareUnit",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "368",
                      "s": [
                        {
                          "value": [
                            "/*First Inpatient Intensive Care Unit returns the first intensive care unit for the given encounter, without considering any immediately prior emergency department visit.*/",
                            "define function ",
                            "\"FirstInpatientIntensiveCareUnit\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "348",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "367",
                          "s": [
                            {
                              "r": "367",
                              "s": [
                                {
                                  "value": [
                                    "First",
                                    "("
                                  ]
                                },
                                {
                                  "r": "366",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "351",
                                          "s": [
                                            {
                                              "r": "350",
                                              "s": [
                                                {
                                                  "value": [
                                                    "("
                                                  ]
                                                },
                                                {
                                                  "r": "350",
                                                  "s": [
                                                    {
                                                      "r": "349",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Encounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "350",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "facilityLocations"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ")"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "HospitalLocation"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      "
                                      ]
                                    },
                                    {
                                      "r": "361",
                                      "s": [
                                        {
                                          "value": [
                                            "where "
                                          ]
                                        },
                                        {
                                          "r": "361",
                                          "s": [
                                            {
                                              "r": "355",
                                              "s": [
                                                {
                                                  "r": "353",
                                                  "s": [
                                                    {
                                                      "r": "352",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "HospitalLocation"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "353",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "code"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " in "
                                                  ]
                                                },
                                                {
                                                  "r": "354",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Intensive Care Unit\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n        and "
                                              ]
                                            },
                                            {
                                              "r": "360",
                                              "s": [
                                                {
                                                  "r": "357",
                                                  "s": [
                                                    {
                                                      "r": "356",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "HospitalLocation"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "357",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "locationPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "r": "360",
                                                  "value": [
                                                    " ",
                                                    "during",
                                                    " "
                                                  ]
                                                },
                                                {
                                                  "r": "359",
                                                  "s": [
                                                    {
                                                      "r": "358",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Encounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "359",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      "
                                      ]
                                    },
                                    {
                                      "r": "365",
                                      "s": [
                                        {
                                          "value": [
                                            "sort by "
                                          ]
                                        },
                                        {
                                          "r": "364",
                                          "s": [
                                            {
                                              "r": "363",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "362",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "locationPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  )"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "367",
                  "locator": "157:3-161:3",
                  "type": "First",
                  "source": {
                    "localId": "366",
                    "locator": "157:9-160:37",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "351",
                        "locator": "157:9-157:53",
                        "alias": "HospitalLocation",
                        "expression": {
                          "localId": "350",
                          "locator": "157:9-157:37",
                          "path": "facilityLocations",
                          "type": "Property",
                          "source": {
                            "localId": "349",
                            "locator": "157:10-157:18",
                            "name": "Encounter",
                            "type": "OperandRef"
                          }
                        }
                      }
                    ],
                    "relationship": [],
                    "where": {
                      "localId": "361",
                      "locator": "158:7-159:75",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "355",
                          "locator": "158:13-158:58",
                          "type": "InValueSet",
                          "code": {
                            "localId": "353",
                            "locator": "158:13-158:33",
                            "path": "code",
                            "scope": "HospitalLocation",
                            "type": "Property"
                          },
                          "valueset": {
                            "localId": "354",
                            "locator": "158:38-158:58",
                            "name": "Intensive Care Unit",
                            "type": "ValueSetRef"
                          }
                        },
                        {
                          "localId": "360",
                          "locator": "159:13-159:75",
                          "type": "IncludedIn",
                          "operand": [
                            {
                              "localId": "357",
                              "locator": "159:13-159:43",
                              "path": "locationPeriod",
                              "scope": "HospitalLocation",
                              "type": "Property"
                            },
                            {
                              "localId": "359",
                              "locator": "159:52-159:75",
                              "path": "relevantPeriod",
                              "type": "Property",
                              "source": {
                                "localId": "358",
                                "locator": "159:52-159:60",
                                "name": "Encounter",
                                "type": "OperandRef"
                              }
                            }
                          ]
                        }
                      ]
                    },
                    "sort": {
                      "localId": "365",
                      "locator": "160:7-160:37",
                      "by": [
                        {
                          "localId": "364",
                          "locator": "160:15-160:37",
                          "direction": "asc",
                          "type": "ByExpression",
                          "expression": {
                            "localId": "363",
                            "locator": "160:15-160:37",
                            "type": "Start",
                            "operand": {
                              "localId": "362",
                              "locator": "160:24-160:37",
                              "name": "locationPeriod",
                              "type": "IdentifierRef"
                            }
                          }
                        }
                      ]
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "348",
                      "locator": "156:61-156:82",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "386",
                "locator": "164:1-167:35",
                "name": "NormalizeInterval",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "386",
                      "s": [
                        {
                          "value": [
                            "/*Given a datetime and a period, returns the period (if a period is provided) or the interval beginning and ending on the datetime (if a datetime is provided)*/",
                            "define function ",
                            "\"NormalizeInterval\"",
                            "(",
                            "pointInTime",
                            " "
                          ]
                        },
                        {
                          "r": "369",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "period",
                            " "
                          ]
                        },
                        {
                          "r": "371",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "370",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "385",
                          "s": [
                            {
                              "r": "385",
                              "s": [
                                {
                                  "value": [
                                    "if "
                                  ]
                                },
                                {
                                  "r": "373",
                                  "s": [
                                    {
                                      "r": "372",
                                      "s": [
                                        {
                                          "value": [
                                            "pointInTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " is not null"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " then "
                                  ]
                                },
                                {
                                  "r": "376",
                                  "s": [
                                    {
                                      "value": [
                                        "Interval["
                                      ]
                                    },
                                    {
                                      "r": "374",
                                      "s": [
                                        {
                                          "value": [
                                            "pointInTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ", "
                                      ]
                                    },
                                    {
                                      "r": "375",
                                      "s": [
                                        {
                                          "value": [
                                            "pointInTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "]"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n    else "
                                  ]
                                },
                                {
                                  "r": "384",
                                  "s": [
                                    {
                                      "value": [
                                        "if "
                                      ]
                                    },
                                    {
                                      "r": "378",
                                      "s": [
                                        {
                                          "r": "377",
                                          "s": [
                                            {
                                              "value": [
                                                "period"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " is not null"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " then "
                                      ]
                                    },
                                    {
                                      "r": "379",
                                      "s": [
                                        {
                                          "value": [
                                            "period"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " \n    else "
                                      ]
                                    },
                                    {
                                      "r": "383",
                                      "s": [
                                        {
                                          "r": "380",
                                          "value": [
                                            "null",
                                            " as "
                                          ]
                                        },
                                        {
                                          "r": "382",
                                          "s": [
                                            {
                                              "value": [
                                                "Interval<"
                                              ]
                                            },
                                            {
                                              "r": "381",
                                              "s": [
                                                {
                                                  "value": [
                                                    "DateTime"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ">"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "385",
                  "locator": "165:3-167:35",
                  "type": "If",
                  "condition": {
                    "localId": "373",
                    "locator": "165:6-165:28",
                    "type": "Not",
                    "operand": {
                      "locator": "165:6-165:28",
                      "type": "IsNull",
                      "operand": {
                        "localId": "372",
                        "locator": "165:6-165:16",
                        "name": "pointInTime",
                        "type": "OperandRef"
                      }
                    }
                  },
                  "then": {
                    "localId": "376",
                    "locator": "165:35-165:68",
                    "lowClosed": true,
                    "highClosed": true,
                    "type": "Interval",
                    "low": {
                      "localId": "374",
                      "locator": "165:44-165:54",
                      "name": "pointInTime",
                      "type": "OperandRef"
                    },
                    "high": {
                      "localId": "375",
                      "locator": "165:57-165:67",
                      "name": "pointInTime",
                      "type": "OperandRef"
                    }
                  },
                  "else": {
                    "localId": "384",
                    "locator": "166:10-167:35",
                    "type": "If",
                    "condition": {
                      "localId": "378",
                      "locator": "166:13-166:30",
                      "type": "Not",
                      "operand": {
                        "locator": "166:13-166:30",
                        "type": "IsNull",
                        "operand": {
                          "localId": "377",
                          "locator": "166:13-166:18",
                          "name": "period",
                          "type": "OperandRef"
                        }
                      }
                    },
                    "then": {
                      "localId": "379",
                      "locator": "166:37-166:42",
                      "name": "period",
                      "type": "OperandRef"
                    },
                    "else": {
                      "localId": "383",
                      "locator": "167:10-167:35",
                      "strict": false,
                      "type": "As",
                      "operand": {
                        "localId": "380",
                        "locator": "167:10-167:13",
                        "type": "Null"
                      },
                      "asTypeSpecifier": {
                        "localId": "382",
                        "locator": "167:18-167:35",
                        "type": "IntervalTypeSpecifier",
                        "pointType": {
                          "localId": "381",
                          "locator": "167:27-167:34",
                          "name": "{urn:hl7-org:elm-types:r1}DateTime",
                          "type": "NamedTypeSpecifier"
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "pointInTime",
                    "operandTypeSpecifier": {
                      "localId": "369",
                      "locator": "164:49-164:56",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "period",
                    "operandTypeSpecifier": {
                      "localId": "371",
                      "locator": "164:66-164:83",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "370",
                        "locator": "164:75-164:82",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              },
              {
                "localId": "399",
                "locator": "170:1-173:3",
                "name": "HasStart",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "399",
                      "s": [
                        {
                          "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)*/",
                            "define function ",
                            "\"HasStart\"",
                            "(",
                            "period",
                            " "
                          ]
                        },
                        {
                          "r": "388",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "387",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "398",
                          "s": [
                            {
                              "r": "398",
                              "s": [
                                {
                                  "value": [
                                    "not "
                                  ]
                                },
                                {
                                  "r": "397",
                                  "s": [
                                    {
                                      "value": [
                                        "( "
                                      ]
                                    },
                                    {
                                      "r": "397",
                                      "s": [
                                        {
                                          "r": "391",
                                          "s": [
                                            {
                                              "r": "390",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "389",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "period"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " is null"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n      or "
                                          ]
                                        },
                                        {
                                          "r": "396",
                                          "s": [
                                            {
                                              "r": "393",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "392",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "period"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "=",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "395",
                                              "s": [
                                                {
                                                  "value": [
                                                    "minimum",
                                                    " "
                                                  ]
                                                },
                                                {
                                                  "r": "394",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "DateTime"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n  )"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "398",
                  "locator": "171:3-173:3",
                  "type": "Not",
                  "operand": {
                    "localId": "397",
                    "locator": "171:7-173:3",
                    "type": "Or",
                    "operand": [
                      {
                        "localId": "391",
                        "locator": "171:9-171:31",
                        "type": "IsNull",
                        "operand": {
                          "localId": "390",
                          "locator": "171:9-171:23",
                          "type": "Start",
                          "operand": {
                            "localId": "389",
                            "locator": "171:18-171:23",
                            "name": "period",
                            "type": "OperandRef"
                          }
                        }
                      },
                      {
                        "localId": "396",
                        "locator": "172:10-172:43",
                        "type": "Equal",
                        "operand": [
                          {
                            "localId": "393",
                            "locator": "172:10-172:24",
                            "type": "Start",
                            "operand": {
                              "localId": "392",
                              "locator": "172:19-172:24",
                              "name": "period",
                              "type": "OperandRef"
                            }
                          },
                          {
                            "localId": "395",
                            "locator": "172:28-172:43",
                            "valueType": "{urn:hl7-org:elm-types:r1}DateTime",
                            "type": "MinValue"
                          }
                        ]
                      }
                    ]
                  }
                },
                "operand": [
                  {
                    "name": "period",
                    "operandTypeSpecifier": {
                      "localId": "388",
                      "locator": "170:35-170:52",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "387",
                        "locator": "170:44-170:51",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              },
              {
                "localId": "412",
                "locator": "176:1-181:3",
                "name": "HasEnd",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "412",
                      "s": [
                        {
                          "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)*/",
                            "define function ",
                            "\"HasEnd\"",
                            "(",
                            "period",
                            " "
                          ]
                        },
                        {
                          "r": "401",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "400",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "411",
                          "s": [
                            {
                              "r": "411",
                              "s": [
                                {
                                  "value": [
                                    "not "
                                  ]
                                },
                                {
                                  "r": "410",
                                  "s": [
                                    {
                                      "value": [
                                        "( \n    "
                                      ]
                                    },
                                    {
                                      "r": "410",
                                      "s": [
                                        {
                                          "r": "404",
                                          "s": [
                                            {
                                              "r": "403",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "402",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "period"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " is null"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n      or \n      "
                                          ]
                                        },
                                        {
                                          "r": "409",
                                          "s": [
                                            {
                                              "r": "406",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "405",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "period"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "=",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "408",
                                              "s": [
                                                {
                                                  "value": [
                                                    "maximum",
                                                    " "
                                                  ]
                                                },
                                                {
                                                  "r": "407",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "DateTime"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n  )"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "411",
                  "locator": "177:3-181:3",
                  "type": "Not",
                  "operand": {
                    "localId": "410",
                    "locator": "177:7-181:3",
                    "type": "Or",
                    "operand": [
                      {
                        "localId": "404",
                        "locator": "178:5-178:25",
                        "type": "IsNull",
                        "operand": {
                          "localId": "403",
                          "locator": "178:5-178:17",
                          "type": "End",
                          "operand": {
                            "localId": "402",
                            "locator": "178:12-178:17",
                            "name": "period",
                            "type": "OperandRef"
                          }
                        }
                      },
                      {
                        "localId": "409",
                        "locator": "180:7-180:38",
                        "type": "Equal",
                        "operand": [
                          {
                            "localId": "406",
                            "locator": "180:7-180:19",
                            "type": "End",
                            "operand": {
                              "localId": "405",
                              "locator": "180:14-180:19",
                              "name": "period",
                              "type": "OperandRef"
                            }
                          },
                          {
                            "localId": "408",
                            "locator": "180:23-180:38",
                            "valueType": "{urn:hl7-org:elm-types:r1}DateTime",
                            "type": "MaxValue"
                          }
                        ]
                      }
                    ]
                  }
                },
                "operand": [
                  {
                    "name": "period",
                    "operandTypeSpecifier": {
                      "localId": "401",
                      "locator": "176:33-176:50",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "400",
                        "locator": "176:42-176:49",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              },
              {
                "localId": "422",
                "locator": "184:1-187:24",
                "name": "Latest",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "422",
                      "s": [
                        {
                          "value": [
                            "/*Given an interval, return the ending point if the interval has an ending boundary specified, otherwise, return the starting point*/",
                            "define function ",
                            "\"Latest\"",
                            "(",
                            "period",
                            " "
                          ]
                        },
                        {
                          "r": "414",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "413",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "421",
                          "s": [
                            {
                              "r": "421",
                              "s": [
                                {
                                  "value": [
                                    "if "
                                  ]
                                },
                                {
                                  "r": "416",
                                  "s": [
                                    {
                                      "value": [
                                        "( "
                                      ]
                                    },
                                    {
                                      "r": "416",
                                      "s": [
                                        {
                                          "value": [
                                            "HasEnd",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "415",
                                          "s": [
                                            {
                                              "value": [
                                                "period"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ")"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " then \n  "
                                  ]
                                },
                                {
                                  "r": "418",
                                  "s": [
                                    {
                                      "value": [
                                        "end of "
                                      ]
                                    },
                                    {
                                      "r": "417",
                                      "s": [
                                        {
                                          "value": [
                                            "period"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " \n    else "
                                  ]
                                },
                                {
                                  "r": "420",
                                  "s": [
                                    {
                                      "value": [
                                        "start of "
                                      ]
                                    },
                                    {
                                      "r": "419",
                                      "s": [
                                        {
                                          "value": [
                                            "period"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "421",
                  "locator": "185:3-187:24",
                  "type": "If",
                  "condition": {
                    "localId": "416",
                    "locator": "185:6-185:22",
                    "name": "HasEnd",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "415",
                        "locator": "185:15-185:20",
                        "name": "period",
                        "type": "OperandRef"
                      }
                    ]
                  },
                  "then": {
                    "localId": "418",
                    "locator": "186:3-186:15",
                    "type": "End",
                    "operand": {
                      "localId": "417",
                      "locator": "186:10-186:15",
                      "name": "period",
                      "type": "OperandRef"
                    }
                  },
                  "else": {
                    "localId": "420",
                    "locator": "187:10-187:24",
                    "type": "Start",
                    "operand": {
                      "localId": "419",
                      "locator": "187:19-187:24",
                      "name": "period",
                      "type": "OperandRef"
                    }
                  }
                },
                "operand": [
                  {
                    "name": "period",
                    "operandTypeSpecifier": {
                      "localId": "414",
                      "locator": "184:33-184:50",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "413",
                        "locator": "184:42-184:49",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              },
              {
                "localId": "432",
                "locator": "190:1-193:15",
                "name": "Earliest",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "432",
                      "s": [
                        {
                          "value": [
                            "/*Given an interval, return the starting point if the interval has a starting boundary specified, otherwise, return the ending point*/",
                            "define function ",
                            "\"Earliest\"",
                            "(",
                            "period",
                            " "
                          ]
                        },
                        {
                          "r": "424",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "423",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "431",
                          "s": [
                            {
                              "r": "431",
                              "s": [
                                {
                                  "value": [
                                    "if "
                                  ]
                                },
                                {
                                  "r": "426",
                                  "s": [
                                    {
                                      "value": [
                                        "( "
                                      ]
                                    },
                                    {
                                      "r": "426",
                                      "s": [
                                        {
                                          "value": [
                                            "HasStart",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "425",
                                          "s": [
                                            {
                                              "value": [
                                                "period"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ")"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " then "
                                  ]
                                },
                                {
                                  "r": "428",
                                  "s": [
                                    {
                                      "value": [
                                        "start of "
                                      ]
                                    },
                                    {
                                      "r": "427",
                                      "s": [
                                        {
                                          "value": [
                                            "period"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " \n    else \n  "
                                  ]
                                },
                                {
                                  "r": "430",
                                  "s": [
                                    {
                                      "value": [
                                        "end of "
                                      ]
                                    },
                                    {
                                      "r": "429",
                                      "s": [
                                        {
                                          "value": [
                                            "period"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "431",
                  "locator": "191:3-193:15",
                  "type": "If",
                  "condition": {
                    "localId": "426",
                    "locator": "191:6-191:24",
                    "name": "HasStart",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "425",
                        "locator": "191:17-191:22",
                        "name": "period",
                        "type": "OperandRef"
                      }
                    ]
                  },
                  "then": {
                    "localId": "428",
                    "locator": "191:31-191:45",
                    "type": "Start",
                    "operand": {
                      "localId": "427",
                      "locator": "191:40-191:45",
                      "name": "period",
                      "type": "OperandRef"
                    }
                  },
                  "else": {
                    "localId": "430",
                    "locator": "193:3-193:15",
                    "type": "End",
                    "operand": {
                      "localId": "429",
                      "locator": "193:10-193:15",
                      "name": "period",
                      "type": "OperandRef"
                    }
                  }
                },
                "operand": [
                  {
                    "name": "period",
                    "operandTypeSpecifier": {
                      "localId": "424",
                      "locator": "190:35-190:52",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "423",
                        "locator": "190:44-190:51",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              },
              {
                "localId": "440",
                "locator": "196:1-197:48",
                "name": "LatestOf",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "440",
                      "s": [
                        {
                          "value": [
                            "/*Given a pointInTime or period, if the pointInTime is specified, returns the pointInTime, returns the ending point of the period if the period has an ending boundary specified, otherwise returns the starting point of the interval*/",
                            "define function ",
                            "\"LatestOf\"",
                            "(",
                            "pointInTime",
                            " "
                          ]
                        },
                        {
                          "r": "433",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "period",
                            " "
                          ]
                        },
                        {
                          "r": "435",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "434",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "439",
                          "s": [
                            {
                              "r": "439",
                              "s": [
                                {
                                  "value": [
                                    "Latest",
                                    "("
                                  ]
                                },
                                {
                                  "r": "438",
                                  "s": [
                                    {
                                      "value": [
                                        "NormalizeInterval",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "436",
                                      "s": [
                                        {
                                          "value": [
                                            "pointInTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ", "
                                      ]
                                    },
                                    {
                                      "r": "437",
                                      "s": [
                                        {
                                          "value": [
                                            "period"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "439",
                  "locator": "197:3-197:48",
                  "name": "Latest",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "438",
                      "locator": "197:10-197:47",
                      "name": "NormalizeInterval",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "436",
                          "locator": "197:28-197:38",
                          "name": "pointInTime",
                          "type": "OperandRef"
                        },
                        {
                          "localId": "437",
                          "locator": "197:41-197:46",
                          "name": "period",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "pointInTime",
                    "operandTypeSpecifier": {
                      "localId": "433",
                      "locator": "196:40-196:47",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "period",
                    "operandTypeSpecifier": {
                      "localId": "435",
                      "locator": "196:57-196:74",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "434",
                        "locator": "196:66-196:73",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              },
              {
                "localId": "448",
                "locator": "200:1-201:50",
                "name": "EarliestOf",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "448",
                      "s": [
                        {
                          "value": [
                            "/*Given a pointInTime or period, if the pointInTime is specified, returns the pointInTime, returns the starting point of the period if the period has a starting boundary specified, otherwise returns the ending point of the period*/",
                            "define function ",
                            "\"EarliestOf\"",
                            "(",
                            "pointInTime",
                            " "
                          ]
                        },
                        {
                          "r": "441",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "period",
                            " "
                          ]
                        },
                        {
                          "r": "443",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "442",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "447",
                          "s": [
                            {
                              "r": "447",
                              "s": [
                                {
                                  "value": [
                                    "Earliest",
                                    "("
                                  ]
                                },
                                {
                                  "r": "446",
                                  "s": [
                                    {
                                      "value": [
                                        "NormalizeInterval",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "444",
                                      "s": [
                                        {
                                          "value": [
                                            "pointInTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ", "
                                      ]
                                    },
                                    {
                                      "r": "445",
                                      "s": [
                                        {
                                          "value": [
                                            "period"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "447",
                  "locator": "201:3-201:50",
                  "name": "Earliest",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "446",
                      "locator": "201:12-201:49",
                      "name": "NormalizeInterval",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "444",
                          "locator": "201:30-201:40",
                          "name": "pointInTime",
                          "type": "OperandRef"
                        },
                        {
                          "localId": "445",
                          "locator": "201:43-201:48",
                          "name": "period",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "pointInTime",
                    "operandTypeSpecifier": {
                      "localId": "441",
                      "locator": "200:42-200:49",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "period",
                    "operandTypeSpecifier": {
                      "localId": "443",
                      "locator": "200:59-200:76",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "442",
                        "locator": "200:68-200:75",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "statements": [
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"ED Encounter\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "[\"Encounter, Performed\": "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Emergency Department Visit\""
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "]"
                          }
                        ]
                      }
                    ],
                    "node_type": "Retrieve",
                    "ref_id": "10"
                  }
                ],
                "ref_id": "11"
              }
            ],
            "define_name": "ED Encounter"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Inpatient Encounter\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Encounter Inpatient\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "12"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "12"
                              },
                              {
                                "children": [
                                  {
                                    "text": " EncounterInpatient"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "13"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"LengthInDays\"("
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "EncounterInpatient"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "14"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "15"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "15"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": ")"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "24"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "<= 120"
                                      }
                                    ],
                                    "node_type": "Literal",
                                    "ref_id": "25"
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "26"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "EncounterInpatient"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "27"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "relevantPeriod"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "28"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "28"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " ends during day of "
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "30"
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "29"
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "30"
                              }
                            ],
                            "ref_id": "31"
                          }
                        ],
                        "ref_id": "31"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "32"
                  }
                ],
                "ref_id": "33"
              }
            ],
            "define_name": "Inpatient Encounter"
          }
        ],
        "identifier": {
          "id": "MATGlobalCommonFunctionsNEW",
          "version": "7.0.000"
        }
      },
      "is_main_library": false,
      "is_top_level": true,
      "library_name": "MATGlobalCommonFunctionsNEW",
      "library_version": "7.0.000",
      "statement_dependencies": [
        {
          "_id": "609d998eb78902cd9466f58c",
          "statement_name": "Inpatient Encounter",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f58d",
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctionsNEW",
              "statement_name": "LengthInDays"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f58e",
          "statement_name": "LengthInDays"
        },
        {
          "_id": "609d998eb78902cd9466f58f",
          "statement_name": "CalendarAgeInYearsAt"
        },
        {
          "_id": "609d998eb78902cd9466f590",
          "statement_name": "ToDate"
        },
        {
          "_id": "609d998eb78902cd9466f591",
          "statement_name": "HospitalizationWithObservation"
        }
      ]
    },
    {
      "_id": "609d998eb78902cd9466f592",
      "cql": "library TEST_VTEICU56 version '0.2.000'\n\nusing QDM version '5.6'\n\ninclude MATGlobalCommonFunctionsNEW version '7.0.000' called Global\n\ncodesystem \"LOINC\": 'urn:oid:2.16.840.1.113883.6.1' \n\nvalueset \"Obstetrics\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.263' \nvalueset \"Obstetrics VTE\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.264' \nvalueset \"Venous Thromboembolism\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.279' \n\ncode \"Birth date\": '21112-8' from \"LOINC\" display 'Birth date'\n\nparameter \"Measurement Period\" Interval<DateTime>\n\ncontext Patient\n\ndefine \"Admission Without VTE or Obstetrical Conditions\":\n  Global.\"Inpatient Encounter\" InpatientEncounter\n    where not ( exists ( InpatientEncounter.diagnoses EncounterDiagnoses\n          where ( EncounterDiagnoses.code in \"Obstetrics\"\n              or EncounterDiagnoses.code in \"Venous Thromboembolism\"\n              or EncounterDiagnoses.code in \"Obstetrics VTE\"\n          )\n      )\n    )\n\ndefine \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\":\n  ( Global.\"Inpatient Encounter\" InpatientEncounter\n      with [\"Patient Characteristic Birthdate\": \"Birth date\"] BirthDate\n        such that Global.\"CalendarAgeInYearsAt\" ( BirthDate.birthDatetime, start of InpatientEncounter.relevantPeriod ) >= 18\n  )\n    intersect \"Admission Without VTE or Obstetrical Conditions\"\n\ndefine function \"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(Encounter \"Encounter, Performed\" ):\n  Interval[Global.\"ToDate\"(start of Global.\"HospitalizationWithObservation\"(Encounter)), Global.\"ToDate\"(start of Encounter.relevantPeriod + 2 days))\n\ndefine function \"StartOfFirstICU\"(Encounter \"Encounter, Performed\" ):\n  start of \"FirstICULocationPeriod\"(Encounter)\n\ndefine function \"FromDayOfStartOfHospitalizationToDayAfterFirstICU\"(Encounter \"Encounter, Performed\" ):\n  Interval[Global.\"ToDate\"(start of Global.\"HospitalizationWithObservation\"(Encounter)), Global.\"ToDate\"(StartOfFirstICU(Encounter)+ 2 days))\n\ndefine function \"FirstICULocationPeriod\"(Encounter \"Encounter, Performed\" ):\n  Global.\"FirstInpatientIntensiveCareUnit\" ( Encounter ).locationPeriod\n\ndefine function \"CalendarDayOfOrDayAfter\"(StartValue DateTime ):\n  Interval[Global.\"ToDate\" ( StartValue ), Global.\"ToDate\" ( StartValue + 2 days ) )\n\n",
      "elm": {
        "library": {
          "annotation": [
            {
              "translatorOptions": "EnableAnnotations,EnableLocators,DisableListDemotion,DisableListPromotion,DisableMethodInvocation",
              "type": "CqlToElmInfo"
            },
            {
              "type": "Annotation",
              "s": {
                "r": "107",
                "s": [
                  {
                    "value": [
                      "",
                      "library TEST_VTEICU56 version '0.2.000'"
                    ]
                  }
                ]
              }
            }
          ],
          "identifier": {
            "id": "TEST_VTEICU56",
            "version": "0.2.000"
          },
          "schemaIdentifier": {
            "id": "urn:hl7-org:elm",
            "version": "r1"
          },
          "usings": {
            "def": [
              {
                "localIdentifier": "System",
                "uri": "urn:hl7-org:elm-types:r1"
              },
              {
                "localId": "1",
                "locator": "3:1-3:23",
                "localIdentifier": "QDM",
                "uri": "urn:healthit-gov:qdm:v5_6",
                "version": "5.6",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "1",
                      "s": [
                        {
                          "value": [
                            "",
                            "using "
                          ]
                        },
                        {
                          "s": [
                            {
                              "value": [
                                "QDM"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " version ",
                            "'5.6'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          },
          "includes": {
            "def": [
              {
                "localId": "2",
                "locator": "5:1-5:67",
                "localIdentifier": "Global",
                "path": "MATGlobalCommonFunctionsNEW",
                "version": "7.0.000",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "2",
                      "s": [
                        {
                          "value": [
                            "",
                            "include "
                          ]
                        },
                        {
                          "s": [
                            {
                              "value": [
                                "MATGlobalCommonFunctionsNEW"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " version ",
                            "'7.0.000'",
                            " called ",
                            "Global"
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          },
          "parameters": {
            "def": [
              {
                "localId": "11",
                "locator": "15:1-15:49",
                "name": "Measurement Period",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "11",
                      "s": [
                        {
                          "value": [
                            "",
                            "parameter ",
                            "\"Measurement Period\"",
                            " "
                          ]
                        },
                        {
                          "r": "10",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "9",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "parameterTypeSpecifier": {
                  "localId": "10",
                  "locator": "15:32-15:49",
                  "type": "IntervalTypeSpecifier",
                  "pointType": {
                    "localId": "9",
                    "locator": "15:41-15:48",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              }
            ]
          },
          "codeSystems": {
            "def": [
              {
                "localId": "3",
                "locator": "7:1-7:51",
                "name": "LOINC",
                "id": "2.16.840.1.113883.6.1",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "3",
                      "s": [
                        {
                          "value": [
                            "",
                            "codesystem ",
                            "\"LOINC\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.6.1'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "4",
                "locator": "9:1-9:66",
                "name": "Obstetrics",
                "id": "2.16.840.1.113883.3.117.1.7.1.263",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "4",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Obstetrics\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.263'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "5",
                "locator": "10:1-10:70",
                "name": "Obstetrics VTE",
                "id": "2.16.840.1.113883.3.117.1.7.1.264",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "5",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Obstetrics VTE\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.264'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "localId": "6",
                "locator": "11:1-11:78",
                "name": "Venous Thromboembolism",
                "id": "2.16.840.1.113883.3.117.1.7.1.279",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "6",
                      "s": [
                        {
                          "value": [
                            "",
                            "valueset ",
                            "\"Venous Thromboembolism\"",
                            ": ",
                            "'urn:oid:2.16.840.1.113883.3.117.1.7.1.279'"
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          },
          "codes": {
            "def": [
              {
                "localId": "8",
                "locator": "13:1-13:62",
                "name": "Birth date",
                "id": "21112-8",
                "display": "Birth date",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "8",
                      "s": [
                        {
                          "value": [
                            "",
                            "code ",
                            "\"Birth date\"",
                            ": ",
                            "'21112-8'",
                            " from "
                          ]
                        },
                        {
                          "r": "7",
                          "s": [
                            {
                              "value": [
                                "\"LOINC\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " display ",
                            "'Birth date'"
                          ]
                        }
                      ]
                    }
                  }
                ],
                "codeSystem": {
                  "localId": "7",
                  "locator": "13:35-13:41",
                  "name": "LOINC"
                }
              }
            ]
          },
          "contexts": {
            "def": [
              {
                "locator": "17:1-17:15",
                "name": "Patient"
              }
            ]
          },
          "statements": {
            "def": [
              {
                "locator": "17:1-17:15",
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "locator": "17:1-17:15",
                    "dataType": "{urn:healthit-gov:qdm:v5_6}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "34",
                "locator": "19:1-27:5",
                "name": "Admission Without VTE or Obstetrical Conditions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "34",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Admission Without VTE or Obstetrical Conditions\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "33",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "13",
                                  "s": [
                                    {
                                      "r": "12",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "Global",
                                                ".",
                                                "\"Inpatient Encounter\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "InpatientEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    "
                              ]
                            },
                            {
                              "r": "32",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "32",
                                  "s": [
                                    {
                                      "value": [
                                        "not "
                                      ]
                                    },
                                    {
                                      "r": "31",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "31",
                                          "s": [
                                            {
                                              "value": [
                                                "exists "
                                              ]
                                            },
                                            {
                                              "r": "30",
                                              "s": [
                                                {
                                                  "value": [
                                                    "( "
                                                  ]
                                                },
                                                {
                                                  "r": "30",
                                                  "s": [
                                                    {
                                                      "s": [
                                                        {
                                                          "r": "15",
                                                          "s": [
                                                            {
                                                              "r": "14",
                                                              "s": [
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "InpatientEncounter",
                                                                        ".",
                                                                        "diagnoses"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " ",
                                                                "EncounterDiagnoses"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n          "
                                                      ]
                                                    },
                                                    {
                                                      "r": "29",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "where "
                                                          ]
                                                        },
                                                        {
                                                          "r": "29",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "( "
                                                              ]
                                                            },
                                                            {
                                                              "r": "29",
                                                              "s": [
                                                                {
                                                                  "r": "24",
                                                                  "s": [
                                                                    {
                                                                      "r": "19",
                                                                      "s": [
                                                                        {
                                                                          "r": "17",
                                                                          "s": [
                                                                            {
                                                                              "r": "16",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "EncounterDiagnoses"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                "."
                                                                              ]
                                                                            },
                                                                            {
                                                                              "r": "17",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "code"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            " in "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "18",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "\"Obstetrics\""
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "\n              or "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "23",
                                                                      "s": [
                                                                        {
                                                                          "r": "21",
                                                                          "s": [
                                                                            {
                                                                              "r": "20",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "EncounterDiagnoses"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                "."
                                                                              ]
                                                                            },
                                                                            {
                                                                              "r": "21",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "code"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            " in "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "22",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "\"Venous Thromboembolism\""
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "\n              or "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "28",
                                                                  "s": [
                                                                    {
                                                                      "r": "26",
                                                                      "s": [
                                                                        {
                                                                          "r": "25",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "EncounterDiagnoses"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "."
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "26",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "code"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " in "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "27",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "\"Obstetrics VTE\""
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\n          )"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n      )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n    )"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "33",
                  "locator": "20:3-27:5",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "13",
                      "locator": "20:3-20:49",
                      "alias": "InpatientEncounter",
                      "expression": {
                        "localId": "12",
                        "locator": "20:3-20:30",
                        "name": "Inpatient Encounter",
                        "libraryName": "Global",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [],
                  "where": {
                    "localId": "32",
                    "locator": "21:5-27:5",
                    "type": "Not",
                    "operand": {
                      "localId": "31",
                      "locator": "21:15-27:5",
                      "type": "Exists",
                      "operand": {
                        "localId": "30",
                        "locator": "21:24-26:7",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "15",
                            "locator": "21:26-21:72",
                            "alias": "EncounterDiagnoses",
                            "expression": {
                              "localId": "14",
                              "locator": "21:26-21:53",
                              "path": "diagnoses",
                              "scope": "InpatientEncounter",
                              "type": "Property"
                            }
                          }
                        ],
                        "relationship": [],
                        "where": {
                          "localId": "29",
                          "locator": "22:11-25:11",
                          "type": "Or",
                          "operand": [
                            {
                              "localId": "24",
                              "locator": "22:19-23:68",
                              "type": "Or",
                              "operand": [
                                {
                                  "localId": "19",
                                  "locator": "22:19-22:57",
                                  "type": "InValueSet",
                                  "code": {
                                    "localId": "17",
                                    "locator": "22:19-22:41",
                                    "path": "code",
                                    "scope": "EncounterDiagnoses",
                                    "type": "Property"
                                  },
                                  "valueset": {
                                    "localId": "18",
                                    "locator": "22:46-22:57",
                                    "name": "Obstetrics",
                                    "type": "ValueSetRef"
                                  }
                                },
                                {
                                  "localId": "23",
                                  "locator": "23:18-23:68",
                                  "type": "InValueSet",
                                  "code": {
                                    "localId": "21",
                                    "locator": "23:18-23:40",
                                    "path": "code",
                                    "scope": "EncounterDiagnoses",
                                    "type": "Property"
                                  },
                                  "valueset": {
                                    "localId": "22",
                                    "locator": "23:45-23:68",
                                    "name": "Venous Thromboembolism",
                                    "type": "ValueSetRef"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "28",
                              "locator": "24:18-24:60",
                              "type": "InValueSet",
                              "code": {
                                "localId": "26",
                                "locator": "24:18-24:40",
                                "path": "code",
                                "scope": "EncounterDiagnoses",
                                "type": "Property"
                              },
                              "valueset": {
                                "localId": "27",
                                "locator": "24:45-24:60",
                                "name": "Obstetrics VTE",
                                "type": "ValueSetRef"
                              }
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              },
              {
                "localId": "52",
                "locator": "29:1-34:63",
                "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "52",
                      "s": [
                        {
                          "value": [
                            "",
                            "define ",
                            "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\"",
                            ":\n  "
                          ]
                        },
                        {
                          "r": "51",
                          "s": [
                            {
                              "r": "49",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "49",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "36",
                                          "s": [
                                            {
                                              "r": "35",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Global",
                                                        ".",
                                                        "\"Inpatient Encounter\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "InpatientEncounter"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n      "
                                      ]
                                    },
                                    {
                                      "r": "48",
                                      "s": [
                                        {
                                          "value": [
                                            "with "
                                          ]
                                        },
                                        {
                                          "r": "38",
                                          "s": [
                                            {
                                              "r": "37",
                                              "s": [
                                                {
                                                  "r": "37",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Patient Characteristic Birthdate\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Birth date\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "BirthDate"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n        such that "
                                          ]
                                        },
                                        {
                                          "r": "47",
                                          "s": [
                                            {
                                              "r": "45",
                                              "s": [
                                                {
                                                  "r": "39",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Global"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "45",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"CalendarAgeInYearsAt\"",
                                                        " ( "
                                                      ]
                                                    },
                                                    {
                                                      "r": "41",
                                                      "s": [
                                                        {
                                                          "r": "40",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "BirthDate"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "41",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "birthDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        ", "
                                                      ]
                                                    },
                                                    {
                                                      "r": "44",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "43",
                                                          "s": [
                                                            {
                                                              "r": "42",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "InpatientEncounter"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "43",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " )"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "r": "46",
                                              "value": [
                                                " ",
                                                ">=",
                                                " ",
                                                "18"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n  )"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n    intersect "
                              ]
                            },
                            {
                              "r": "50",
                              "s": [
                                {
                                  "value": [
                                    "\"Admission Without VTE or Obstetrical Conditions\""
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "51",
                  "locator": "30:3-34:63",
                  "type": "Intersect",
                  "operand": [
                    {
                      "localId": "49",
                      "locator": "30:3-33:3",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "36",
                          "locator": "30:5-30:51",
                          "alias": "InpatientEncounter",
                          "expression": {
                            "localId": "35",
                            "locator": "30:5-30:32",
                            "name": "Inpatient Encounter",
                            "libraryName": "Global",
                            "type": "ExpressionRef"
                          }
                        }
                      ],
                      "relationship": [
                        {
                          "localId": "48",
                          "locator": "31:7-32:125",
                          "alias": "BirthDate",
                          "type": "With",
                          "expression": {
                            "localId": "37",
                            "locator": "31:12-31:61",
                            "dataType": "{urn:healthit-gov:qdm:v5_6}PatientCharacteristicBirthdate",
                            "codeProperty": "code",
                            "codeComparator": "~",
                            "type": "Retrieve",
                            "codes": {
                              "type": "ToList",
                              "operand": {
                                "locator": "31:49-31:60",
                                "name": "Birth date",
                                "type": "CodeRef"
                              }
                            }
                          },
                          "suchThat": {
                            "localId": "47",
                            "locator": "32:19-32:125",
                            "type": "GreaterOrEqual",
                            "operand": [
                              {
                                "localId": "45",
                                "locator": "32:19-32:119",
                                "name": "CalendarAgeInYearsAt",
                                "libraryName": "Global",
                                "type": "FunctionRef",
                                "operand": [
                                  {
                                    "localId": "41",
                                    "locator": "32:51-32:73",
                                    "path": "birthDatetime",
                                    "scope": "BirthDate",
                                    "type": "Property"
                                  },
                                  {
                                    "localId": "44",
                                    "locator": "32:76-32:117",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "43",
                                      "locator": "32:85-32:117",
                                      "path": "relevantPeriod",
                                      "scope": "InpatientEncounter",
                                      "type": "Property"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "46",
                                "locator": "32:124-32:125",
                                "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                "value": "18",
                                "type": "Literal"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    {
                      "localId": "50",
                      "locator": "34:15-34:63",
                      "name": "Admission Without VTE or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              },
              {
                "localId": "68",
                "locator": "36:1-37:149",
                "name": "FromDayOfStartOfHospitalizationToDayAfterAdmission",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "68",
                      "s": [
                        {
                          "value": [
                            "",
                            "define function ",
                            "\"FromDayOfStartOfHospitalizationToDayAfterAdmission\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "53",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "67",
                          "s": [
                            {
                              "r": "67",
                              "s": [
                                {
                                  "value": [
                                    "Interval["
                                  ]
                                },
                                {
                                  "r": "59",
                                  "s": [
                                    {
                                      "r": "54",
                                      "s": [
                                        {
                                          "value": [
                                            "Global"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "59",
                                      "s": [
                                        {
                                          "value": [
                                            "\"ToDate\"",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "58",
                                          "s": [
                                            {
                                              "value": [
                                                "start of "
                                              ]
                                            },
                                            {
                                              "r": "57",
                                              "s": [
                                                {
                                                  "r": "55",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Global"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "57",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"HospitalizationWithObservation\"",
                                                        "("
                                                      ]
                                                    },
                                                    {
                                                      "r": "56",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Encounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        ")"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ")"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "66",
                                  "s": [
                                    {
                                      "r": "60",
                                      "s": [
                                        {
                                          "value": [
                                            "Global"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "66",
                                      "s": [
                                        {
                                          "value": [
                                            "\"ToDate\"",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "65",
                                          "s": [
                                            {
                                              "r": "63",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "62",
                                                  "s": [
                                                    {
                                                      "r": "61",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Encounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "62",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " + "
                                              ]
                                            },
                                            {
                                              "r": "64",
                                              "s": [
                                                {
                                                  "value": [
                                                    "2 ",
                                                    "days"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ")"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "67",
                  "locator": "37:3-37:149",
                  "lowClosed": true,
                  "highClosed": false,
                  "type": "Interval",
                  "low": {
                    "localId": "59",
                    "locator": "37:12-37:87",
                    "name": "ToDate",
                    "libraryName": "Global",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "58",
                        "locator": "37:28-37:86",
                        "type": "Start",
                        "operand": {
                          "localId": "57",
                          "locator": "37:37-37:86",
                          "name": "HospitalizationWithObservation",
                          "libraryName": "Global",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "56",
                              "locator": "37:77-37:85",
                              "name": "Encounter",
                              "type": "OperandRef"
                            }
                          ]
                        }
                      }
                    ]
                  },
                  "high": {
                    "localId": "66",
                    "locator": "37:90-37:148",
                    "name": "ToDate",
                    "libraryName": "Global",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "65",
                        "locator": "37:106-37:147",
                        "type": "Add",
                        "operand": [
                          {
                            "localId": "63",
                            "locator": "37:106-37:138",
                            "type": "Start",
                            "operand": {
                              "localId": "62",
                              "locator": "37:115-37:138",
                              "path": "relevantPeriod",
                              "type": "Property",
                              "source": {
                                "localId": "61",
                                "locator": "37:115-37:123",
                                "name": "Encounter",
                                "type": "OperandRef"
                              }
                            }
                          },
                          {
                            "localId": "64",
                            "locator": "37:142-37:147",
                            "value": 2,
                            "unit": "days",
                            "type": "Quantity"
                          }
                        ]
                      }
                    ]
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "53",
                      "locator": "36:80-36:101",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "76",
                "locator": "45:1-46:71",
                "name": "FirstICULocationPeriod",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "76",
                      "s": [
                        {
                          "value": [
                            "",
                            "define function ",
                            "\"FirstICULocationPeriod\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "71",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "75",
                          "s": [
                            {
                              "r": "75",
                              "s": [
                                {
                                  "r": "74",
                                  "s": [
                                    {
                                      "r": "72",
                                      "s": [
                                        {
                                          "value": [
                                            "Global"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "74",
                                      "s": [
                                        {
                                          "value": [
                                            "\"FirstInpatientIntensiveCareUnit\"",
                                            " ( "
                                          ]
                                        },
                                        {
                                          "r": "73",
                                          "s": [
                                            {
                                              "value": [
                                                "Encounter"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "."
                                  ]
                                },
                                {
                                  "r": "75",
                                  "s": [
                                    {
                                      "value": [
                                        "locationPeriod"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "75",
                  "locator": "46:3-46:71",
                  "path": "locationPeriod",
                  "type": "Property",
                  "source": {
                    "localId": "74",
                    "locator": "46:3-46:56",
                    "name": "FirstInpatientIntensiveCareUnit",
                    "libraryName": "Global",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "73",
                        "locator": "46:46-46:54",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    ]
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "71",
                      "locator": "45:52-45:73",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "79",
                "locator": "39:1-40:46",
                "name": "StartOfFirstICU",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "79",
                      "s": [
                        {
                          "value": [
                            "",
                            "define function ",
                            "\"StartOfFirstICU\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "69",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "78",
                          "s": [
                            {
                              "r": "78",
                              "s": [
                                {
                                  "value": [
                                    "start of "
                                  ]
                                },
                                {
                                  "r": "77",
                                  "s": [
                                    {
                                      "value": [
                                        "\"FirstICULocationPeriod\"",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "70",
                                      "s": [
                                        {
                                          "value": [
                                            "Encounter"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "78",
                  "locator": "40:3-40:46",
                  "type": "Start",
                  "operand": {
                    "localId": "77",
                    "locator": "40:12-40:46",
                    "name": "FirstICULocationPeriod",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "70",
                        "locator": "40:37-40:45",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    ]
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "69",
                      "locator": "39:45-39:66",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "94",
                "locator": "42:1-43:141",
                "name": "FromDayOfStartOfHospitalizationToDayAfterFirstICU",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "94",
                      "s": [
                        {
                          "value": [
                            "",
                            "define function ",
                            "\"FromDayOfStartOfHospitalizationToDayAfterFirstICU\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "80",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "93",
                          "s": [
                            {
                              "r": "93",
                              "s": [
                                {
                                  "value": [
                                    "Interval["
                                  ]
                                },
                                {
                                  "r": "86",
                                  "s": [
                                    {
                                      "r": "81",
                                      "s": [
                                        {
                                          "value": [
                                            "Global"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "86",
                                      "s": [
                                        {
                                          "value": [
                                            "\"ToDate\"",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "85",
                                          "s": [
                                            {
                                              "value": [
                                                "start of "
                                              ]
                                            },
                                            {
                                              "r": "84",
                                              "s": [
                                                {
                                                  "r": "82",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Global"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "84",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"HospitalizationWithObservation\"",
                                                        "("
                                                      ]
                                                    },
                                                    {
                                                      "r": "83",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Encounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        ")"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ")"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "92",
                                  "s": [
                                    {
                                      "r": "87",
                                      "s": [
                                        {
                                          "value": [
                                            "Global"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "92",
                                      "s": [
                                        {
                                          "value": [
                                            "\"ToDate\"",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "91",
                                          "s": [
                                            {
                                              "r": "89",
                                              "s": [
                                                {
                                                  "value": [
                                                    "StartOfFirstICU",
                                                    "("
                                                  ]
                                                },
                                                {
                                                  "r": "88",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Encounter"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ")"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "+ "
                                              ]
                                            },
                                            {
                                              "r": "90",
                                              "s": [
                                                {
                                                  "value": [
                                                    "2 ",
                                                    "days"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ")"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "93",
                  "locator": "43:3-43:141",
                  "lowClosed": true,
                  "highClosed": false,
                  "type": "Interval",
                  "low": {
                    "localId": "86",
                    "locator": "43:12-43:87",
                    "name": "ToDate",
                    "libraryName": "Global",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "85",
                        "locator": "43:28-43:86",
                        "type": "Start",
                        "operand": {
                          "localId": "84",
                          "locator": "43:37-43:86",
                          "name": "HospitalizationWithObservation",
                          "libraryName": "Global",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "83",
                              "locator": "43:77-43:85",
                              "name": "Encounter",
                              "type": "OperandRef"
                            }
                          ]
                        }
                      }
                    ]
                  },
                  "high": {
                    "localId": "92",
                    "locator": "43:90-43:140",
                    "name": "ToDate",
                    "libraryName": "Global",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "91",
                        "locator": "43:106-43:139",
                        "type": "Add",
                        "operand": [
                          {
                            "localId": "89",
                            "locator": "43:106-43:131",
                            "name": "StartOfFirstICU",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "88",
                                "locator": "43:122-43:130",
                                "name": "Encounter",
                                "type": "OperandRef"
                              }
                            ]
                          },
                          {
                            "localId": "90",
                            "locator": "43:134-43:139",
                            "value": 2,
                            "unit": "days",
                            "type": "Quantity"
                          }
                        ]
                      }
                    ]
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "80",
                      "locator": "42:79-42:100",
                      "name": "{urn:healthit-gov:qdm:v5_6}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "107",
                "locator": "48:1-49:84",
                "name": "CalendarDayOfOrDayAfter",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "107",
                      "s": [
                        {
                          "value": [
                            "",
                            "define function ",
                            "\"CalendarDayOfOrDayAfter\"",
                            "(",
                            "StartValue",
                            " "
                          ]
                        },
                        {
                          "r": "97",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n  "
                          ]
                        },
                        {
                          "r": "106",
                          "s": [
                            {
                              "r": "106",
                              "s": [
                                {
                                  "value": [
                                    "Interval["
                                  ]
                                },
                                {
                                  "r": "100",
                                  "s": [
                                    {
                                      "r": "98",
                                      "s": [
                                        {
                                          "value": [
                                            "Global"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "100",
                                      "s": [
                                        {
                                          "value": [
                                            "\"ToDate\"",
                                            " ( "
                                          ]
                                        },
                                        {
                                          "r": "99",
                                          "s": [
                                            {
                                              "value": [
                                                "StartValue"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "105",
                                  "s": [
                                    {
                                      "r": "101",
                                      "s": [
                                        {
                                          "value": [
                                            "Global"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "."
                                      ]
                                    },
                                    {
                                      "r": "105",
                                      "s": [
                                        {
                                          "value": [
                                            "\"ToDate\"",
                                            " ( "
                                          ]
                                        },
                                        {
                                          "r": "104",
                                          "s": [
                                            {
                                              "r": "102",
                                              "s": [
                                                {
                                                  "value": [
                                                    "StartValue"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " + "
                                              ]
                                            },
                                            {
                                              "r": "103",
                                              "s": [
                                                {
                                                  "value": [
                                                    "2 ",
                                                    "days"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " )"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "106",
                  "locator": "49:3-49:84",
                  "lowClosed": true,
                  "highClosed": false,
                  "type": "Interval",
                  "low": {
                    "localId": "100",
                    "locator": "49:12-49:41",
                    "name": "ToDate",
                    "libraryName": "Global",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "99",
                        "locator": "49:30-49:39",
                        "name": "StartValue",
                        "type": "OperandRef"
                      }
                    ]
                  },
                  "high": {
                    "localId": "105",
                    "locator": "49:44-49:82",
                    "name": "ToDate",
                    "libraryName": "Global",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "104",
                        "locator": "49:62-49:80",
                        "type": "Add",
                        "operand": [
                          {
                            "localId": "102",
                            "locator": "49:62-49:71",
                            "name": "StartValue",
                            "type": "OperandRef"
                          },
                          {
                            "localId": "103",
                            "locator": "49:75-49:80",
                            "value": 2,
                            "unit": "days",
                            "type": "Quantity"
                          }
                        ]
                      }
                    ]
                  }
                },
                "operand": [
                  {
                    "name": "StartValue",
                    "operandTypeSpecifier": {
                      "localId": "97",
                      "locator": "48:54-48:61",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "statements": [
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Admission Without VTE or Obstetrical Conditions\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Global.\"Inpatient Encounter\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "12"
                              },
                              {
                                "children": [
                                  {
                                    "text": " InpatientEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "13"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "not "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "InpatientEncounter.diagnoses"
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "14"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " EncounterDiagnoses"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "15"
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n          "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "where "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "( "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "EncounterDiagnoses"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "16"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "."
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "code"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "17"
                                                                      }
                                                                    ],
                                                                    "ref_id": "17"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " in "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "\"Obstetrics\""
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "18"
                                                                  }
                                                                ],
                                                                "node_type": "InValueSet",
                                                                "ref_id": "19"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\n              or "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "EncounterDiagnoses"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "20"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "."
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "code"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "21"
                                                                      }
                                                                    ],
                                                                    "ref_id": "21"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " in "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "\"Venous Thromboembolism\""
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "22"
                                                                  }
                                                                ],
                                                                "node_type": "InValueSet",
                                                                "ref_id": "23"
                                                              }
                                                            ],
                                                            "node_type": "Or",
                                                            "ref_id": "24"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\n              or "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "EncounterDiagnoses"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "25"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "."
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "code"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "26"
                                                                  }
                                                                ],
                                                                "ref_id": "26"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " in "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "\"Obstetrics VTE\""
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "27"
                                                              }
                                                            ],
                                                            "node_type": "InValueSet",
                                                            "ref_id": "28"
                                                          }
                                                        ],
                                                        "ref_id": "29"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\n          )"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "29"
                                                  }
                                                ],
                                                "ref_id": "29"
                                              }
                                            ],
                                            "node_type": "Query",
                                            "ref_id": "30"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n      )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Query",
                                        "ref_id": "30"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "31"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n    )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Exists",
                                "ref_id": "31"
                              }
                            ],
                            "ref_id": "32"
                          }
                        ],
                        "ref_id": "32"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "33"
                  }
                ],
                "ref_id": "34"
              }
            ],
            "define_name": "Admission Without VTE or Obstetrical Conditions"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "( "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Global.\"Inpatient Encounter\""
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "35"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " InpatientEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "36"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "with "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Patient Characteristic Birthdate\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Birth date\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "37"
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "37"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " BirthDate"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "38"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        such that "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Global"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "39"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"CalendarAgeInYearsAt\" ( "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "BirthDate"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "40"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "birthDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "41"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "41"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": ", "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "start of "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "InpatientEncounter"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "42"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "."
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "relevantPeriod"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "43"
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "43"
                                                  }
                                                ],
                                                "node_type": "Start",
                                                "ref_id": "44"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " )"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "FunctionRef",
                                            "ref_id": "45"
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "45"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " >= 18"
                                          }
                                        ],
                                        "node_type": "Literal",
                                        "ref_id": "46"
                                      }
                                    ],
                                    "node_type": "GreaterOrEqual",
                                    "ref_id": "47"
                                  }
                                ],
                                "ref_id": "48"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "49"
                          },
                          {
                            "children": [
                              {
                                "text": "\n  )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "49"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    intersect "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Admission Without VTE or Obstetrical Conditions\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "50"
                      }
                    ],
                    "node_type": "Intersect",
                    "ref_id": "51"
                  }
                ],
                "ref_id": "52"
              }
            ],
            "define_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"FromDayOfStartOfHospitalizationToDayAfterAdmission\"(Encounter "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Encounter, Performed\""
                          }
                        ]
                      }
                    ],
                    "ref_id": "53"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "Interval["
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Global"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "54"
                              },
                              {
                                "children": [
                                  {
                                    "text": "."
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"ToDate\"("
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "start of "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Global"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "55"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"HospitalizationWithObservation\"("
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "Encounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "OperandRef",
                                                "ref_id": "56"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": ")"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "FunctionRef",
                                            "ref_id": "57"
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "57"
                                      }
                                    ],
                                    "node_type": "Start",
                                    "ref_id": "58"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": ")"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "59"
                              }
                            ],
                            "ref_id": "59"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Global"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "60"
                              },
                              {
                                "children": [
                                  {
                                    "text": "."
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"ToDate\"("
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "Encounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "61"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "62"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "62"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "63"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " + "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "2 days"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Quantity",
                                        "ref_id": "64"
                                      }
                                    ],
                                    "node_type": "Add",
                                    "ref_id": "65"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": ")"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "66"
                              }
                            ],
                            "ref_id": "66"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "Interval",
                        "ref_id": "67"
                      }
                    ],
                    "node_type": "Interval",
                    "ref_id": "67"
                  }
                ],
                "ref_id": "68"
              }
            ],
            "define_name": "FromDayOfStartOfHospitalizationToDayAfterAdmission"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"FirstICULocationPeriod\"(Encounter "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Encounter, Performed\""
                          }
                        ]
                      }
                    ],
                    "ref_id": "71"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Global"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "72"
                              },
                              {
                                "children": [
                                  {
                                    "text": "."
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"FirstInpatientIntensiveCareUnit\" ( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Encounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "OperandRef",
                                    "ref_id": "73"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "74"
                              }
                            ],
                            "ref_id": "74"
                          },
                          {
                            "children": [
                              {
                                "text": "."
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "locationPeriod"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Property",
                            "ref_id": "75"
                          }
                        ],
                        "node_type": "Property",
                        "ref_id": "75"
                      }
                    ],
                    "node_type": "Property",
                    "ref_id": "75"
                  }
                ],
                "ref_id": "76"
              }
            ],
            "define_name": "FirstICULocationPeriod"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"StartOfFirstICU\"(Encounter "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Encounter, Performed\""
                          }
                        ]
                      }
                    ],
                    "ref_id": "69"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "start of "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"FirstICULocationPeriod\"("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Encounter"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "70"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "77"
                          }
                        ],
                        "node_type": "Start",
                        "ref_id": "78"
                      }
                    ],
                    "node_type": "Start",
                    "ref_id": "78"
                  }
                ],
                "ref_id": "79"
              }
            ],
            "define_name": "StartOfFirstICU"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"FromDayOfStartOfHospitalizationToDayAfterFirstICU\"(Encounter "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Encounter, Performed\""
                          }
                        ]
                      }
                    ],
                    "ref_id": "80"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "Interval["
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Global"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "81"
                              },
                              {
                                "children": [
                                  {
                                    "text": "."
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"ToDate\"("
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "start of "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Global"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "82"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"HospitalizationWithObservation\"("
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "Encounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "OperandRef",
                                                "ref_id": "83"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": ")"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "FunctionRef",
                                            "ref_id": "84"
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "84"
                                      }
                                    ],
                                    "node_type": "Start",
                                    "ref_id": "85"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": ")"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "86"
                              }
                            ],
                            "ref_id": "86"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Global"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "87"
                              },
                              {
                                "children": [
                                  {
                                    "text": "."
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"ToDate\"("
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "StartOfFirstICU("
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Encounter"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "OperandRef",
                                            "ref_id": "88"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": ")"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "FunctionRef",
                                        "ref_id": "89"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "+ "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "2 days"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Quantity",
                                        "ref_id": "90"
                                      }
                                    ],
                                    "node_type": "Add",
                                    "ref_id": "91"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": ")"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "92"
                              }
                            ],
                            "ref_id": "92"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "Interval",
                        "ref_id": "93"
                      }
                    ],
                    "node_type": "Interval",
                    "ref_id": "93"
                  }
                ],
                "ref_id": "94"
              }
            ],
            "define_name": "FromDayOfStartOfHospitalizationToDayAfterFirstICU"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarDayOfOrDayAfter\"(StartValue "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "97"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "Interval["
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Global"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "98"
                              },
                              {
                                "children": [
                                  {
                                    "text": "."
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"ToDate\" ( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "StartValue"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "OperandRef",
                                    "ref_id": "99"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "100"
                              }
                            ],
                            "ref_id": "100"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Global"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "101"
                              },
                              {
                                "children": [
                                  {
                                    "text": "."
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"ToDate\" ( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "StartValue"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "OperandRef",
                                        "ref_id": "102"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " + "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "2 days"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Quantity",
                                        "ref_id": "103"
                                      }
                                    ],
                                    "node_type": "Add",
                                    "ref_id": "104"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "105"
                              }
                            ],
                            "ref_id": "105"
                          },
                          {
                            "children": [
                              {
                                "text": " )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Interval",
                        "ref_id": "106"
                      }
                    ],
                    "node_type": "Interval",
                    "ref_id": "106"
                  }
                ],
                "ref_id": "107"
              }
            ],
            "define_name": "CalendarDayOfOrDayAfter"
          }
        ],
        "identifier": {
          "id": "TEST_VTEICU56",
          "version": "0.2.000"
        }
      },
      "is_main_library": false,
      "is_top_level": true,
      "library_name": "TEST_VTEICU56",
      "library_version": "0.2.000",
      "statement_dependencies": [
        {
          "_id": "609d998eb78902cd9466f593",
          "statement_name": "FromDayOfStartOfHospitalizationToDayAfterAdmission",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f594",
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctionsNEW",
              "statement_name": "ToDate"
            },
            {
              "_id": "609d998eb78902cd9466f595",
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctionsNEW",
              "statement_name": "HospitalizationWithObservation"
            }
          ]
        },
        {
          "_id": "609d998eb78902cd9466f596",
          "statement_name": "CalendarDayOfOrDayAfter",
          "statement_references": [
            {
              "_id": "609d998eb78902cd9466f597",
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctionsNEW",
              "statement_name": "ToDate"
            }
          ]
        }
      ]
    }
  ],
  "created_at": "2021-05-13T21:26:37.995Z",
  "description": "CMS108",
  "group_id": "6093077eb789025041bbbeec",
  "hqmf_id": "2C928082-7791-738A-0177-918233FF004B",
  "hqmf_set_id": "0B2D4BCF-EDF6-41C5-BE2A-64ACCDB9DD35",
  "hqmf_version_number": "0.1.005",
  "main_cql_library": "CMS108",
  "measure_attributes": [
    {
      "code": "OTH",
      "value": "",
      "name": "eCQM Identifier (Measure Authoring Tool)",
      "code_obj": {
        "type": "CD",
        "null_flavor": "OTH",
        "original_text": "eCQM Identifier (Measure Authoring Tool)"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "OTH",
      "value": "Not Applicable",
      "name": "NQF Number",
      "code_obj": {
        "type": "CD",
        "null_flavor": "OTH",
        "original_text": "NQF Number"
      },
      "value_obj": {
        "type": "ED",
        "value": "Not Applicable",
        "media_type": "text/plain"
      }
    },
    {
      "code": "COPY",
      "value": "",
      "name": "Copyright",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "COPY",
        "title": "Copyright"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DISC",
      "value": "",
      "name": "Disclaimer",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DISC",
        "title": "Disclaimer"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "MSRSCORE",
      "name": "Measure Scoring",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "MSRSCORE",
        "title": "Measure Scoring"
      },
      "value_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.1063",
        "code": "PROPOR",
        "title": "Proportion"
      }
    },
    {
      "code": "MSRTYPE",
      "name": "Measure Type",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "MSRTYPE",
        "title": "Measure Type"
      },
      "value_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.1063",
        "code": "PROCESS",
        "title": "PROCESS"
      }
    },
    {
      "code": "STRAT",
      "value": "",
      "name": "Stratification",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "STRAT",
        "title": "Stratification"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "MSRADJ",
      "value": "",
      "name": "Risk Adjustment",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "MSRADJ",
        "title": "Risk Adjustment"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "MSRAGG",
      "value": "",
      "name": "Rate Aggregation",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "MSRAGG",
        "title": "Rate Aggregation"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "RAT",
      "value": "",
      "name": "Rationale",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "RAT",
        "title": "Rationale"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "CRS",
      "value": "",
      "name": "Clinical Recommendation Statement",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "CRS",
        "title": "Clinical Recommendation Statement"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "IDUR",
      "value": "",
      "name": "Improvement Notation",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "IDUR",
        "title": "Improvement Notation"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DEF",
      "name": "Definition",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DEF",
        "title": "Definition"
      },
      "value_obj": {
        "type": "ED",
        "media_type": "text/plain"
      }
    },
    {
      "code": "GUIDE",
      "value": "",
      "name": "Guidance",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "GUIDE",
        "title": "Guidance"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "TRANF",
      "value": "",
      "name": "Transmission Format",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "TRANF",
        "title": "Transmission Format"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "IPOP",
      "value": "",
      "name": "Initial Population",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "IPOP",
        "title": "Initial Population"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENOM",
      "value": "",
      "name": "Denominator",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DENOM",
        "title": "Denominator"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENEX",
      "value": "",
      "name": "Denominator Exclusions",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DENEX",
        "title": "Denominator Exclusions"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMER",
      "value": "",
      "name": "Numerator",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "NUMER",
        "title": "Numerator"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMEX",
      "value": "",
      "name": "Numerator Exclusions",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "NUMEX",
        "title": "Numerator Exclusions"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENEXCEP",
      "value": "",
      "name": "Denominator Exceptions",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DENEXCEP",
        "title": "Denominator Exceptions"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    },
    {
      "code": "SDE",
      "value": "",
      "name": "Supplemental Data Elements",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "SDE",
        "title": "Supplemental Data Elements"
      },
      "value_obj": {
        "type": "ED",
        "value": "",
        "media_type": "text/plain"
      }
    }
  ],
  "measure_period": {
    "type": "IVL_TS",
    "low": {
      "type": "TS",
      "value": "201201010000",
      "inclusive?": true,
      "derived?": false
    },
    "high": {
      "type": "TS",
      "value": "201212312359",
      "inclusive?": true,
      "derived?": false
    },
    "width": {
      "type": "PQ",
      "unit": "a",
      "value": "1",
      "inclusive?": true,
      "derived?": false
    }
  },
  "measure_scoring": "PROPORTION",
  "patient_ids": [],
  "population_criteria": {
    "IPP": {
      "conjunction?": true,
      "type": "IPP",
      "hqmf_id": "A43B38F6-F29B-47A4-BD73-CFF85FE93F37",
      "preconditions": [
        {
          "id": 2,
          "preconditions": [
            {
              "id": 1,
              "reference": "CMS108__Initial_Population__59E560C9_C02D_4A9B_98B5_D678D249B21E"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "0635FE70-A0EE-416A-BA19-DFF0ACEF30F4",
      "preconditions": [
        {
          "id": 4,
          "preconditions": [
            {
              "id": 3,
              "reference": "CMS108__Denominator__59E560C9_C02D_4A9B_98B5_D678D249B21E"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "EB98FDEB-E1A7-4E2D-9439-1BD541D4B282",
      "preconditions": [
        {
          "id": 6,
          "preconditions": [
            {
              "id": 5,
              "reference": "CMS108__Numerator__59E560C9_C02D_4A9B_98B5_D678D249B21E"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    }
  },
  "population_sets": [
    {
      "_id": "609d998eb78902cd9466f5bb",
      "population_set_id": "PopulationSet_1",
      "populations": {
        "DENOM": {
          "_id": "609d998eb78902cd9466f5be",
          "hqmf_id": "0635FE70-A0EE-416A-BA19-DFF0ACEF30F4",
          "library_name": "CMS108",
          "statement_name": "Denominator"
        },
        "IPP": {
          "_id": "609d998eb78902cd9466f5bd",
          "hqmf_id": "A43B38F6-F29B-47A4-BD73-CFF85FE93F37",
          "library_name": "CMS108",
          "statement_name": "Initial Population"
        },
        "NUMER": {
          "_id": "609d998eb78902cd9466f5bf",
          "hqmf_id": "EB98FDEB-E1A7-4E2D-9439-1BD541D4B282",
          "library_name": "CMS108",
          "statement_name": "Numerator"
        },
        "_id": "609d998eb78902cd9466f5bc"
      },
      "supplemental_data_elements": [
        {
          "_id": "609d998eb78902cd9466f5c0",
          "hqmf_id": "C28ADE22-180C-4671-AF44-278238689D91",
          "library_name": "CMS108",
          "statement_name": "SDE Ethnicity"
        },
        {
          "_id": "609d998eb78902cd9466f5c1",
          "hqmf_id": "B25BCCDB-B913-4F1E-A486-64ECDC25E0C5",
          "library_name": "CMS108",
          "statement_name": "SDE Payer"
        },
        {
          "_id": "609d998eb78902cd9466f5c2",
          "hqmf_id": "41B2F95E-DF79-496C-8CEC-C58A4E23B1E2",
          "library_name": "CMS108",
          "statement_name": "SDE Race"
        },
        {
          "_id": "609d998eb78902cd9466f5c3",
          "hqmf_id": "875E52E0-67DA-48DF-89BC-0193082F617F",
          "library_name": "CMS108",
          "statement_name": "SDE Sex"
        }
      ],
      "title": "Population Criteria Section"
    }
  ],
  "source_data_criteria": [
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bc2",
      "performer": [],
      "relatedTo": [],
      "qdmTitle": "Procedure, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.67",
      "qdmCategory": "procedure",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::ProcedurePerformed",
      "description": "Procedure, Performed: Venousfootpumps(VFP)",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.230",
      "id": "609d95acb789028849ab7bc2",
      "components": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bc3",
      "requester": [],
      "qdmTitle": "Device, Order",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.15",
      "qdmCategory": "device",
      "qdmStatus": "order",
      "qdmVersion": "5.6",
      "_type": "QDM::DeviceOrder",
      "description": "Device, Order: Venousfootpumps(VFP)",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.230",
      "id": "609d95acb789028849ab7bc3"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bc4",
      "qdmTitle": "Patient Characteristic Sex",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.55",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "gender",
      "qdmVersion": "5.6",
      "_type": "QDM::PatientCharacteristicSex",
      "description": "Patient Characteristic Sex: ONCAdministrativeSex",
      "codeListId": "2.16.840.1.113762.1.4.1",
      "id": "609d95acb789028849ab7bc4"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bc5",
      "performer": [],
      "qdmTitle": "Medication, Administered",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.45",
      "qdmCategory": "medication",
      "qdmStatus": "administered",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationAdministered",
      "description": "Medication, Administered: DirectThrombinInhibitor",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.205",
      "id": "609d95acb789028849ab7bc5"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bc6",
      "performer": [],
      "relatedTo": [],
      "qdmTitle": "Procedure, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.67",
      "qdmCategory": "procedure",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::ProcedurePerformed",
      "description": "Procedure, Performed: GeneralorNeuraxialAnesthesia",
      "codeListId": "2.16.840.1.113883.3.666.5.1743",
      "id": "609d95acb789028849ab7bc6",
      "components": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bc7",
      "performer": [],
      "qdmTitle": "Medication, Administered",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.45",
      "qdmCategory": "medication",
      "qdmStatus": "administered",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationAdministered",
      "description": "Medication, Administered: UnfractionatedHeparin",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.218",
      "id": "609d95acb789028849ab7bc7"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bc8",
      "performer": [],
      "relatedTo": [],
      "qdmTitle": "Laboratory Test, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.42",
      "qdmCategory": "laboratory_test",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::LaboratoryTestPerformed",
      "description": "Laboratory Test, Performed: INR",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.213",
      "id": "609d95acb789028849ab7bc8",
      "components": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bc9",
      "performer": [],
      "qdmTitle": "Medication, Administered",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.45",
      "qdmCategory": "medication",
      "qdmStatus": "administered",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationAdministered",
      "description": "Medication, Administered: OralFactorXaInhibitorforVTEProphylaxisorVTETreatment",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.134",
      "id": "609d95acb789028849ab7bc9"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bca",
      "recorder": [],
      "qdmTitle": "Diagnosis",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "qrdaOid": "2.16.840.1.113883.10.20.24.3.135",
      "qdmCategory": "condition",
      "qdmVersion": "5.6",
      "_type": "QDM::Diagnosis",
      "description": "Diagnosis: VenousThromboembolism",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.279",
      "id": "609d95acb789028849ab7bca"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bcb",
      "performer": [],
      "relatedTo": [],
      "qdmTitle": "Procedure, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.67",
      "qdmCategory": "procedure",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::ProcedurePerformed",
      "description": "Procedure, Performed: HipReplacementSurgery",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.259",
      "id": "609d95acb789028849ab7bcb",
      "components": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bcc",
      "qdmTitle": "Patient Characteristic Race",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.59",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "race",
      "qdmVersion": "5.6",
      "_type": "QDM::PatientCharacteristicRace",
      "description": "Patient Characteristic Race: Race",
      "codeListId": "2.16.840.1.114222.4.11.836",
      "id": "609d95acb789028849ab7bcc"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bcd",
      "performer": [],
      "qdmTitle": "Medication, Administered",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.45",
      "qdmCategory": "medication",
      "qdmStatus": "administered",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationAdministered",
      "description": "Medication, Administered: InjectableFactorXaInhibitorforVTEProphylaxis",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.211",
      "id": "609d95acb789028849ab7bcd"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bce",
      "prescriber": [],
      "relatedTo": [],
      "qdmTitle": "Medication, Order",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.51",
      "qdmCategory": "medication",
      "qdmStatus": "order",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationOrder",
      "description": "Medication, Order: InjectableFactorXaInhibitorforVTEProphylaxis",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.211",
      "id": "609d95acb789028849ab7bce"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bcf",
      "recorder": [],
      "qdmTitle": "Diagnosis",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "qrdaOid": "2.16.840.1.113883.10.20.24.3.135",
      "qdmCategory": "condition",
      "qdmVersion": "5.6",
      "_type": "QDM::Diagnosis",
      "description": "Diagnosis: AtrialFibrillation/Flutter",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.202",
      "id": "609d95acb789028849ab7bcf"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bd0",
      "qdmTitle": "Patient Characteristic Payer",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.58",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "payer",
      "qdmVersion": "5.6",
      "_type": "QDM::PatientCharacteristicPayer",
      "description": "Patient Characteristic Payer: Payer",
      "codeListId": "2.16.840.1.114222.4.11.3591",
      "id": "609d95acb789028849ab7bd0"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bd1",
      "performer": [],
      "qdmTitle": "Medication, Administered",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.45",
      "qdmCategory": "medication",
      "qdmStatus": "administered",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationAdministered",
      "description": "Medication, Administered: Warfarin",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.232",
      "id": "609d95acb789028849ab7bd1"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bd2",
      "prescriber": [],
      "relatedTo": [],
      "qdmTitle": "Medication, Order",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.51",
      "qdmCategory": "medication",
      "qdmStatus": "order",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationOrder",
      "description": "Medication, Order: Warfarin",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.232",
      "id": "609d95acb789028849ab7bd2"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bd3",
      "performer": [],
      "relatedTo": [],
      "qdmTitle": "Procedure, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.67",
      "qdmCategory": "procedure",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::ProcedurePerformed",
      "description": "Procedure, Performed: KneeReplacementSurgery",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.261",
      "id": "609d95acb789028849ab7bd3",
      "components": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bd4",
      "performer": [],
      "qdmTitle": "Medication, Administered",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.45",
      "qdmCategory": "medication",
      "qdmStatus": "administered",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationAdministered",
      "description": "Medication, Administered: RivaroxabanandBetrixabanforVTEProphylaxis",
      "codeListId": "2.16.840.1.113762.1.4.1110.50",
      "id": "609d95acb789028849ab7bd4"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bd5",
      "prescriber": [],
      "relatedTo": [],
      "qdmTitle": "Medication, Order",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.51",
      "qdmCategory": "medication",
      "qdmStatus": "order",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationOrder",
      "description": "Medication, Order: RivaroxabanandBetrixabanforVTEProphylaxis",
      "codeListId": "2.16.840.1.113762.1.4.1110.50",
      "id": "609d95acb789028849ab7bd5"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bd6",
      "participant": [],
      "relatedTo": [],
      "qdmTitle": "Encounter, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "qdmCategory": "encounter",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::EncounterPerformed",
      "facilityLocations": [],
      "description": "Encounter, Performed: ObservationServices",
      "codeListId": "2.16.840.1.113762.1.4.1111.143",
      "id": "609d95acb789028849ab7bd6",
      "diagnoses": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bd7",
      "participant": [],
      "relatedTo": [],
      "qdmTitle": "Encounter, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "qdmCategory": "encounter",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::EncounterPerformed",
      "facilityLocations": [],
      "description": "Encounter, Performed: EmergencyDepartmentVisit",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.292",
      "id": "609d95acb789028849ab7bd7",
      "diagnoses": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bd8",
      "performer": [],
      "relatedTo": [],
      "qdmTitle": "Procedure, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.67",
      "qdmCategory": "procedure",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::ProcedurePerformed",
      "description": "Procedure, Performed: Graduatedcompressionstockings(GCS)",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.256",
      "id": "609d95acb789028849ab7bd8",
      "components": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bd9",
      "requester": [],
      "qdmTitle": "Device, Order",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.15",
      "qdmCategory": "device",
      "qdmStatus": "order",
      "qdmVersion": "5.6",
      "_type": "QDM::DeviceOrder",
      "description": "Device, Order: Graduatedcompressionstockings(GCS)",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.256",
      "id": "609d95acb789028849ab7bd9"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bda",
      "performer": [],
      "qdmTitle": "Medication, Administered",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.45",
      "qdmCategory": "medication",
      "qdmStatus": "administered",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationAdministered",
      "description": "Medication, Administered: GlycoproteinIIb/IIIaInhibitors",
      "codeListId": "2.16.840.1.113762.1.4.1045.41",
      "id": "609d95acb789028849ab7bda"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bdb",
      "qdmTitle": "Patient Characteristic Ethnicity",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.56",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "ethnicity",
      "qdmVersion": "5.6",
      "_type": "QDM::PatientCharacteristicEthnicity",
      "description": "Patient Characteristic Ethnicity: Ethnicity",
      "codeListId": "2.16.840.1.114222.4.11.837",
      "id": "609d95acb789028849ab7bdb"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bdc",
      "performer": [],
      "qdmTitle": "Medication, Administered",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.45",
      "qdmCategory": "medication",
      "qdmStatus": "administered",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationAdministered",
      "description": "Medication, Administered: LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "codeListId": "2.16.840.1.113762.1.4.1045.39",
      "id": "609d95acb789028849ab7bdc"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bdd",
      "prescriber": [],
      "relatedTo": [],
      "qdmTitle": "Medication, Order",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.51",
      "qdmCategory": "medication",
      "qdmStatus": "order",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationOrder",
      "description": "Medication, Order: LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "codeListId": "2.16.840.1.113762.1.4.1045.39",
      "id": "609d95acb789028849ab7bdd"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bde",
      "performer": [],
      "qdmTitle": "Medication, Administered",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.45",
      "qdmCategory": "medication",
      "qdmStatus": "administered",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationAdministered",
      "description": "Medication, Administered: LowMolecularWeightHeparinforVTEProphylaxis",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.219",
      "id": "609d95acb789028849ab7bde"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7bdf",
      "prescriber": [],
      "relatedTo": [],
      "qdmTitle": "Medication, Order",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.51",
      "qdmCategory": "medication",
      "qdmStatus": "order",
      "qdmVersion": "5.6",
      "_type": "QDM::MedicationOrder",
      "description": "Medication, Order: LowMolecularWeightHeparinforVTEProphylaxis",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.219",
      "id": "609d95acb789028849ab7bdf"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7be0",
      "participant": [],
      "relatedTo": [],
      "qdmTitle": "Encounter, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "qdmCategory": "encounter",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::EncounterPerformed",
      "facilityLocations": [],
      "description": "Encounter, Performed: EncounterInpatient",
      "codeListId": "2.16.840.1.113883.3.666.5.307",
      "id": "609d95acb789028849ab7be0",
      "diagnoses": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7be1",
      "performer": [],
      "relatedTo": [],
      "qdmTitle": "Procedure, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.67",
      "qdmCategory": "procedure",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::ProcedurePerformed",
      "description": "Procedure, Performed: Intermittentpneumaticcompressiondevices(IPC)",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.214",
      "id": "609d95acb789028849ab7be1",
      "components": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7be2",
      "requester": [],
      "qdmTitle": "Device, Order",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.15",
      "qdmCategory": "device",
      "qdmStatus": "order",
      "qdmVersion": "5.6",
      "_type": "QDM::DeviceOrder",
      "description": "Device, Order: Intermittentpneumaticcompressiondevices(IPC)",
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.214",
      "id": "609d95acb789028849ab7be2"
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7be3",
      "relatedTo": [],
      "performer": [],
      "qdmTitle": "Assessment, Performed",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.117",
      "qdmCategory": "assessment",
      "qdmStatus": "performed",
      "qdmVersion": "5.6",
      "_type": "QDM::AssessmentPerformed",
      "description": "Assessment, Performed: Risk for venous thromboembolism",
      "codeListId": "drc-2fc35df6cfbdf2563b538ce009840d7e1e0b92bc4187ffc52fe609eec2e2d61c",
      "id": "609d95acb789028849ab7be3",
      "components": []
    },
    {
      "dataElementCodes": [],
      "_id": "609d95acb789028849ab7be4",
      "qdmTitle": "Patient Characteristic Birthdate",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.54",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "birthdate",
      "qdmVersion": "5.6",
      "_type": "QDM::PatientCharacteristicBirthdate",
      "description": "Patient Characteristic Birthdate: Birth date",
      "codeListId": "drc-c48426f721cede4d865df946157d5e2dc90bd32763ffcb982ca45b3bd97a29db",
      "id": "609d95acb789028849ab7be4"
    }
  ],
  "title": "CMS108",
  "updated_at": "2021-05-13T21:26:37.995Z",
  "value_set_ids": [
    "609d997db78902cd9466f50f",
    "609d997db78902cd9466f510",
    "609d998db78902cd9466f511",
    "609d998db78902cd9466f512",
    "609d998db78902cd9466f513",
    "609d998db78902cd9466f514",
    "609d998db78902cd9466f515",
    "609d998db78902cd9466f516",
    "609d998db78902cd9466f517",
    "609d998db78902cd9466f518",
    "609d998db78902cd9466f519",
    "609d998db78902cd9466f51a",
    "609d998db78902cd9466f51b",
    "609d998db78902cd9466f51c",
    "609d998db78902cd9466f51d",
    "609d998db78902cd9466f51e",
    "609d998db78902cd9466f51f",
    "609d998db78902cd9466f520",
    "609d998db78902cd9466f521",
    "609d998db78902cd9466f522",
    "609d998db78902cd9466f523",
    "609d998db78902cd9466f524",
    "609d998db78902cd9466f525",
    "609d998db78902cd9466f526",
    "609d998db78902cd9466f527",
    "609d998db78902cd9466f528",
    "609d998db78902cd9466f529",
    "609d998db78902cd9466f52a",
    "609d998db78902cd9466f52b",
    "609d998db78902cd9466f52c",
    "609d998db78902cd9466f52d",
    "609d998db78902cd9466f52e",
    "609d998db78902cd9466f52f",
    "609d998db78902cd9466f530",
    "609d998db78902cd9466f531",
    "609d998db78902cd9466f532"
  ]
}
