{
  "_id": {
    "$oid": "5abab066b848467bdfff9338"
  },
  "bundle_id": "5a2177d3942c6d41aa3deda6",
  "calculate_sdes": null,
  "category": "Miscellaneous",
  "cms_id": "CMS108v7",
  "complexity": {
    "variables": [
      {
        "name": "Patient",
        "complexity": 1
      },
      {
        "name": "SDE Ethnicity",
        "complexity": 1
      },
      {
        "name": "SDE Payer",
        "complexity": 1
      },
      {
        "name": "SDE Race",
        "complexity": 1
      },
      {
        "name": "SDE Sex",
        "complexity": 1
      },
      {
        "name": "Admission Without VTE or Obstetrical Conditions",
        "complexity": 1
      },
      {
        "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
        "complexity": 1
      },
      {
        "name": "Initial Population",
        "complexity": 1
      },
      {
        "name": "Denominator",
        "complexity": 1
      },
      {
        "name": "ED Visit",
        "complexity": 1
      },
      {
        "name": "No VTE Prophylaxis Device Applied or Ordered",
        "complexity": 1
      },
      {
        "name": "No VTE Prophylaxis Device Due to Medical Reason During ED Visit",
        "complexity": 3
      },
      {
        "name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission",
        "complexity": 2
      },
      {
        "name": "No VTE Prophylaxis Medication Administered or Ordered",
        "complexity": 1
      },
      {
        "name": "No VTE Prophylaxis Medication Due to Medical Reason During ED Visit",
        "complexity": 3
      },
      {
        "name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission",
        "complexity": 2
      },
      {
        "name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure",
        "complexity": 3
      },
      {
        "name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure",
        "complexity": 3
      },
      {
        "name": "Encounter Less Than 2 Days",
        "complexity": 1
      },
      {
        "name": "SCIP VTE Selected Surgery",
        "complexity": 1
      },
      {
        "name": "Intervention Comfort Measures",
        "complexity": 1
      },
      {
        "name": "Intervention Comfort Measures on Day of or Day After Start of Hospitalization",
        "complexity": 1
      },
      {
        "name": "Intervention Comfort Measures on Day of or Day After Procedure",
        "complexity": 2
      },
      {
        "name": "VTE Prophylaxis by Medication Administered or Device Applied",
        "complexity": 1
      },
      {
        "name": "VTE Prophylaxis Received on Day of or Day After Admission or Procedure",
        "complexity": 1
      },
      {
        "name": "Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure",
        "complexity": 1
      },
      {
        "name": "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE",
        "complexity": 1
      },
      {
        "name": "Encounter With ICU Location Stay 1 Day or More",
        "complexity": 1
      },
      {
        "name": "Encounter With Principal Diagnosis of Mental Disorder or Stroke",
        "complexity": 3
      },
      {
        "name": "Encounter With Principal Procedure of SCIP VTE Selected Surgery",
        "complexity": 1
      },
      {
        "name": "Denominator Exclusions",
        "complexity": 1
      },
      {
        "name": "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery",
        "complexity": 1
      },
      {
        "name": "Is In Low Risk for VTE or On Anticoagulant",
        "complexity": 1
      },
      {
        "name": "Low Risk for VTE or Anticoagulant Administered During ED Visit",
        "complexity": 2
      },
      {
        "name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Admission",
        "complexity": 1
      },
      {
        "name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure",
        "complexity": 2
      },
      {
        "name": "Low Risk for VTE or Anticoagulant Administered",
        "complexity": 1
      },
      {
        "name": "No VTE Prophylaxis Due to Medical Reason",
        "complexity": 1
      },
      {
        "name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal",
        "complexity": 1
      },
      {
        "name": "No VTE Prophylaxis Due to Patient Refusal During ED Visit",
        "complexity": 2
      },
      {
        "name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission",
        "complexity": 1
      },
      {
        "name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure",
        "complexity": 2
      },
      {
        "name": "No VTE Prophylaxis Due to Patient Refusal",
        "complexity": 1
      },
      {
        "name": "Numerator",
        "complexity": 1
      },
      {
        "name": "Patient",
        "complexity": 1
      },
      {
        "name": "Encounter",
        "complexity": 1
      },
      {
        "name": "LengthInDays",
        "complexity": 1
      },
      {
        "name": "Inpatient Encounter",
        "complexity": 2
      },
      {
        "name": "ToDate",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInDaysAt",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInDays",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInMonthsAt",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInMonths",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInYearsAt",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInYears",
        "complexity": 1
      },
      {
        "name": "Hospitalization",
        "complexity": 0
      },
      {
        "name": "Hospitalization Locations",
        "complexity": 0
      },
      {
        "name": "Hospitalization Length of Stay",
        "complexity": 1
      },
      {
        "name": "Hospital Admission Time",
        "complexity": 1
      },
      {
        "name": "Hospital Discharge Time",
        "complexity": 1
      },
      {
        "name": "Hospital Arrival Time",
        "complexity": 1
      },
      {
        "name": "Hospital Departure Time",
        "complexity": 1
      },
      {
        "name": "Emergency Department Arrival Time",
        "complexity": 1
      },
      {
        "name": "First Inpatient Intensive Care Unit",
        "complexity": 1
      },
      {
        "name": "Patient",
        "complexity": 1
      },
      {
        "name": "ToDate",
        "complexity": 1
      },
      {
        "name": "CalendarDayOfOrDayAfter",
        "complexity": 1
      },
      {
        "name": "First Intensive Care Unit",
        "complexity": 1
      },
      {
        "name": "Start of First ICU",
        "complexity": 1
      }
    ]
  },
  "continuous_variable": false,
  "cql": [
    "library VenousThromboembolismProphylaxis version '7.4.000'\r\n\r\nusing QDM version '5.3'\r\n\r\ninclude MATGlobalCommonFunctions version '2.0.000' called Global\r\ninclude VTEICU version '2.4.000' called VTEICU\r\n\r\ncodesystem \"LOINC:2.63\": 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.63'\r\n\r\nvalueset \"ONC Administrative Sex\": 'urn:oid:2.16.840.1.113762.1.4.1'\r\nvalueset \"Race\": 'urn:oid:2.16.840.1.114222.4.11.836'\r\nvalueset \"Ethnicity\": 'urn:oid:2.16.840.1.114222.4.11.837'\r\nvalueset \"Payer\": 'urn:oid:2.16.840.1.114222.4.11.3591'\r\nvalueset \"Atrial Fibrillation/Flutter\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.202'\r\nvalueset \"Comfort Measures\": 'urn:oid:1.3.6.1.4.1.33895.1.3.0.45'\r\nvalueset \"Direct Thrombin Inhibitor\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.205'\r\nvalueset \"Emergency Department Visit\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.292'\r\nvalueset \"General or Neuraxial Anesthesia\": 'urn:oid:2.16.840.1.113883.3.666.5.1743'\r\nvalueset \"General Surgery\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.255'\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 \"Gynecological Surgery\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.257'\r\nvalueset \"Hemorrhagic Stroke\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.212'\r\nvalueset \"Hip Fracture Surgery\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.258'\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 \"Intracranial Neurosurgery\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.260'\r\nvalueset \"Intravenous route\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.222'\r\nvalueset \"Ischemic Stroke\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.247'\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 \"Mental Health Diagnoses\": 'urn:oid:2.16.840.1.113883.3.464.1003.105.12.1004'\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 \"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 \"Principal\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.14'\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 \"Urological Surgery\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.272'\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\nvalueset \"Intensive Care Unit\": 'urn:oid:2.16.840.1.113762.1.4.1110.23'\r\n\r\ncode \"Risk for venous thromboembolism\": '72136-5' from \"LOINC:2.63\" display 'Risk for venous thromboembolism'\r\n\r\ncontext Patient\r\n\r\ndefine \"SDE Ethnicity\":\r\n\t[\"Patient Characteristic Ethnicity\": \"Ethnicity\"]\r\n\r\ndefine \"SDE Payer\":\r\n\t[\"Patient Characteristic Payer\": \"Payer\"]\r\n\r\ndefine \"SDE Race\":\r\n\t[\"Patient Characteristic Race\": \"Race\"]\r\n\r\ndefine \"SDE Sex\":\r\n\t[\"Patient Characteristic Sex\": \"ONC Administrative Sex\"]\r\n\r\ndefine \"Denominator\":\r\n\t\"Initial Population\"\r\n\r\ndefine \"ED Visit\":\r\n\t[\"Encounter, Performed\": \"Emergency Department Visit\"]\r\n\r\ndefine \"Initial Population\":\r\n\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\"\r\n\r\ndefine \"No VTE Prophylaxis Device Applied or Ordered\":\r\n\t[\"Device, Not Applied\": \"Intermittent pneumatic compression devices (IPC)\"]\r\n\t\tunion [\"Device, Not Applied\": \"Venous foot pumps (VFP)\"]\r\n\t\tunion [\"Device, Not Applied\": \"Graduated compression stockings (GCS)\"]\r\n\t\tunion [\"Device, Not Ordered\": \"Intermittent pneumatic compression devices (IPC)\"]\r\n\t\tunion [\"Device, Not Ordered\": \"Venous foot pumps (VFP)\"]\r\n\t\tunion [\"Device, Not Ordered\": \"Graduated compression stockings (GCS)\"]\r\n\r\ndefine \"No VTE Prophylaxis Device Due to Medical Reason During ED Visit\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\"ED Visit\" EDVisit,\r\n\t\t\"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\r\n\t\twhere EDVisit.relevantPeriod ends 1 hour or less on or before start of QualifyingEncounter.relevantPeriod\r\n\t\t\tand NoVTEDevice.negationRationale in \"Medical Reason\"\r\n\t\t\tand NoVTEDevice.authorDatetime during EDVisit.relevantPeriod\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\r\n\t\twhere NoVTEDevice.negationRationale in \"Medical Reason\"\r\n\t\t\tand NoVTEDevice.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.relevantPeriod)\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Medication Administered or Ordered\":\r\n\t[\"Medication, Not Administered\": \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"]\r\n\t\tunion [\"Medication, Not Administered\": \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\r\n\t\tunion [\"Medication, Not Administered\": \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\r\n\t\tunion [\"Medication, Not Administered\": \"Warfarin\"]\r\n\t\tunion [\"Medication, Not Ordered\": \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"]\r\n\t\tunion [\"Medication, Not Ordered\": \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\r\n\t\tunion [\"Medication, Not Ordered\": \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\r\n\t\tunion [\"Medication, Not Ordered\": \"Warfarin\"]\r\n\r\ndefine \"No VTE Prophylaxis Medication Due to Medical Reason During ED Visit\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\"ED Visit\" EDVisit,\r\n\t\t\"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\r\n\t\twhere EDVisit.relevantPeriod ends 1 hour or less on or before start of QualifyingEncounter.relevantPeriod\r\n\t\t\tand NoVTEMedication.negationRationale in \"Medical Reason\"\r\n\t\t\tand NoVTEMedication.authorDatetime during EDVisit.relevantPeriod\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\r\n\t\twhere NoVTEMedication.negationRationale in \"Medical Reason\"\r\n\t\t\tand NoVTEMedication.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.relevantPeriod)\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t[\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n\t\t\"No VTE Prophylaxis Device Applied or Ordered\" NoVTEDevice\r\n\t\twhere NoVTEDevice.negationRationale in \"Medical Reason\"\r\n\t\t\tand AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n\t\t\tand NoVTEDevice.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.relevantPeriod)\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"Admission Without VTE or Obstetrical Conditions\":\r\n\t( Global.\"Inpatient Encounter\" InpatientEncounter\r\n\t\t\twhere not ( exists ( InpatientEncounter.diagnoses EncounterDiagnoses\r\n\t\t\t\t\t\twhere ( EncounterDiagnoses in \"Obstetrics\"\r\n\t\t\t\t\t\t\t\tor EncounterDiagnoses in \"Venous Thromboembolism\"\r\n\t\t\t\t\t\t\t\tor EncounterDiagnoses in \"Obstetrics VTE\"\r\n\t\t\t\t\t\t)\r\n\t\t\t\t)\r\n\t\t\t)\r\n\t)\r\n\t\tintersect ( Global.\"Inpatient Encounter\" InpatientEncounter\r\n\t\t\t\twithout ( [\"Diagnosis\": \"Obstetrics\"]\r\n\t\t\t\t\tunion [\"Diagnosis\": \"Venous Thromboembolism\"]\r\n\t\t\t\t\tunion [\"Diagnosis\": \"Obstetrics VTE\"] ) Diagnosis\r\n\t\t\t\t\tsuch that Diagnosis.prevalencePeriod starts during Global.\"Hospitalization\"(InpatientEncounter)\r\n\t\t)\r\n\r\ndefine \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t[\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n\t\t\"No VTE Prophylaxis Medication Administered or Ordered\" NoVTEMedication\r\n\t\twhere NoVTEMedication.negationRationale in \"Medical Reason\"\r\n\t\t\tand AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n\t\t\tand NoVTEMedication.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.relevantPeriod)\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"Encounter Less Than 2 Days\":\r\n\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n\t\twhere Global.\"LengthInDays\"(QualifyingEncounter.relevantPeriod)< 2\r\n\r\ndefine \"SCIP VTE Selected Surgery\":\r\n\t[\"Procedure, Performed\": \"General Surgery\"]\r\n\t\tunion [\"Procedure, Performed\": \"Gynecological Surgery\"]\r\n\t\tunion [\"Procedure, Performed\": \"Hip Fracture Surgery\"]\r\n\t\tunion [\"Procedure, Performed\": \"Hip Replacement Surgery\"]\r\n\t\tunion [\"Procedure, Performed\": \"Intracranial Neurosurgery\"]\r\n\t\tunion [\"Procedure, Performed\": \"Knee Replacement Surgery\"]\r\n\t\tunion [\"Procedure, Performed\": \"Urological Surgery\"]\r\n\r\ndefine \"Intervention Comfort Measures\":\r\n\t[\"Intervention, Order\": \"Comfort Measures\"]\r\n\t\tunion [\"Intervention, Performed\": \"Comfort Measures\"]\r\n\r\ndefine \"Intervention Comfort Measures on Day of or Day After Start of Hospitalization\":\r\n\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n\t\twith \"Intervention Comfort Measures\" ComfortMeasures\r\n\t\t\tsuch that Coalesce(start of ComfortMeasures.relevantPeriod, ComfortMeasures.authorDatetime)1 day or less on or after day of start of Global.\"Hospitalization\"(QualifyingEncounter)\r\n\r\ndefine \"Intervention Comfort Measures on Day of or Day After Procedure\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t[\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n\t\t\"Intervention Comfort Measures\" ComfortMeasures\r\n\t\twhere AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n\t\t\tand Coalesce(start of ComfortMeasures.relevantPeriod, ComfortMeasures.authorDatetime)1 day or less on or after day of end of AnesthesiaProcedure.relevantPeriod\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"VTE Prophylaxis by Medication Administered or Device Applied\":\r\n\t( [\"Medication, Administered\": \"Low Dose Unfractionated Heparin for VTE Prophylaxis\"] VTEMedication\r\n\t\t\twhere VTEMedication.route in \"Subcutaneous route\"\r\n\t)\r\n\t\tunion [\"Medication, Administered\": \"Low Molecular Weight Heparin for VTE Prophylaxis\"]\r\n\t\tunion [\"Medication, Administered\": \"Injectable Factor Xa Inhibitor for VTE Prophylaxis\"]\r\n\t\tunion [\"Medication, Administered\": \"Warfarin\"]\r\n\t\tunion [\"Device, Applied\": \"Intermittent pneumatic compression devices (IPC)\"]\r\n\t\tunion [\"Device, Applied\": \"Venous foot pumps (VFP)\"]\r\n\t\tunion [\"Device, Applied\": \"Graduated compression stockings (GCS)\"]\r\n\r\ndefine \"VTE Prophylaxis Received on Day of or Day After Admission or Procedure\":\r\n\t( from\r\n\t\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\t\"VTE Prophylaxis by Medication Administered or Device Applied\" HasVTEProphylaxis\r\n\t\t\twhere HasVTEProphylaxis.relevantPeriod starts during VTEICU.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.relevantPeriod)\r\n\t\t\treturn QualifyingEncounter\r\n\t)\r\n\t\tunion ( from\r\n\t\t\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\t\t[\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n\t\t\t\t\"VTE Prophylaxis by Medication Administered or Device Applied\" HasVTEProphylaxis\r\n\t\t\t\twhere AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n\t\t\t\t\tand HasVTEProphylaxis.relevantPeriod starts during VTEICU.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.relevantPeriod)\r\n\t\t\t\treturn QualifyingEncounter\r\n\t\t)\r\n\r\ndefine \"Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\":\r\n\t( from\r\n\t\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\t[\"Medication, Administered\": \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"] FactorXaMedication\r\n\t\t\twhere FactorXaMedication.relevantPeriod starts during VTEICU.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.relevantPeriod)\r\n\t\t\treturn QualifyingEncounter\r\n\t)\r\n\t\tunion ( from\r\n\t\t\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\t\t[\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n\t\t\t\t[\"Medication, Administered\": \"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\"] FactorXaMedication\r\n\t\t\t\twhere AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n\t\t\t\t\tand FactorXaMedication.relevantPeriod starts during VTEICU.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.relevantPeriod)\r\n\t\t\t\treturn QualifyingEncounter\r\n\t\t)\r\n\r\ndefine \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\":\r\n\t( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n\t\t\twith [\"Diagnosis\": \"Atrial Fibrillation/Flutter\"] AtrialFibrillation\r\n\t\t\t\tsuch that AtrialFibrillation.prevalencePeriod starts on or before end of QualifyingEncounter.relevantPeriod\r\n\t)\r\n\t\tunion ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n\t\t\t\twhere exists ( QualifyingEncounter.diagnoses EncounterDiagnosis\r\n\t\t\t\t\t\twhere EncounterDiagnosis in \"Atrial Fibrillation/Flutter\"\r\n\t\t\t\t)\r\n\t\t)\r\n\t\tunion ( \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n\t\t\t\twith [\"Diagnosis\": \"Venous Thromboembolism\"] VTEDiagnosis\r\n\t\t\t\t\tsuch that VTEDiagnosis.prevalencePeriod starts before start of QualifyingEncounter.relevantPeriod\r\n\t\t)\r\n\r\ndefine \"Encounter With ICU Location Stay 1 Day or More\":\r\n\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n\t\twhere exists ( QualifyingEncounter.facilityLocations Location\r\n\t\t\t\twhere Location.code in \"Intensive Care Unit\"\r\n\t\t\t\t\tand Global.\"LengthInDays\"(Location.locationPeriod)>= 1\r\n\t\t\t\t\tand Location.locationPeriod starts during VTEICU.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.relevantPeriod)\r\n\t\t)\r\n\r\ndefine \"Encounter With Principal Diagnosis of Mental Disorder or Stroke\":\r\n\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n\t\twhere QualifyingEncounter.principalDiagnosis in \"Mental Health Diagnoses\"\r\n\t\t\tor QualifyingEncounter.principalDiagnosis in \"Hemorrhagic Stroke\"\r\n\t\t\tor QualifyingEncounter.principalDiagnosis in \"Ischemic Stroke\"\r\n\r\ndefine \"Encounter With Principal Procedure of SCIP VTE Selected Surgery\":\r\n\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n\t\twith ( \"SCIP VTE Selected Surgery\" Procedure\r\n\t\t\twhere Procedure.ordinality in \"Principal\" ) SelectedProcedure\r\n\t\t\tsuch that SelectedProcedure.relevantPeriod during QualifyingEncounter.relevantPeriod\r\n\r\ndefine \"Denominator Exclusions\":\r\n\t\"Encounter Less Than 2 Days\"\r\n\t\tunion \"Encounter With ICU Location Stay 1 Day or More\"\r\n\t\tunion \"Encounter With Principal Diagnosis of Mental Disorder or Stroke\"\r\n\t\tunion \"Encounter With Principal Procedure of SCIP VTE Selected Surgery\"\r\n\t\tunion \"Intervention Comfort Measures on Day of or Day After Start of Hospitalization\"\r\n\t\tunion \"Intervention Comfort Measures on Day of or Day After Procedure\"\r\n\r\ndefine \"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\":\r\n\t( Global.\"Inpatient Encounter\" InpatientEncounter\r\n\t\t\twith [\"Patient Characteristic Birthdate\"] BirthDate\r\n\t\t\t\tsuch that Global.\"CalendarAgeInYearsAt\"(BirthDate.birthDatetime, start of InpatientEncounter.relevantPeriod)>= 18\r\n\t)\r\n\t\tintersect \"Admission Without VTE or Obstetrical Conditions\"\r\n\r\ndefine \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\":\r\n\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n\t\twith ( [\"Procedure, Performed\": \"Hip Replacement Surgery\"]\r\n\t\t\tunion [\"Procedure, Performed\": \"Knee Replacement Surgery\"] ) HipKneeProcedure\r\n\t\t\tsuch that HipKneeProcedure.relevantPeriod starts on or before end of QualifyingEncounter.relevantPeriod\r\n\r\ndefine \"Low Risk for VTE or Anticoagulant Administered\":\r\n\t\"Low Risk for VTE or Anticoagulant Administered During ED Visit\"\r\n\t\tunion \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Admission\"\r\n\t\tunion \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\"\r\n\r\ndefine \"No VTE Prophylaxis Due to Medical Reason\":\r\n\t( \"No VTE Prophylaxis Medication Due to Medical Reason During ED Visit\"\r\n\t\t\tintersect \"No VTE Prophylaxis Device Due to Medical Reason During ED Visit\"\r\n\t)\r\n\t\tunion ( \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission\"\r\n\t\t\t\tintersect \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission\"\r\n\t\t)\r\n\t\tunion ( \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\"\r\n\t\t\t\tintersect \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\"\r\n\t\t)\r\n\r\ndefine \"No VTE Prophylaxis Due to Patient Refusal During ED Visit\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\"ED Visit\" EDVisit,\r\n\t\t\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\" PatientRefusal\r\n\t\twhere EDVisit.relevantPeriod ends 1 hour or less on or before start of QualifyingEncounter.relevantPeriod\r\n\t\t\tand PatientRefusal.authorDatetime during EDVisit.relevantPeriod\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\" PatientRefusal\r\n\t\twhere PatientRefusal.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.relevantPeriod)\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t[\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n\t\t\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\" PatientRefusal\r\n\t\twhere AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n\t\t\tand PatientRefusal.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.relevantPeriod)\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"No VTE Prophylaxis Medication or Device Due to Patient Refusal\":\r\n\t( \"No VTE Prophylaxis Medication Administered or Ordered\"\r\n\t\tunion \"No VTE Prophylaxis Device Applied or Ordered\" ) NoVTEProphylaxis\r\n\t\twhere NoVTEProphylaxis.negationRationale in \"Patient Refusal\"\r\n\r\ndefine \"No VTE Prophylaxis Due to Patient Refusal\":\r\n\t\"No VTE Prophylaxis Due to Patient Refusal During ED Visit\"\r\n\t\tunion \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission\"\r\n\t\tunion \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\"\r\n\r\ndefine \"Numerator\":\r\n\t\"VTE Prophylaxis Received on Day of or Day After Admission or Procedure\"\r\n\t\tunion ( \"Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\"\r\n\t\t\t\tintersect ( \"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\"\r\n\t\t\t\t\t\tunion \"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\"\r\n\t\t\t\t)\r\n\t\t)\r\n\t\tunion \"Low Risk for VTE or Anticoagulant Administered\"\r\n\t\tunion \"No VTE Prophylaxis Due to Medical Reason\"\r\n\t\tunion \"No VTE Prophylaxis Due to Patient Refusal\"\r\n\r\ndefine \"Is In Low Risk for VTE or On Anticoagulant\":\r\n\t( [\"Assessment, Performed\": \"Risk for venous thromboembolism\"] VTERiskAssessment\r\n\t\t\twhere VTERiskAssessment.result in \"Low Risk\"\r\n\t)\r\n\t\tunion ( [\"Laboratory Test, Performed\": \"INR\"] INRLabTest\r\n\t\t\t\twhere INRLabTest.result > 3.0\r\n\t\t\t\treturn \"Assessment, Performed\" { id: INRLabTest.id, authorDatetime: INRLabTest.resultDatetime }\r\n\t\t)\r\n\t\tunion ( ( [\"Medication, Administered\": \"Unfractionated Heparin\"] UnfractionatedHeparin\r\n\t\t\t\t\twhere UnfractionatedHeparin.route in \"Intravenous route\"\r\n\t\t\t)\r\n\t\t\t\tunion [\"Medication, Administered\": \"Direct Thrombin Inhibitor\"]\r\n\t\t\t\tunion [\"Medication, Administered\": \"Glycoprotein IIb/IIIa Inhibitors\"] AnticoagulantMedication\r\n\t\t\t\t\treturn \"Assessment, Performed\" { id: AnticoagulantMedication.id, authorDatetime: start of AnticoagulantMedication.relevantPeriod }\r\n\t\t)\r\n\r\ndefine \"Low Risk for VTE or Anticoagulant Administered During ED Visit\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t\"ED Visit\" EDVisit,\r\n\t\t\"Is In Low Risk for VTE or On Anticoagulant\" VTERiskAssessment\r\n\t\twhere EDVisit.relevantPeriod ends 1 hour or less on or before start of QualifyingEncounter.relevantPeriod\r\n\t\t\tand VTERiskAssessment.authorDatetime during EDVisit.relevantPeriod\r\n\t\treturn QualifyingEncounter\r\n\r\ndefine \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Admission\":\r\n\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter\r\n\t\twith \"Is In Low Risk for VTE or On Anticoagulant\" VTERiskAssessment\r\n\t\t\tsuch that VTERiskAssessment.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\"(start of QualifyingEncounter.relevantPeriod)\r\n\r\ndefine \"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\":\r\n\tfrom\r\n\t\t\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\" QualifyingEncounter,\r\n\t\t[\"Procedure, Performed\": \"General or Neuraxial Anesthesia\"] AnesthesiaProcedure,\r\n\t\t\"Is In Low Risk for VTE or On Anticoagulant\" VTERiskAssessment\r\n\t\twhere AnesthesiaProcedure.relevantPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod\r\n\t\t\tand VTERiskAssessment.authorDatetime during VTEICU.\"CalendarDayOfOrDayAfter\"(end of AnesthesiaProcedure.relevantPeriod)\r\n\t\treturn QualifyingEncounter\r\n",
    "library MATGlobalCommonFunctions version '2.0.000'\r\n\r\nusing QDM version '5.3'\r\n\r\ncodesystem \"LOINC:2.46\": 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.46'\r\ncodesystem \"SNOMEDCT:2016-03\": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2016-03'\r\n\r\nvalueset \"Emergency Department Visit\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.292'\r\nvalueset \"Encounter Inpatient\": 'urn:oid:2.16.840.1.113883.3.666.5.307'\r\nvalueset \"Intensive Care Unit\": 'urn:oid:2.16.840.1.113762.1.4.1110.23'\r\n\r\ncode \"Birthdate\": '21112-8' from \"LOINC:2.46\" display 'Birth date'\r\ncode \"Dead\": '419099009' from \"SNOMEDCT:2016-03\" display 'Dead'\r\n\r\nparameter \"Measurement Period\" Interval<DateTime>\r\n\r\ncontext Patient\r\n\r\ndefine \"Encounter\":\r\n\t[\"Encounter, Performed\": \"Emergency Department Visit\"]\r\n\r\ndefine \"Inpatient Encounter\":\r\n\t[\"Encounter, Performed\": \"Encounter Inpatient\"] EncounterInpatient\r\n\t\twhere \"LengthInDays\"(EncounterInpatient.relevantPeriod)<= 120\r\n\t\t\tand EncounterInpatient.relevantPeriod ends during \"Measurement Period\"\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.*/\r\n\r\ndefine function \"ToDate\"(Value DateTime):\r\n\tDateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezone from Value)\n\n/*CalendarAgeInDaysAt calculates the calendar age (meaning the age without considering time components) in days.*/\r\n\r\ndefine function \"CalendarAgeInDaysAt\"(BirthDateTime DateTime, AsOf DateTime):\r\n\tdays 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*/\r\n\r\ndefine function \"CalendarAgeInDays\"(BirthDateTime DateTime):\r\n\tCalendarAgeInDaysAt(BirthDateTime, Today())\n\n/*CalendarAgeInMonthsAt calculates the calendar age (meaning the age without considering time components) in months.*/\r\n\r\ndefine function \"CalendarAgeInMonthsAt\"(BirthDateTime DateTime, AsOf DateTime):\r\n\tmonths 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.*/\r\n\r\ndefine function \"CalendarAgeInMonths\"(BirthDateTime DateTime):\r\n\tCalendarAgeInMonthsAt(BirthDateTime, Today())\n\n/*CalendarAgeInYearsAt calculates the calendar age (meaning the age without considering time components) in years.*/\r\n\r\ndefine function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime):\r\n\tyears 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.*/\r\n\r\ndefine function \"CalendarAgeInYears\"(BirthDateTime DateTime):\r\n\tCalendarAgeInYearsAt(BirthDateTime, Today())\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.*/\r\n\r\ndefine function \"Hospitalization\"(Encounter \"Encounter, Performed\"):\r\n\t( singleton from ( [\"Encounter, Performed\": \"Emergency Department Visit\"] EDVisit\r\n\t\t\twhere EDVisit.relevantPeriod ends 1 hour or less on or before start of Encounter.relevantPeriod\r\n\t) ) X\r\n\t\treturn if X is null then Encounter.relevantPeriod else Interval[start of X.relevantPeriod, end of Encounter.relevantPeriod]\n\n/*calculates the difference in calendar days between the start and end of the given interval.*/\r\n\r\ndefine function \"LengthInDays\"(Value Interval<DateTime>):\r\n\tdifference 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.  If data contains many encounters within 1 hour before the start of encounter error will occur indicating the hospitalization cannot be determined*/\r\n\r\ndefine function \"Hospitalization Locations\"(Encounter \"Encounter, Performed\"):\r\n\t( singleton from ( [\"Encounter, Performed\": \"Emergency Department Visit\"] EDVisit\r\n\t\t\twhere EDVisit.relevantPeriod ends 1 hour or less on or before start of Encounter.relevantPeriod\r\n\t) ) EDEncounter\r\n\t\treturn if EDEncounter is null then Encounter.facilityLocations else flatten { EDEncounter.facilityLocations, Encounter.facilityLocations }\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*/\r\n\r\ndefine function \"Hospitalization Length of Stay\"(Encounter \"Encounter, Performed\"):\r\n\tLengthInDays(\"Hospitalization\"(Encounter))\n\n/*Returns admission time for an encounter or for immediately prior emergency department visit.  If the data contain many encounters within 1 hour before the start of the encounter an error indicating hospitalization cannot be determined\n*/\r\n\r\ndefine function \"Hospital Admission Time\"(Encounter \"Encounter, Performed\"):\r\n\tstart of \"Hospitalization\"(Encounter)\n\n/*Hospital Discharge Time returns the discharge time for an encounter*/\r\n\r\ndefine function \"Hospital Discharge Time\"(Encounter \"Encounter, Performed\"):\r\n\tend of Encounter.relevantPeriod\n\n/*Returns earliest arrival time for an encounter including any prior ED visit. If the data contain multiple encounters within 1 hour before the start of the encounter, an error will occur indicating it cannot be unambiguously determined\n*/\r\n\r\ndefine function \"Hospital Arrival Time\"(Encounter \"Encounter, Performed\"):\r\n\tstart of First((\"Hospitalization Locations\"(Encounter))HospitalLocation\r\n\t\t\tsort by start of locationPeriod\r\n\t).locationPeriod\n\n/*Returns the latest departure time for encounter including any prior ED visit. If the data contain multiple encounters within 1 hour before the start of the encounter, an error will occur indicating it cannot be unambiguously determined*/\r\n\r\ndefine function \"Hospital Departure Time\"(Encounter \"Encounter, Performed\"):\r\n\tend of Last((\"Hospitalization Locations\"(Encounter))HospitalLocation\r\n\t\t\tsort by start of locationPeriod\r\n\t).locationPeriod\n\n/*Returns the arrival time in the ED for the encounter.  If the data contain multiple encounters within 1 hour before the start of the encounter or multiple ED locations an error will occur indicating it cannot be determined\n*/\r\n\r\ndefine function \"Emergency Department Arrival Time\"(Encounter \"Encounter, Performed\"):\r\n\tstart of ( singleton from ( ( \"Hospitalization Locations\"(Encounter)) HospitalLocation\r\n\t\t\t\twhere HospitalLocation.code in \"Emergency Department Visit\"\r\n\t\t)\r\n\t).locationPeriod\n\n/*First Inpatient Intensive Care Unit returns the first intensive care unit for\nthe given encounter, without considering any immediately prior emergency\ndepartment visit.*/\r\n\r\ndefine function \"First Inpatient Intensive Care Unit\"(Encounter \"Encounter, Performed\"):\r\n\tFirst((Encounter.facilityLocations)HospitalLocation\r\n\t\t\twhere HospitalLocation.code in \"Intensive Care Unit\"\r\n\t\t\t\tand HospitalLocation.locationPeriod during Encounter.relevantPeriod\r\n\t\t\tsort by start of locationPeriod\r\n\t)\r\n",
    "library VTEICU version '2.4.000'\r\n\r\nusing QDM version '5.3'\r\n\r\ncodesystem \"LOINC:2.46\": 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.46'\r\ncodesystem \"SNOMEDCT:2016-03\": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2016-03'\r\n\r\nvalueset \"Intensive Care Unit\": 'urn:oid:2.16.840.1.113762.1.4.1110.23'\r\n\r\ncode \"Birthdate\": '21112-8' from \"LOINC:2.46\" display 'Birth date'\r\ncode \"Dead\": '419099009' from \"SNOMEDCT:2016-03\" display 'Dead'\r\n\r\nparameter \"Measurement Period\" Interval<DateTime>\r\n\r\ncontext Patient\r\n\r\ndefine function \"ToDate\"(Value DateTime):\r\n\tDateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezone from Value)\r\n\r\ndefine function \"CalendarDayOfOrDayAfter\"(StartValue DateTime):\r\n\tInterval[StartValue, ToDate(StartValue + 2 days))\r\n\r\ndefine function \"Start of First ICU\"(Encounter \"Encounter, Performed\"):\r\n\tstart of \"First Intensive Care Unit\"(Encounter).locationPeriod\r\n\r\ndefine function \"First Intensive Care Unit\"(Encounter \"Encounter, Performed\"):\r\n\tFirst(Encounter.facilityLocations L\r\n\t\t\twhere L.code in \"Intensive Care Unit\"\r\n\t\t\t\tand L.locationPeriod during Encounter.relevantPeriod\r\n\t\t\tsort by start of locationPeriod\r\n\t)\r\n"
  ],
  "cql_statement_dependencies": {
    "VenousThromboembolismProphylaxis": {
      "Patient": [

      ],
      "SDE Ethnicity": [

      ],
      "SDE Payer": [

      ],
      "SDE Race": [

      ],
      "SDE Sex": [

      ],
      "Admission Without VTE or Obstetrical Conditions": [
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "Inpatient Encounter"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "Inpatient Encounter"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "Hospitalization"
        }
      ],
      "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions": [
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "Inpatient Encounter"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Admission Without VTE or Obstetrical Conditions"
        }
      ],
      "Initial Population": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        }
      ],
      "Denominator": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Initial Population"
        }
      ],
      "ED Visit": [

      ],
      "No VTE Prophylaxis Device Applied or Ordered": [

      ],
      "No VTE Prophylaxis Device Due to Medical Reason During ED Visit": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "ED Visit"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Device Applied or Ordered"
        }
      ],
      "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Device Applied or Ordered"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "No VTE Prophylaxis Medication Administered or Ordered": [

      ],
      "No VTE Prophylaxis Medication Due to Medical Reason During ED Visit": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "ED Visit"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Medication Administered or Ordered"
        }
      ],
      "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Medication Administered or Ordered"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Device Applied or Ordered"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Medication Administered or Ordered"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "Encounter Less Than 2 Days": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "LengthInDays"
        }
      ],
      "SCIP VTE Selected Surgery": [

      ],
      "Intervention Comfort Measures": [

      ],
      "Intervention Comfort Measures on Day of or Day After Start of Hospitalization": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Intervention Comfort Measures"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "Hospitalization"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "Hospitalization"
        }
      ],
      "Intervention Comfort Measures on Day of or Day After Procedure": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Intervention Comfort Measures"
        }
      ],
      "VTE Prophylaxis by Medication Administered or Device Applied": [

      ],
      "VTE Prophylaxis Received on Day of or Day After Admission or Procedure": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "VTE Prophylaxis by Medication Administered or Device Applied"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "VTE Prophylaxis by Medication Administered or Device Applied"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        }
      ],
      "Encounter With ICU Location Stay 1 Day or More": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "LengthInDays"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "Encounter With Principal Diagnosis of Mental Disorder or Stroke": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        }
      ],
      "Encounter With Principal Procedure of SCIP VTE Selected Surgery": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "SCIP VTE Selected Surgery"
        }
      ],
      "Denominator Exclusions": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter Less Than 2 Days"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With ICU Location Stay 1 Day or More"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Principal Diagnosis of Mental Disorder or Stroke"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Principal Procedure of SCIP VTE Selected Surgery"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Intervention Comfort Measures on Day of or Day After Start of Hospitalization"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Intervention Comfort Measures on Day of or Day After Procedure"
        }
      ],
      "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        }
      ],
      "Is In Low Risk for VTE or On Anticoagulant": [

      ],
      "Low Risk for VTE or Anticoagulant Administered During ED Visit": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "ED Visit"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Is In Low Risk for VTE or On Anticoagulant"
        }
      ],
      "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Admission": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Is In Low Risk for VTE or On Anticoagulant"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Is In Low Risk for VTE or On Anticoagulant"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "Low Risk for VTE or Anticoagulant Administered": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Low Risk for VTE or Anticoagulant Administered During ED Visit"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Admission"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure"
        }
      ],
      "No VTE Prophylaxis Due to Medical Reason": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Medication Due to Medical Reason During ED Visit"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Device Due to Medical Reason During ED Visit"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure"
        }
      ],
      "No VTE Prophylaxis Medication or Device Due to Patient Refusal": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Medication Administered or Ordered"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Device Applied or Ordered"
        }
      ],
      "No VTE Prophylaxis Due to Patient Refusal During ED Visit": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "ED Visit"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal"
        }
      ],
      "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal"
        },
        {
          "library_name": "VTEICU",
          "statement_name": "CalendarDayOfOrDayAfter"
        }
      ],
      "No VTE Prophylaxis Due to Patient Refusal": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Due to Patient Refusal During ED Visit"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure"
        }
      ],
      "Numerator": [
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "VTE Prophylaxis Received on Day of or Day After Admission or Procedure"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "Low Risk for VTE or Anticoagulant Administered"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Due to Medical Reason"
        },
        {
          "library_name": "VenousThromboembolismProphylaxis",
          "statement_name": "No VTE Prophylaxis Due to Patient Refusal"
        }
      ]
    },
    "MATGlobalCommonFunctions": {
      "Inpatient Encounter": [
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "LengthInDays"
        }
      ],
      "LengthInDays": [

      ],
      "Hospitalization": [

      ],
      "CalendarAgeInYearsAt": [
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "ToDate"
        }
      ],
      "ToDate": [

      ]
    },
    "VTEICU": {
      "CalendarDayOfOrDayAfter": [
        {
          "library_name": "VTEICU",
          "statement_name": "ToDate"
        }
      ],
      "ToDate": [

      ]
    }
  },
  "created_at": "2018-03-27T20:58:14.701Z",
  "data_criteria": {
    "Venousfootpumps_VFP__DeviceApplied_40280381_3d27_5493_013d_4be146945c82": {
      "title": "Venousfootpumps(VFP)",
      "description": "Device, Applied: Venousfootpumps(VFP)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.230",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Venousfootpumps_VFP__DeviceApplied_40280381_3d27_5493_013d_4be146945c82_source",
      "variable": false
    },
    "Venousfootpumps_VFP__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c82": {
      "title": "Venousfootpumps(VFP)",
      "description": "Device, Not Applied: Venousfootpumps(VFP)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.230",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Venousfootpumps_VFP__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c82_source",
      "variable": false
    },
    "Venousfootpumps_VFP__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c82": {
      "title": "Venousfootpumps(VFP)",
      "description": "Device, Ordered: Venousfootpumps(VFP)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.230",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Venousfootpumps_VFP__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c82_source",
      "variable": false
    },
    "ONCAdministrativeSex_PatientCharacteristicSex_6cd8f7f9_febb_412e_abe1_97f203452898": {
      "title": "ONCAdministrativeSex",
      "description": "Patient Characteristic Sex: ONCAdministrativeSex",
      "code_list_id": "2.16.840.1.113762.1.4.1",
      "property": "gender",
      "type": "characteristic",
      "definition": "patient_characteristic_gender",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "ONCAdministrativeSex_PatientCharacteristicSex_6cd8f7f9_febb_412e_abe1_97f203452898_source",
      "variable": false,
      "value": {
        "type": "CD",
        "system": "Administrative Sex",
        "code": "F"
      }
    },
    "DirectThrombinInhibitor_MedicationAdministered_40280381_3d27_5493_013d_4be146955c93": {
      "title": "DirectThrombinInhibitor",
      "description": "Medication, Administered: DirectThrombinInhibitor",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.205",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "DirectThrombinInhibitor_MedicationAdministered_40280381_3d27_5493_013d_4be146955c93_source",
      "variable": false
    },
    "GeneralorNeuraxialAnesthesia_ProcedurePerformed_6640ed6e_22d6_4c14_bbd2_19b08d67ca81": {
      "title": "GeneralorNeuraxialAnesthesia",
      "description": "Procedure, Performed: GeneralorNeuraxialAnesthesia",
      "code_list_id": "2.16.840.1.113883.3.666.5.1743",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "GeneralorNeuraxialAnesthesia_ProcedurePerformed_6640ed6e_22d6_4c14_bbd2_19b08d67ca81_source",
      "variable": false
    },
    "UnfractionatedHeparin_MedicationAdministered_40280381_3d27_5493_013d_4be146955c91": {
      "title": "UnfractionatedHeparin",
      "description": "Medication, Administered: UnfractionatedHeparin",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.218",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "UnfractionatedHeparin_MedicationAdministered_40280381_3d27_5493_013d_4be146955c91_source",
      "variable": false
    },
    "INR_LaboratoryTestPerformed_40280381_3d27_5493_013d_4be146945c86": {
      "title": "INR",
      "description": "Laboratory Test, Performed: INR",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.213",
      "type": "laboratory_tests",
      "definition": "laboratory_test",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "INR_LaboratoryTestPerformed_40280381_3d27_5493_013d_4be146945c86_source",
      "variable": false
    },
    "GeneralSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c72": {
      "title": "GeneralSurgery",
      "description": "Procedure, Performed: GeneralSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.255",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "GeneralSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c72_source",
      "variable": false
    },
    "OralFactorXaInhibitorforVTEProphylaxisorVTETreatment_MedicationAdministered_40280381_3d27_5493_013d_4be146935c5b": {
      "title": "OralFactorXaInhibitorforVTEProphylaxisorVTETreatment",
      "description": "Medication, Administered: OralFactorXaInhibitorforVTEProphylaxisorVTETreatment",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.134",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "OralFactorXaInhibitorforVTEProphylaxisorVTETreatment_MedicationAdministered_40280381_3d27_5493_013d_4be146935c5b_source",
      "variable": false
    },
    "VenousThromboembolism_Diagnosis_aa5f0e2a_d86e_4e34_9593_669a00f22e1b": {
      "title": "VenousThromboembolism",
      "description": "Diagnosis: VenousThromboembolism",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.279",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "VenousThromboembolism_Diagnosis_aa5f0e2a_d86e_4e34_9593_669a00f22e1b_source",
      "variable": false
    },
    "GynecologicalSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c74": {
      "title": "GynecologicalSurgery",
      "description": "Procedure, Performed: GynecologicalSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.257",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "GynecologicalSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c74_source",
      "variable": false
    },
    "HipReplacementSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c75": {
      "title": "HipReplacementSurgery",
      "description": "Procedure, Performed: HipReplacementSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.259",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "HipReplacementSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c75_source",
      "variable": false
    },
    "Race_PatientCharacteristicRace_e25cce2f_e723_4235_9cbd_04651ed33bff": {
      "title": "Race",
      "description": "Patient Characteristic Race: Race",
      "code_list_id": "2.16.840.1.114222.4.11.836",
      "property": "race",
      "type": "characteristic",
      "definition": "patient_characteristic_race",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Race_PatientCharacteristicRace_e25cce2f_e723_4235_9cbd_04651ed33bff_source",
      "variable": false,
      "inline_code_list": {
        "CDC Race": [
          "1002-5",
          "2028-9",
          "2054-5",
          "2076-8",
          "2106-3",
          "2131-1"
        ]
      }
    },
    "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationAdministered_40280381_3d27_5493_013d_4be146955c94": {
      "title": "InjectableFactorXaInhibitorforVTEProphylaxis",
      "description": "Medication, Administered: InjectableFactorXaInhibitorforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.211",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationAdministered_40280381_3d27_5493_013d_4be146955c94_source",
      "variable": false
    },
    "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c94": {
      "title": "InjectableFactorXaInhibitorforVTEProphylaxis",
      "description": "Medication, Not Administered: InjectableFactorXaInhibitorforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.211",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c94_source",
      "variable": false
    },
    "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c94": {
      "title": "InjectableFactorXaInhibitorforVTEProphylaxis",
      "description": "Medication, Ordered: InjectableFactorXaInhibitorforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.211",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c94_source",
      "variable": false
    },
    "AtrialFibrillation_Flutter_Diagnosis_76a1686e_adb3_4769_8eff_79d0a68bfbfc": {
      "title": "AtrialFibrillation/Flutter",
      "description": "Diagnosis: AtrialFibrillation/Flutter",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.202",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "AtrialFibrillation_Flutter_Diagnosis_76a1686e_adb3_4769_8eff_79d0a68bfbfc_source",
      "variable": false
    },
    "UrologicalSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c73": {
      "title": "UrologicalSurgery",
      "description": "Procedure, Performed: UrologicalSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.272",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "UrologicalSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c73_source",
      "variable": false
    },
    "ObstetricsVTE_Diagnosis_98661cc3_b760_46e8_89d5_4b145d344a9a": {
      "title": "ObstetricsVTE",
      "description": "Diagnosis: ObstetricsVTE",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.264",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "ObstetricsVTE_Diagnosis_98661cc3_b760_46e8_89d5_4b145d344a9a_source",
      "variable": false
    },
    "Payer_PatientCharacteristicPayer_8ff8d284_dff3_4a8e_95c5_d6131dd1aec6": {
      "title": "Payer",
      "description": "Patient Characteristic Payer: Payer",
      "code_list_id": "2.16.840.1.114222.4.11.3591",
      "property": "payer",
      "type": "characteristic",
      "definition": "patient_characteristic_payer",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Payer_PatientCharacteristicPayer_8ff8d284_dff3_4a8e_95c5_d6131dd1aec6_source",
      "variable": false,
      "inline_code_list": {
        "Source of Payment Typology": [
          "1",
          "11",
          "111",
          "112",
          "113",
          "119",
          "12",
          "121",
          "122",
          "123",
          "129",
          "13",
          "14",
          "19",
          "191",
          "2",
          "21",
          "211",
          "212",
          "213",
          "219",
          "22",
          "23",
          "24",
          "25",
          "26",
          "29",
          "291",
          "299",
          "3",
          "31",
          "311",
          "3111",
          "3112",
          "3113",
          "3114",
          "3115",
          "3116",
          "3119",
          "312",
          "3121",
          "3122",
          "3123",
          "313",
          "32",
          "321",
          "3211",
          "3212",
          "32121",
          "32122",
          "32123",
          "32124",
          "32125",
          "32126",
          "32127",
          "32128",
          "322",
          "3221",
          "3222",
          "3223",
          "3229",
          "33",
          "331",
          "332",
          "333",
          "334",
          "34",
          "341",
          "342",
          "343",
          "349",
          "35",
          "36",
          "361",
          "362",
          "369",
          "37",
          "371",
          "3711",
          "3712",
          "3713",
          "372",
          "379",
          "38",
          "381",
          "3811",
          "3812",
          "3813",
          "3819",
          "382",
          "389",
          "39",
          "391",
          "4",
          "41",
          "42",
          "43",
          "44",
          "5",
          "51",
          "511",
          "512",
          "513",
          "514",
          "515",
          "516",
          "517",
          "519",
          "52",
          "521",
          "522",
          "523",
          "524",
          "529",
          "53",
          "54",
          "55",
          "56",
          "561",
          "562",
          "59",
          "6",
          "61",
          "611",
          "612",
          "613",
          "614",
          "619",
          "62",
          "621",
          "622",
          "623",
          "629",
          "7",
          "71",
          "72",
          "73",
          "79",
          "8",
          "81",
          "82",
          "821",
          "822",
          "823",
          "83",
          "84",
          "85",
          "89",
          "9",
          "91",
          "92",
          "93",
          "94",
          "95",
          "951",
          "953",
          "954",
          "959",
          "96",
          "97",
          "98",
          "99",
          "9999"
        ]
      }
    },
    "IntracranialNeurosurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c71": {
      "title": "IntracranialNeurosurgery",
      "description": "Procedure, Performed: IntracranialNeurosurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.260",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "IntracranialNeurosurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c71_source",
      "variable": false
    },
    "ComfortMeasures_InterventionOrder_700ac933_507e_4e59_bec8_e2877c2a07da": {
      "title": "ComfortMeasures",
      "description": "Intervention, Order: ComfortMeasures",
      "code_list_id": "1.3.6.1.4.1.33895.1.3.0.45",
      "type": "interventions",
      "definition": "intervention",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "ComfortMeasures_InterventionOrder_700ac933_507e_4e59_bec8_e2877c2a07da_source",
      "variable": false
    },
    "ComfortMeasures_InterventionPerformed_700ac933_507e_4e59_bec8_e2877c2a07da": {
      "title": "ComfortMeasures",
      "description": "Intervention, Performed: ComfortMeasures",
      "code_list_id": "1.3.6.1.4.1.33895.1.3.0.45",
      "type": "interventions",
      "definition": "intervention",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "ComfortMeasures_InterventionPerformed_700ac933_507e_4e59_bec8_e2877c2a07da_source",
      "variable": false
    },
    "KneeReplacementSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c76": {
      "title": "KneeReplacementSurgery",
      "description": "Procedure, Performed: KneeReplacementSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.261",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "KneeReplacementSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c76_source",
      "variable": false
    },
    "Warfarin_MedicationAdministered_40280381_3d27_5493_013d_4be146955c95": {
      "title": "Warfarin",
      "description": "Medication, Administered: Warfarin",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.232",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Warfarin_MedicationAdministered_40280381_3d27_5493_013d_4be146955c95_source",
      "variable": false
    },
    "Warfarin_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c95": {
      "title": "Warfarin",
      "description": "Medication, Not Administered: Warfarin",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.232",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Warfarin_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c95_source",
      "variable": false
    },
    "Warfarin_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c95": {
      "title": "Warfarin",
      "description": "Medication, Ordered: Warfarin",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.232",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Warfarin_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c95_source",
      "variable": false
    },
    "EncounterInpatient_EncounterPerformed_c8060e96_dc7d_4780_a5cd_0aff93854cf3": {
      "title": "EncounterInpatient",
      "description": "Encounter, Performed: EncounterInpatient",
      "code_list_id": "2.16.840.1.113883.3.666.5.307",
      "type": "encounters",
      "definition": "encounter",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "EncounterInpatient_EncounterPerformed_c8060e96_dc7d_4780_a5cd_0aff93854cf3_source",
      "variable": false
    },
    "Graduatedcompressionstockings_GCS__DeviceApplied_40280381_3d27_5493_013d_4be146945c81": {
      "title": "Graduatedcompressionstockings(GCS)",
      "description": "Device, Applied: Graduatedcompressionstockings(GCS)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.256",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Graduatedcompressionstockings_GCS__DeviceApplied_40280381_3d27_5493_013d_4be146945c81_source",
      "variable": false
    },
    "Graduatedcompressionstockings_GCS__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c81": {
      "title": "Graduatedcompressionstockings(GCS)",
      "description": "Device, Not Applied: Graduatedcompressionstockings(GCS)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.256",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Graduatedcompressionstockings_GCS__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c81_source",
      "variable": false
    },
    "Graduatedcompressionstockings_GCS__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c81": {
      "title": "Graduatedcompressionstockings(GCS)",
      "description": "Device, Ordered: Graduatedcompressionstockings(GCS)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.256",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Graduatedcompressionstockings_GCS__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c81_source",
      "variable": false
    },
    "HipFractureSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c77": {
      "title": "HipFractureSurgery",
      "description": "Procedure, Performed: HipFractureSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.258",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "HipFractureSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c77_source",
      "variable": false
    },
    "Obstetrics_Diagnosis_3b12918d_be6b_4c11_be50_d64716776b76": {
      "title": "Obstetrics",
      "description": "Diagnosis: Obstetrics",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.263",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Obstetrics_Diagnosis_3b12918d_be6b_4c11_be50_d64716776b76_source",
      "variable": false
    },
    "GlycoproteinIIb_IIIaInhibitors_MedicationAdministered_255893d5_bf16_4b8f_93c2_7f5b708aa666": {
      "title": "GlycoproteinIIb/IIIaInhibitors",
      "description": "Medication, Administered: GlycoproteinIIb/IIIaInhibitors",
      "code_list_id": "2.16.840.1.113762.1.4.1045.41",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "GlycoproteinIIb_IIIaInhibitors_MedicationAdministered_255893d5_bf16_4b8f_93c2_7f5b708aa666_source",
      "variable": false
    },
    "Ethnicity_PatientCharacteristicEthnicity_10a958d1_c340_4d33_bbea_22a96ed10dcd": {
      "title": "Ethnicity",
      "description": "Patient Characteristic Ethnicity: Ethnicity",
      "code_list_id": "2.16.840.1.114222.4.11.837",
      "property": "ethnicity",
      "type": "characteristic",
      "definition": "patient_characteristic_ethnicity",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Ethnicity_PatientCharacteristicEthnicity_10a958d1_c340_4d33_bbea_22a96ed10dcd_source",
      "variable": false,
      "inline_code_list": {
        "CDC Race": [
          "2135-2",
          "2186-5"
        ]
      }
    },
    "EmergencyDepartmentVisit_EncounterPerformed_943fd468_a486_47eb_bcef_69bbc31a73a0": {
      "title": "EmergencyDepartmentVisit",
      "description": "Encounter, Performed: EmergencyDepartmentVisit",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.292",
      "type": "encounters",
      "definition": "encounter",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "EmergencyDepartmentVisit_EncounterPerformed_943fd468_a486_47eb_bcef_69bbc31a73a0_source",
      "variable": false
    },
    "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationAdministered_389f98c4_53d0_4562_bfae_02b74a2f8c26": {
      "title": "LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "description": "Medication, Administered: LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113762.1.4.1045.39",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationAdministered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source",
      "variable": false
    },
    "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationNotAdministered_389f98c4_53d0_4562_bfae_02b74a2f8c26": {
      "title": "LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "description": "Medication, Not Administered: LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113762.1.4.1045.39",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationNotAdministered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source",
      "variable": false
    },
    "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationNotOrdered_389f98c4_53d0_4562_bfae_02b74a2f8c26": {
      "title": "LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "description": "Medication, Ordered: LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113762.1.4.1045.39",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationNotOrdered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source",
      "variable": false
    },
    "LowMolecularWeightHeparinforVTEProphylaxis_MedicationAdministered_40280381_3d27_5493_013d_4be146955c92": {
      "title": "LowMolecularWeightHeparinforVTEProphylaxis",
      "description": "Medication, Administered: LowMolecularWeightHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.219",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "LowMolecularWeightHeparinforVTEProphylaxis_MedicationAdministered_40280381_3d27_5493_013d_4be146955c92_source",
      "variable": false
    },
    "LowMolecularWeightHeparinforVTEProphylaxis_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c92": {
      "title": "LowMolecularWeightHeparinforVTEProphylaxis",
      "description": "Medication, Not Administered: LowMolecularWeightHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.219",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "LowMolecularWeightHeparinforVTEProphylaxis_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c92_source",
      "variable": false
    },
    "LowMolecularWeightHeparinforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c92": {
      "title": "LowMolecularWeightHeparinforVTEProphylaxis",
      "description": "Medication, Ordered: LowMolecularWeightHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.219",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "LowMolecularWeightHeparinforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c92_source",
      "variable": false
    },
    "Intermittentpneumaticcompressiondevices_IPC__DeviceApplied_40280381_3d27_5493_013d_4be146945c83": {
      "title": "Intermittentpneumaticcompressiondevices(IPC)",
      "description": "Device, Applied: Intermittentpneumaticcompressiondevices(IPC)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.214",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Intermittentpneumaticcompressiondevices_IPC__DeviceApplied_40280381_3d27_5493_013d_4be146945c83_source",
      "variable": false
    },
    "Intermittentpneumaticcompressiondevices_IPC__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c83": {
      "title": "Intermittentpneumaticcompressiondevices(IPC)",
      "description": "Device, Not Applied: Intermittentpneumaticcompressiondevices(IPC)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.214",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Intermittentpneumaticcompressiondevices_IPC__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c83_source",
      "variable": false
    },
    "Intermittentpneumaticcompressiondevices_IPC__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c83": {
      "title": "Intermittentpneumaticcompressiondevices(IPC)",
      "description": "Device, Ordered: Intermittentpneumaticcompressiondevices(IPC)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.214",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Intermittentpneumaticcompressiondevices_IPC__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c83_source",
      "variable": false
    },
    "prefix_72136_5_AssessmentPerformed_B7EF188A_B153_422B_8D67_C74436EAB826": {
      "title": "Assessment, Performed: Assessment, Performed",
      "description": "Assessment, Performed: Assessment, Performed",
      "type": "assessments",
      "definition": "assessment",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "prefix_72136_5_AssessmentPerformed_B7EF188A_B153_422B_8D67_C74436EAB826_source",
      "variable": false,
      "inline_code_list": {
        "LOINC": [
          "72136-5"
        ]
      },
      "code_list_id": "drc-522a38859e8337cb6214742610b449c149172dccc97f176b0b580b4d3f975004"
    },
    "Venousfootpumps_VFP__DeviceOrdered_40280381_3d27_5493_013d_4be146945c82_spoofed": {
      "title": "Venousfootpumps(VFP)",
      "description": "Device, Ordered: Venousfootpumps(VFP)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.230",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from Venousfootpumps_VFP__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c82_source",
      "variable": false
    },
    "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationOrdered_40280381_3d27_5493_013d_4be146955c94_spoofed": {
      "title": "InjectableFactorXaInhibitorforVTEProphylaxis",
      "description": "Medication, Ordered: InjectableFactorXaInhibitorforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.211",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from InjectableFactorXaInhibitorforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c94_source",
      "variable": false
    },
    "Warfarin_MedicationOrdered_40280381_3d27_5493_013d_4be146955c95_spoofed": {
      "title": "Warfarin",
      "description": "Medication, Ordered: Warfarin",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.232",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from Warfarin_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c95_source",
      "variable": false
    },
    "Graduatedcompressionstockings_GCS__DeviceOrdered_40280381_3d27_5493_013d_4be146945c81_spoofed": {
      "title": "Graduatedcompressionstockings(GCS)",
      "description": "Device, Ordered: Graduatedcompressionstockings(GCS)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.256",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from Graduatedcompressionstockings_GCS__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c81_source",
      "variable": false
    },
    "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationOrdered_389f98c4_53d0_4562_bfae_02b74a2f8c26_spoofed": {
      "title": "LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "description": "Medication, Ordered: LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113762.1.4.1045.39",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationNotOrdered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source",
      "variable": false
    },
    "LowMolecularWeightHeparinforVTEProphylaxis_MedicationOrdered_40280381_3d27_5493_013d_4be146955c92_spoofed": {
      "title": "LowMolecularWeightHeparinforVTEProphylaxis",
      "description": "Medication, Ordered: LowMolecularWeightHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.219",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from LowMolecularWeightHeparinforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c92_source",
      "variable": false
    },
    "Intermittentpneumaticcompressiondevices_IPC__DeviceOrdered_40280381_3d27_5493_013d_4be146945c83_spoofed": {
      "title": "Intermittentpneumaticcompressiondevices(IPC)",
      "description": "Device, Ordered: Intermittentpneumaticcompressiondevices(IPC)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.214",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from Intermittentpneumaticcompressiondevices_IPC__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c83_source",
      "variable": false
    }
  },
  "description": "This measure assesses the number of patients who received VTE prophylaxis or have documentation why no VTE prophylaxis was given the day of or the day after hospital admission or surgery end date for surgeries that start the day of or the day after hospital admission",
  "elm": [
    {
      "library": {
        "identifier": {
          "id": "VenousThromboembolismProphylaxis",
          "version": "7.4.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_3",
              "version": "5.3"
            }
          ]
        },
        "includes": {
          "def": [
            {
              "localId": "2",
              "locator": "5:1-5:64",
              "localIdentifier": "Global",
              "path": "MATGlobalCommonFunctions",
              "version": "2.0.000"
            },
            {
              "localId": "3",
              "locator": "7:1-7:46",
              "localIdentifier": "VTEICU",
              "path": "VTEICU",
              "version": "2.4.000"
            }
          ]
        },
        "codeSystems": {
          "def": [
            {
              "localId": "4",
              "locator": "9:1-9:87",
              "name": "LOINC:2.63",
              "id": "LOINC",
              "version": "urn:hl7:version:2.63",
              "accessLevel": "Public"
            }
          ]
        },
        "valueSets": {
          "def": [
            {
              "localId": "5",
              "locator": "11:1-11:68",
              "name": "ONC Administrative Sex",
              "id": "2.16.840.1.113762.1.4.1",
              "accessLevel": "Public"
            },
            {
              "localId": "6",
              "locator": "12:1-12:53",
              "name": "Race",
              "id": "2.16.840.1.114222.4.11.836",
              "accessLevel": "Public"
            },
            {
              "localId": "7",
              "locator": "13:1-13:58",
              "name": "Ethnicity",
              "id": "2.16.840.1.114222.4.11.837",
              "accessLevel": "Public"
            },
            {
              "localId": "8",
              "locator": "14:1-14:55",
              "name": "Payer",
              "id": "2.16.840.1.114222.4.11.3591",
              "accessLevel": "Public"
            },
            {
              "localId": "9",
              "locator": "15:1-15:83",
              "name": "Atrial Fibrillation/Flutter",
              "id": "2.16.840.1.113883.3.117.1.7.1.202",
              "accessLevel": "Public"
            },
            {
              "localId": "10",
              "locator": "16:1-16:65",
              "name": "Comfort Measures",
              "id": "1.3.6.1.4.1.33895.1.3.0.45",
              "accessLevel": "Public"
            },
            {
              "localId": "11",
              "locator": "17:1-17:81",
              "name": "Direct Thrombin Inhibitor",
              "id": "2.16.840.1.113883.3.117.1.7.1.205",
              "accessLevel": "Public"
            },
            {
              "localId": "12",
              "locator": "18:1-18:82",
              "name": "Emergency Department Visit",
              "id": "2.16.840.1.113883.3.117.1.7.1.292",
              "accessLevel": "Public"
            },
            {
              "localId": "13",
              "locator": "19:1-19:84",
              "name": "General or Neuraxial Anesthesia",
              "id": "2.16.840.1.113883.3.666.5.1743",
              "accessLevel": "Public"
            },
            {
              "localId": "14",
              "locator": "20:1-20:71",
              "name": "General Surgery",
              "id": "2.16.840.1.113883.3.117.1.7.1.255",
              "accessLevel": "Public"
            },
            {
              "localId": "15",
              "locator": "21:1-21:84",
              "name": "Glycoprotein IIb/IIIa Inhibitors",
              "id": "2.16.840.1.113762.1.4.1045.41",
              "accessLevel": "Public"
            },
            {
              "localId": "16",
              "locator": "22:1-22:93",
              "name": "Graduated compression stockings (GCS)",
              "id": "2.16.840.1.113883.3.117.1.7.1.256",
              "accessLevel": "Public"
            },
            {
              "localId": "17",
              "locator": "23:1-23:77",
              "name": "Gynecological Surgery",
              "id": "2.16.840.1.113883.3.117.1.7.1.257",
              "accessLevel": "Public"
            },
            {
              "localId": "18",
              "locator": "24:1-24:74",
              "name": "Hemorrhagic Stroke",
              "id": "2.16.840.1.113883.3.117.1.7.1.212",
              "accessLevel": "Public"
            },
            {
              "localId": "19",
              "locator": "25:1-25:76",
              "name": "Hip Fracture Surgery",
              "id": "2.16.840.1.113883.3.117.1.7.1.258",
              "accessLevel": "Public"
            },
            {
              "localId": "20",
              "locator": "26:1-26:79",
              "name": "Hip Replacement Surgery",
              "id": "2.16.840.1.113883.3.117.1.7.1.259",
              "accessLevel": "Public"
            },
            {
              "localId": "21",
              "locator": "27:1-27:106",
              "name": "Injectable Factor Xa Inhibitor for VTE Prophylaxis",
              "id": "2.16.840.1.113883.3.117.1.7.1.211",
              "accessLevel": "Public"
            },
            {
              "localId": "22",
              "locator": "28:1-28:59",
              "name": "INR",
              "id": "2.16.840.1.113883.3.117.1.7.1.213",
              "accessLevel": "Public"
            },
            {
              "localId": "23",
              "locator": "29:1-29:104",
              "name": "Intermittent pneumatic compression devices (IPC)",
              "id": "2.16.840.1.113883.3.117.1.7.1.214",
              "accessLevel": "Public"
            },
            {
              "localId": "24",
              "locator": "30:1-30:81",
              "name": "Intracranial Neurosurgery",
              "id": "2.16.840.1.113883.3.117.1.7.1.260",
              "accessLevel": "Public"
            },
            {
              "localId": "25",
              "locator": "31:1-31:73",
              "name": "Intravenous route",
              "id": "2.16.840.1.113883.3.117.1.7.1.222",
              "accessLevel": "Public"
            },
            {
              "localId": "26",
              "locator": "32:1-32:71",
              "name": "Ischemic Stroke",
              "id": "2.16.840.1.113883.3.117.1.7.1.247",
              "accessLevel": "Public"
            },
            {
              "localId": "27",
              "locator": "33:1-33:80",
              "name": "Knee Replacement Surgery",
              "id": "2.16.840.1.113883.3.117.1.7.1.261",
              "accessLevel": "Public"
            },
            {
              "localId": "28",
              "locator": "34:1-34:103",
              "name": "Low Dose Unfractionated Heparin for VTE Prophylaxis",
              "id": "2.16.840.1.113762.1.4.1045.39",
              "accessLevel": "Public"
            },
            {
              "localId": "29",
              "locator": "35:1-35:104",
              "name": "Low Molecular Weight Heparin for VTE Prophylaxis",
              "id": "2.16.840.1.113883.3.117.1.7.1.219",
              "accessLevel": "Public"
            },
            {
              "localId": "30",
              "locator": "36:1-36:64",
              "name": "Low Risk",
              "id": "2.16.840.1.113883.3.117.1.7.1.400",
              "accessLevel": "Public"
            },
            {
              "localId": "31",
              "locator": "37:1-37:70",
              "name": "Medical Reason",
              "id": "2.16.840.1.113883.3.117.1.7.1.473",
              "accessLevel": "Public"
            },
            {
              "localId": "32",
              "locator": "38:1-38:86",
              "name": "Mental Health Diagnoses",
              "id": "2.16.840.1.113883.3.464.1003.105.12.1004",
              "accessLevel": "Public"
            },
            {
              "localId": "33",
              "locator": "39:1-39:66",
              "name": "Obstetrics",
              "id": "2.16.840.1.113883.3.117.1.7.1.263",
              "accessLevel": "Public"
            },
            {
              "localId": "34",
              "locator": "40:1-40:70",
              "name": "Obstetrics VTE",
              "id": "2.16.840.1.113883.3.117.1.7.1.264",
              "accessLevel": "Public"
            },
            {
              "localId": "35",
              "locator": "41:1-41: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"
            },
            {
              "localId": "36",
              "locator": "42:1-42:70",
              "name": "Patient Refusal",
              "id": "2.16.840.1.113883.3.117.1.7.1.93",
              "accessLevel": "Public"
            },
            {
              "localId": "37",
              "locator": "43:1-43:64",
              "name": "Principal",
              "id": "2.16.840.1.113883.3.117.1.7.1.14",
              "accessLevel": "Public"
            },
            {
              "localId": "38",
              "locator": "44:1-44:74",
              "name": "Subcutaneous route",
              "id": "2.16.840.1.113883.3.117.1.7.1.223",
              "accessLevel": "Public"
            },
            {
              "localId": "39",
              "locator": "45:1-45:78",
              "name": "Unfractionated Heparin",
              "id": "2.16.840.1.113883.3.117.1.7.1.218",
              "accessLevel": "Public"
            },
            {
              "localId": "40",
              "locator": "46:1-46:74",
              "name": "Urological Surgery",
              "id": "2.16.840.1.113883.3.117.1.7.1.272",
              "accessLevel": "Public"
            },
            {
              "localId": "41",
              "locator": "47:1-47:79",
              "name": "Venous foot pumps (VFP)",
              "id": "2.16.840.1.113883.3.117.1.7.1.230",
              "accessLevel": "Public"
            },
            {
              "localId": "42",
              "locator": "48:1-48:78",
              "name": "Venous Thromboembolism",
              "id": "2.16.840.1.113883.3.117.1.7.1.279",
              "accessLevel": "Public"
            },
            {
              "localId": "43",
              "locator": "49:1-49:64",
              "name": "Warfarin",
              "id": "2.16.840.1.113883.3.117.1.7.1.232",
              "accessLevel": "Public"
            },
            {
              "localId": "44",
              "locator": "50:1-50:71",
              "name": "Intensive Care Unit",
              "id": "2.16.840.1.113762.1.4.1110.23",
              "accessLevel": "Public"
            }
          ]
        },
        "codes": {
          "def": [
            {
              "localId": "46",
              "locator": "52:1-52:109",
              "name": "Risk for venous thromboembolism",
              "id": "72136-5",
              "display": "Risk for venous thromboembolism",
              "accessLevel": "Public",
              "codeSystem": {
                "localId": "45",
                "locator": "52:56-52:67",
                "name": "LOINC:2.63"
              }
            }
          ]
        },
        "statements": {
          "def": [
            {
              "locator": "55:1-55:15",
              "name": "Patient",
              "context": "Patient",
              "expression": {
                "type": "SingletonFrom",
                "operand": {
                  "locator": "55:1-55:15",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                  "templateId": "Patient",
                  "type": "Retrieve"
                }
              }
            },
            {
              "localId": "48",
              "locator": "57:1-58:50",
              "name": "SDE Ethnicity",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "48",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"SDE Ethnicity\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "47",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Patient Characteristic Ethnicity\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"Ethnicity\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "47",
                "locator": "58:2-58:50",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicEthnicity",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "Ethnicity",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "50",
              "locator": "60:1-61:42",
              "name": "SDE Payer",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "50",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"SDE Payer\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "49",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Patient Characteristic Payer\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"Payer\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "49",
                "locator": "61:2-61:42",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicPayer",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "Payer",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "52",
              "locator": "63:1-64:40",
              "name": "SDE Race",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "52",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"SDE Race\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "51",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Patient Characteristic Race\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"Race\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "51",
                "locator": "64:2-64:40",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicRace",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "Race",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "54",
              "locator": "66:1-67:57",
              "name": "SDE Sex",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "54",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"SDE Sex\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "53",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Patient Characteristic Sex\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"ONC Administrative Sex\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "53",
                "locator": "67:2-67:57",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicSex",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "ONC Administrative Sex",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "106",
              "locator": "142:1-157:3",
              "name": "Admission Without VTE or Obstetrical Conditions",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "106",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Admission Without VTE or Obstetrical Conditions\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "105",
                        "s": [
                          {
                            "r": "88",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "88",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "r": "71",
                                        "s": [
                                          {
                                            "r": "70",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "Global",
                                                      ".",
                                                      "\"Inpatient Encounter\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "InpatientEncounter"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "87",
                                    "s": [
                                      {
                                        "value": [
                                          "where "
                                        ]
                                      },
                                      {
                                        "r": "87",
                                        "s": [
                                          {
                                            "value": [
                                              "not "
                                            ]
                                          },
                                          {
                                            "r": "86",
                                            "s": [
                                              {
                                                "value": [
                                                  "( "
                                                ]
                                              },
                                              {
                                                "r": "86",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "exists "
                                                    ]
                                                  },
                                                  {
                                                    "r": "85",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "( "
                                                        ]
                                                      },
                                                      {
                                                        "r": "85",
                                                        "s": [
                                                          {
                                                            "s": [
                                                              {
                                                                "r": "73",
                                                                "s": [
                                                                  {
                                                                    "r": "72",
                                                                    "s": [
                                                                      {
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "InpatientEncounter",
                                                                              ".",
                                                                              "diagnoses"
                                                                            ]
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "value": [
                                                                      " ",
                                                                      "EncounterDiagnoses"
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              "\n\t\t\t\t\t\t"
                                                            ]
                                                          },
                                                          {
                                                            "r": "84",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "where "
                                                                ]
                                                              },
                                                              {
                                                                "r": "84",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "( "
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "84",
                                                                    "s": [
                                                                      {
                                                                        "r": "80",
                                                                        "s": [
                                                                          {
                                                                            "r": "76",
                                                                            "s": [
                                                                              {
                                                                                "r": "74",
                                                                                "s": [
                                                                                  {
                                                                                    "value": [
                                                                                      "EncounterDiagnoses"
                                                                                    ]
                                                                                  }
                                                                                ]
                                                                              },
                                                                              {
                                                                                "value": [
                                                                                  " in "
                                                                                ]
                                                                              },
                                                                              {
                                                                                "r": "75",
                                                                                "s": [
                                                                                  {
                                                                                    "value": [
                                                                                      "\"Obstetrics\""
                                                                                    ]
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "value": [
                                                                              "\n\t\t\t\t\t\t\t\tor "
                                                                            ]
                                                                          },
                                                                          {
                                                                            "r": "79",
                                                                            "s": [
                                                                              {
                                                                                "r": "77",
                                                                                "s": [
                                                                                  {
                                                                                    "value": [
                                                                                      "EncounterDiagnoses"
                                                                                    ]
                                                                                  }
                                                                                ]
                                                                              },
                                                                              {
                                                                                "value": [
                                                                                  " in "
                                                                                ]
                                                                              },
                                                                              {
                                                                                "r": "78",
                                                                                "s": [
                                                                                  {
                                                                                    "value": [
                                                                                      "\"Venous Thromboembolism\""
                                                                                    ]
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ]
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "value": [
                                                                          "\n\t\t\t\t\t\t\t\tor "
                                                                        ]
                                                                      },
                                                                      {
                                                                        "r": "83",
                                                                        "s": [
                                                                          {
                                                                            "r": "81",
                                                                            "s": [
                                                                              {
                                                                                "value": [
                                                                                  "EncounterDiagnoses"
                                                                                ]
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "value": [
                                                                              " in "
                                                                            ]
                                                                          },
                                                                          {
                                                                            "r": "82",
                                                                            "s": [
                                                                              {
                                                                                "value": [
                                                                                  "\"Obstetrics VTE\""
                                                                                ]
                                                                              }
                                                                            ]
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "value": [
                                                                      "\n\t\t\t\t\t\t)"
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "\n\t\t\t\t)"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "\n\t\t\t)"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t)"
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tintersect "
                            ]
                          },
                          {
                            "r": "104",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "104",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "r": "90",
                                        "s": [
                                          {
                                            "r": "89",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "Global",
                                                      ".",
                                                      "\"Inpatient Encounter\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "InpatientEncounter"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "103",
                                    "s": [
                                      {
                                        "value": [
                                          "without "
                                        ]
                                      },
                                      {
                                        "r": "96",
                                        "s": [
                                          {
                                            "r": "95",
                                            "s": [
                                              {
                                                "value": [
                                                  "( "
                                                ]
                                              },
                                              {
                                                "r": "95",
                                                "s": [
                                                  {
                                                    "r": "93",
                                                    "s": [
                                                      {
                                                        "r": "91",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "[",
                                                              "\"Diagnosis\"",
                                                              ": "
                                                            ]
                                                          },
                                                          {
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "\"Obstetrics\""
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              "]"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "\n\t\t\t\t\tunion "
                                                        ]
                                                      },
                                                      {
                                                        "r": "92",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "[",
                                                              "\"Diagnosis\"",
                                                              ": "
                                                            ]
                                                          },
                                                          {
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "\"Venous Thromboembolism\""
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              "]"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t\t\t\t\tunion "
                                                    ]
                                                  },
                                                  {
                                                    "r": "94",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Diagnosis\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Obstetrics VTE\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " )"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "Diagnosis"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t\t\tsuch that "
                                        ]
                                      },
                                      {
                                        "r": "102",
                                        "s": [
                                          {
                                            "r": "98",
                                            "s": [
                                              {
                                                "r": "97",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "Diagnosis"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "98",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "prevalencePeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "starts during",
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "101",
                                            "s": [
                                              {
                                                "r": "99",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "Global"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "101",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Hospitalization\"",
                                                      "("
                                                    ]
                                                  },
                                                  {
                                                    "r": "100",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "InpatientEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      ")"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "105",
                "locator": "143:2-157:3",
                "type": "Intersect",
                "operand": [
                  {
                    "localId": "88",
                    "locator": "143:2-151:2",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "71",
                        "locator": "143:4-143:50",
                        "alias": "InpatientEncounter",
                        "expression": {
                          "localId": "70",
                          "locator": "143:4-143:31",
                          "name": "Inpatient Encounter",
                          "libraryName": "Global",
                          "type": "ExpressionRef"
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "87",
                      "locator": "144:4-150:4",
                      "type": "Not",
                      "operand": {
                        "localId": "86",
                        "locator": "144:14-150:4",
                        "type": "Exists",
                        "operand": {
                          "localId": "85",
                          "locator": "144:23-149:5",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "73",
                              "locator": "144:25-144:71",
                              "alias": "EncounterDiagnoses",
                              "expression": {
                                "localId": "72",
                                "locator": "144:25-144:52",
                                "path": "diagnoses",
                                "scope": "InpatientEncounter",
                                "type": "Property"
                              }
                            }
                          ],
                          "relationship": [

                          ],
                          "where": {
                            "localId": "84",
                            "locator": "145:7-148:7",
                            "type": "Or",
                            "operand": [
                              {
                                "localId": "80",
                                "locator": "145:15-146:57",
                                "type": "Or",
                                "operand": [
                                  {
                                    "localId": "76",
                                    "locator": "145:15-145:48",
                                    "type": "InValueSet",
                                    "code": {
                                      "localId": "74",
                                      "locator": "145:15-145:32",
                                      "name": "EncounterDiagnoses",
                                      "type": "AliasRef"
                                    },
                                    "valueset": {
                                      "localId": "75",
                                      "locator": "145:37-145:48",
                                      "name": "Obstetrics"
                                    }
                                  },
                                  {
                                    "localId": "79",
                                    "locator": "146:12-146:57",
                                    "type": "InValueSet",
                                    "code": {
                                      "localId": "77",
                                      "locator": "146:12-146:29",
                                      "name": "EncounterDiagnoses",
                                      "type": "AliasRef"
                                    },
                                    "valueset": {
                                      "localId": "78",
                                      "locator": "146:34-146:57",
                                      "name": "Venous Thromboembolism"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "83",
                                "locator": "147:12-147:49",
                                "type": "InValueSet",
                                "code": {
                                  "localId": "81",
                                  "locator": "147:12-147:29",
                                  "name": "EncounterDiagnoses",
                                  "type": "AliasRef"
                                },
                                "valueset": {
                                  "localId": "82",
                                  "locator": "147:34-147:49",
                                  "name": "Obstetrics VTE"
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  },
                  {
                    "localId": "104",
                    "locator": "152:13-157:3",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "90",
                        "locator": "152:15-152:61",
                        "alias": "InpatientEncounter",
                        "expression": {
                          "localId": "89",
                          "locator": "152:15-152:42",
                          "name": "Inpatient Encounter",
                          "libraryName": "Global",
                          "type": "ExpressionRef"
                        }
                      }
                    ],
                    "relationship": [
                      {
                        "localId": "103",
                        "locator": "153:5-156:100",
                        "alias": "Diagnosis",
                        "type": "Without",
                        "expression": {
                          "localId": "95",
                          "locator": "153:13-155:44",
                          "type": "Union",
                          "operand": [
                            {
                              "localId": "93",
                              "locator": "153:15-154:50",
                              "type": "Union",
                              "operand": [
                                {
                                  "localId": "91",
                                  "locator": "153:15-153:41",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Obstetrics",
                                    "type": "ValueSetRef"
                                  }
                                },
                                {
                                  "localId": "92",
                                  "locator": "154:12-154:50",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Venous Thromboembolism",
                                    "type": "ValueSetRef"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "94",
                              "locator": "155:12-155:42",
                              "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                              "codeProperty": "code",
                              "type": "Retrieve",
                              "codes": {
                                "name": "Obstetrics VTE",
                                "type": "ValueSetRef"
                              }
                            }
                          ]
                        },
                        "suchThat": {
                          "localId": "102",
                          "locator": "156:16-156:100",
                          "type": "In",
                          "operand": [
                            {
                              "locator": "156:43-156:48",
                              "type": "Start",
                              "operand": {
                                "localId": "98",
                                "locator": "156:16-156:41",
                                "path": "prevalencePeriod",
                                "scope": "Diagnosis",
                                "type": "Property"
                              }
                            },
                            {
                              "localId": "101",
                              "locator": "156:57-156:100",
                              "name": "Hospitalization",
                              "libraryName": "Global",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "100",
                                  "locator": "156:82-156:99",
                                  "name": "InpatientEncounter",
                                  "type": "AliasRef"
                                }
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  }
                ]
              }
            },
            {
              "localId": "109",
              "locator": "286:1-291:61",
              "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "109",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "108",
                        "s": [
                          {
                            "r": "69",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "69",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "r": "56",
                                        "s": [
                                          {
                                            "r": "55",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "Global",
                                                      ".",
                                                      "\"Inpatient Encounter\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "InpatientEncounter"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "68",
                                    "s": [
                                      {
                                        "value": [
                                          "with "
                                        ]
                                      },
                                      {
                                        "r": "58",
                                        "s": [
                                          {
                                            "r": "57",
                                            "s": [
                                              {
                                                "r": "57",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Patient Characteristic Birthdate\"",
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "BirthDate"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t\tsuch that "
                                        ]
                                      },
                                      {
                                        "r": "67",
                                        "s": [
                                          {
                                            "r": "65",
                                            "s": [
                                              {
                                                "r": "59",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "Global"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "65",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"CalendarAgeInYearsAt\"",
                                                      "("
                                                    ]
                                                  },
                                                  {
                                                    "r": "61",
                                                    "s": [
                                                      {
                                                        "r": "60",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "BirthDate"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "61",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "birthDatetime"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      ", "
                                                    ]
                                                  },
                                                  {
                                                    "r": "64",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "start of "
                                                        ]
                                                      },
                                                      {
                                                        "r": "63",
                                                        "s": [
                                                          {
                                                            "r": "62",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "InpatientEncounter"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              "."
                                                            ]
                                                          },
                                                          {
                                                            "r": "63",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "relevantPeriod"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      ")"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ">=",
                                              " ",
                                              "18"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t)"
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tintersect "
                            ]
                          },
                          {
                            "r": "107",
                            "s": [
                              {
                                "value": [
                                  "\"Admission Without VTE or Obstetrical Conditions\""
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "108",
                "locator": "287:2-291:61",
                "type": "Intersect",
                "operand": [
                  {
                    "localId": "69",
                    "locator": "287:2-290:2",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "56",
                        "locator": "287:4-287:50",
                        "alias": "InpatientEncounter",
                        "expression": {
                          "localId": "55",
                          "locator": "287:4-287:31",
                          "name": "Inpatient Encounter",
                          "libraryName": "Global",
                          "type": "ExpressionRef"
                        }
                      }
                    ],
                    "relationship": [
                      {
                        "localId": "68",
                        "locator": "288:4-289:117",
                        "alias": "BirthDate",
                        "type": "With",
                        "expression": {
                          "localId": "57",
                          "locator": "288:9-288:44",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                          "type": "Retrieve"
                        },
                        "suchThat": {
                          "localId": "67",
                          "locator": "289:15-289:117",
                          "type": "GreaterOrEqual",
                          "operand": [
                            {
                              "localId": "65",
                              "locator": "289:15-289:112",
                              "name": "CalendarAgeInYearsAt",
                              "libraryName": "Global",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "61",
                                  "locator": "289:45-289:67",
                                  "path": "birthDatetime",
                                  "scope": "BirthDate",
                                  "type": "Property"
                                },
                                {
                                  "localId": "64",
                                  "locator": "289:70-289:111",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "63",
                                    "locator": "289:79-289:111",
                                    "path": "relevantPeriod",
                                    "scope": "InpatientEncounter",
                                    "type": "Property"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "66",
                              "locator": "289:116-289:117",
                              "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                              "value": "18",
                              "type": "Literal"
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "localId": "107",
                    "locator": "291:13-291:61",
                    "name": "Admission Without VTE or Obstetrical Conditions",
                    "type": "ExpressionRef"
                  }
                ]
              }
            },
            {
              "localId": "111",
              "locator": "75:1-76:79",
              "name": "Initial Population",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "111",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Initial Population\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "110",
                        "s": [
                          {
                            "value": [
                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "110",
                "locator": "76:2-76:79",
                "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                "type": "ExpressionRef"
              }
            },
            {
              "localId": "113",
              "locator": "69:1-70:21",
              "name": "Denominator",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "113",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Denominator\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "112",
                        "s": [
                          {
                            "value": [
                              "\"Initial Population\""
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "112",
                "locator": "70:2-70:21",
                "name": "Initial Population",
                "type": "ExpressionRef"
              }
            },
            {
              "localId": "115",
              "locator": "72:1-73:55",
              "name": "ED Visit",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "115",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"ED Visit\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "114",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Encounter, Performed\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"Emergency Department Visit\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "114",
                "locator": "73:2-73:55",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                "templateId": "PositiveEncounterPerformed",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "Emergency Department Visit",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "127",
              "locator": "78:1-84:72",
              "name": "No VTE Prophylaxis Device Applied or Ordered",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "127",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Device Applied or Ordered\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "126",
                        "s": [
                          {
                            "r": "124",
                            "s": [
                              {
                                "r": "122",
                                "s": [
                                  {
                                    "r": "120",
                                    "s": [
                                      {
                                        "r": "118",
                                        "s": [
                                          {
                                            "r": "116",
                                            "s": [
                                              {
                                                "value": [
                                                  "[",
                                                  "\"Device, Not Applied\"",
                                                  ": "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Intermittent pneumatic compression devices (IPC)\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "]"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\tunion "
                                            ]
                                          },
                                          {
                                            "r": "117",
                                            "s": [
                                              {
                                                "value": [
                                                  "[",
                                                  "\"Device, Not Applied\"",
                                                  ": "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Venous foot pumps (VFP)\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "]"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\tunion "
                                        ]
                                      },
                                      {
                                        "r": "119",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Device, Not Applied\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Graduated compression stockings (GCS)\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\tunion "
                                    ]
                                  },
                                  {
                                    "r": "121",
                                    "s": [
                                      {
                                        "value": [
                                          "[",
                                          "\"Device, Not Ordered\"",
                                          ": "
                                        ]
                                      },
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Intermittent pneumatic compression devices (IPC)\""
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "]"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "123",
                                "s": [
                                  {
                                    "value": [
                                      "[",
                                      "\"Device, Not Ordered\"",
                                      ": "
                                    ]
                                  },
                                  {
                                    "s": [
                                      {
                                        "value": [
                                          "\"Venous foot pumps (VFP)\""
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "]"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "125",
                            "s": [
                              {
                                "value": [
                                  "[",
                                  "\"Device, Not Ordered\"",
                                  ": "
                                ]
                              },
                              {
                                "s": [
                                  {
                                    "value": [
                                      "\"Graduated compression stockings (GCS)\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "]"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "126",
                "locator": "79:2-84:72",
                "type": "Union",
                "operand": [
                  {
                    "locator": "79:2-83:58",
                    "type": "As",
                    "operand": {
                      "localId": "124",
                      "locator": "79:2-83:58",
                      "type": "Union",
                      "operand": [
                        {
                          "locator": "79:2-82:83",
                          "type": "As",
                          "operand": {
                            "localId": "122",
                            "locator": "79:2-82:83",
                            "type": "Union",
                            "operand": [
                              {
                                "locator": "79:2-81:72",
                                "type": "As",
                                "operand": {
                                  "localId": "120",
                                  "locator": "79:2-81:72",
                                  "type": "Union",
                                  "operand": [
                                    {
                                      "localId": "118",
                                      "locator": "79:2-80:58",
                                      "type": "Union",
                                      "operand": [
                                        {
                                          "localId": "116",
                                          "locator": "79:2-79:76",
                                          "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                                          "templateId": "NegativeDeviceApplied",
                                          "codeProperty": "code",
                                          "type": "Retrieve",
                                          "codes": {
                                            "name": "Intermittent pneumatic compression devices (IPC)",
                                            "type": "ValueSetRef"
                                          }
                                        },
                                        {
                                          "localId": "117",
                                          "locator": "80:9-80:58",
                                          "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                                          "templateId": "NegativeDeviceApplied",
                                          "codeProperty": "code",
                                          "type": "Retrieve",
                                          "codes": {
                                            "name": "Venous foot pumps (VFP)",
                                            "type": "ValueSetRef"
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "localId": "119",
                                      "locator": "81:9-81:72",
                                      "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                                      "templateId": "NegativeDeviceApplied",
                                      "codeProperty": "code",
                                      "type": "Retrieve",
                                      "codes": {
                                        "name": "Graduated compression stockings (GCS)",
                                        "type": "ValueSetRef"
                                      }
                                    }
                                  ]
                                },
                                "asTypeSpecifier": {
                                  "type": "ListTypeSpecifier",
                                  "elementType": {
                                    "type": [
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                                        "type": "NamedTypeSpecifier"
                                      },
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                                        "type": "NamedTypeSpecifier"
                                      }
                                    ]
                                  }
                                }
                              },
                              {
                                "locator": "82:9-82:83",
                                "type": "As",
                                "operand": {
                                  "localId": "121",
                                  "locator": "82:9-82:83",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                                  "templateId": "NegativeDeviceOrder",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Intermittent pneumatic compression devices (IPC)",
                                    "type": "ValueSetRef"
                                  }
                                },
                                "asTypeSpecifier": {
                                  "type": "ListTypeSpecifier",
                                  "elementType": {
                                    "type": [
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                                        "type": "NamedTypeSpecifier"
                                      },
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                                        "type": "NamedTypeSpecifier"
                                      }
                                    ]
                                  }
                                }
                              }
                            ]
                          },
                          "asTypeSpecifier": {
                            "type": "ListTypeSpecifier",
                            "elementType": {
                              "type": [
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                                  "type": "NamedTypeSpecifier"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "locator": "83:9-83:58",
                          "type": "As",
                          "operand": {
                            "localId": "123",
                            "locator": "83:9-83:58",
                            "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                            "templateId": "NegativeDeviceOrder",
                            "codeProperty": "code",
                            "type": "Retrieve",
                            "codes": {
                              "name": "Venous foot pumps (VFP)",
                              "type": "ValueSetRef"
                            }
                          },
                          "asTypeSpecifier": {
                            "type": "ListTypeSpecifier",
                            "elementType": {
                              "type": [
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                                  "type": "NamedTypeSpecifier"
                                }
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "asTypeSpecifier": {
                      "type": "ListTypeSpecifier",
                      "elementType": {
                        "type": [
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                            "type": "NamedTypeSpecifier"
                          },
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                            "type": "NamedTypeSpecifier"
                          }
                        ]
                      }
                    }
                  },
                  {
                    "locator": "84:9-84:72",
                    "type": "As",
                    "operand": {
                      "localId": "125",
                      "locator": "84:9-84:72",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                      "templateId": "NegativeDeviceOrder",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Graduated compression stockings (GCS)",
                        "type": "ValueSetRef"
                      }
                    },
                    "asTypeSpecifier": {
                      "type": "ListTypeSpecifier",
                      "elementType": {
                        "type": [
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                            "type": "NamedTypeSpecifier"
                          },
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                            "type": "NamedTypeSpecifier"
                          }
                        ]
                      }
                    }
                  }
                ]
              }
            },
            {
              "localId": "155",
              "locator": "86:1-94:28",
              "name": "No VTE Prophylaxis Device Due to Medical Reason During ED Visit",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "155",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Device Due to Medical Reason During ED Visit\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "154",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "129",
                                "s": [
                                  {
                                    "r": "128",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "131",
                                "s": [
                                  {
                                    "r": "130",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"ED Visit\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "EDVisit"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "133",
                                "s": [
                                  {
                                    "r": "132",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Device Applied or Ordered\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "NoVTEDevice"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "151",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "151",
                                "s": [
                                  {
                                    "r": "145",
                                    "s": [
                                      {
                                        "r": "140",
                                        "s": [
                                          {
                                            "r": "135",
                                            "s": [
                                              {
                                                "r": "134",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "EDVisit"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "135",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "140",
                                            "s": [
                                              {
                                                "value": [
                                                  "ends "
                                                ]
                                              },
                                              {
                                                "r": "139",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "1 ",
                                                      "hour"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " or less on or before"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "138",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "137",
                                                "s": [
                                                  {
                                                    "r": "136",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "QualifyingEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "137",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\tand "
                                        ]
                                      },
                                      {
                                        "r": "144",
                                        "s": [
                                          {
                                            "r": "142",
                                            "s": [
                                              {
                                                "r": "141",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "NoVTEDevice"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "142",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "negationRationale"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " in "
                                            ]
                                          },
                                          {
                                            "r": "143",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Medical Reason\""
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "150",
                                    "s": [
                                      {
                                        "r": "147",
                                        "s": [
                                          {
                                            "r": "146",
                                            "s": [
                                              {
                                                "value": [
                                                  "NoVTEDevice"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "147",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "149",
                                        "s": [
                                          {
                                            "r": "148",
                                            "s": [
                                              {
                                                "value": [
                                                  "EDVisit"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "149",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "153",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "152",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "154",
                "locator": "87:2-94:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "129",
                    "locator": "88:3-88:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "128",
                      "locator": "88:3-88:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "131",
                    "locator": "89:3-89:20",
                    "alias": "EDVisit",
                    "expression": {
                      "localId": "130",
                      "locator": "89:3-89:12",
                      "name": "ED Visit",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "133",
                    "locator": "90:3-90:60",
                    "alias": "NoVTEDevice",
                    "expression": {
                      "localId": "132",
                      "locator": "90:3-90:48",
                      "name": "No VTE Prophylaxis Device Applied or Ordered",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "151",
                  "locator": "91:3-93:63",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "145",
                      "locator": "91:9-92:56",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "140",
                          "locator": "91:9-91:107",
                          "type": "In",
                          "operand": [
                            {
                              "locator": "91:32-91:35",
                              "type": "End",
                              "operand": {
                                "localId": "135",
                                "locator": "91:9-91:30",
                                "path": "relevantPeriod",
                                "scope": "EDVisit",
                                "type": "Property"
                              }
                            },
                            {
                              "locator": "91:37-91:50",
                              "lowClosed": true,
                              "highClosed": true,
                              "type": "Interval",
                              "low": {
                                "locator": "91:65-91:107",
                                "type": "Subtract",
                                "operand": [
                                  {
                                    "localId": "138",
                                    "locator": "91:65-91:107",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "137",
                                      "locator": "91:74-91:107",
                                      "path": "relevantPeriod",
                                      "scope": "QualifyingEncounter",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "139",
                                    "locator": "91:37-91:42",
                                    "value": 1,
                                    "unit": "hour",
                                    "type": "Quantity"
                                  }
                                ]
                              },
                              "high": {
                                "localId": "138",
                                "locator": "91:65-91:107",
                                "type": "Start",
                                "operand": {
                                  "localId": "137",
                                  "locator": "91:74-91:107",
                                  "path": "relevantPeriod",
                                  "scope": "QualifyingEncounter",
                                  "type": "Property"
                                }
                              }
                            }
                          ]
                        },
                        {
                          "localId": "144",
                          "locator": "92:8-92:56",
                          "type": "InValueSet",
                          "code": {
                            "localId": "142",
                            "locator": "92:8-92:36",
                            "path": "negationRationale",
                            "scope": "NoVTEDevice",
                            "type": "Property"
                          },
                          "valueset": {
                            "localId": "143",
                            "locator": "92:41-92:56",
                            "name": "Medical Reason"
                          }
                        }
                      ]
                    },
                    {
                      "localId": "150",
                      "locator": "93:8-93:63",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "147",
                          "locator": "93:8-93:33",
                          "path": "authorDatetime",
                          "scope": "NoVTEDevice",
                          "type": "Property"
                        },
                        {
                          "localId": "149",
                          "locator": "93:42-93:63",
                          "path": "relevantPeriod",
                          "scope": "EDVisit",
                          "type": "Property"
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "153",
                  "locator": "94:3-94:28",
                  "expression": {
                    "localId": "152",
                    "locator": "94:10-94:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "176",
              "locator": "96:1-102:28",
              "name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "176",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "175",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "157",
                                "s": [
                                  {
                                    "r": "156",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "159",
                                "s": [
                                  {
                                    "r": "158",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Device Applied or Ordered\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "NoVTEDevice"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "172",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "172",
                                "s": [
                                  {
                                    "r": "163",
                                    "s": [
                                      {
                                        "r": "161",
                                        "s": [
                                          {
                                            "r": "160",
                                            "s": [
                                              {
                                                "value": [
                                                  "NoVTEDevice"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "161",
                                            "s": [
                                              {
                                                "value": [
                                                  "negationRationale"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " in "
                                        ]
                                      },
                                      {
                                        "r": "162",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Medical Reason\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "171",
                                    "s": [
                                      {
                                        "r": "165",
                                        "s": [
                                          {
                                            "r": "164",
                                            "s": [
                                              {
                                                "value": [
                                                  "NoVTEDevice"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "165",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "170",
                                        "s": [
                                          {
                                            "r": "166",
                                            "s": [
                                              {
                                                "value": [
                                                  "VTEICU"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "170",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarDayOfOrDayAfter\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "169",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "start of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "168",
                                                    "s": [
                                                      {
                                                        "r": "167",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "QualifyingEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "168",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "174",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "173",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "175",
                "locator": "97:2-102:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "157",
                    "locator": "98:3-98:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "156",
                      "locator": "98:3-98:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "159",
                    "locator": "99:3-99:60",
                    "alias": "NoVTEDevice",
                    "expression": {
                      "localId": "158",
                      "locator": "99:3-99:48",
                      "name": "No VTE Prophylaxis Device Applied or Ordered",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "172",
                  "locator": "100:3-101:118",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "163",
                      "locator": "100:9-100:57",
                      "type": "InValueSet",
                      "code": {
                        "localId": "161",
                        "locator": "100:9-100:37",
                        "path": "negationRationale",
                        "scope": "NoVTEDevice",
                        "type": "Property"
                      },
                      "valueset": {
                        "localId": "162",
                        "locator": "100:42-100:57",
                        "name": "Medical Reason"
                      }
                    },
                    {
                      "localId": "171",
                      "locator": "101:8-101:118",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "165",
                          "locator": "101:8-101:33",
                          "path": "authorDatetime",
                          "scope": "NoVTEDevice",
                          "type": "Property"
                        },
                        {
                          "localId": "170",
                          "locator": "101:42-101:118",
                          "name": "CalendarDayOfOrDayAfter",
                          "libraryName": "VTEICU",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "169",
                              "locator": "101:75-101:117",
                              "type": "Start",
                              "operand": {
                                "localId": "168",
                                "locator": "101:84-101:117",
                                "path": "relevantPeriod",
                                "scope": "QualifyingEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "174",
                  "locator": "102:3-102:28",
                  "expression": {
                    "localId": "173",
                    "locator": "102:10-102:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "192",
              "locator": "104:1-112:47",
              "name": "No VTE Prophylaxis Medication Administered or Ordered",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "192",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Medication Administered or Ordered\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "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\t\tunion "
                                                    ]
                                                  },
                                                  {
                                                    "r": "178",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Medication, Not Administered\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Low Molecular Weight Heparin for VTE Prophylaxis\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "\n\t\tunion "
                                                ]
                                              },
                                              {
                                                "r": "180",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Medication, Not Administered\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Injectable Factor Xa Inhibitor for VTE Prophylaxis\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\tunion "
                                            ]
                                          },
                                          {
                                            "r": "182",
                                            "s": [
                                              {
                                                "value": [
                                                  "[",
                                                  "\"Medication, Not Administered\"",
                                                  ": "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Warfarin\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "]"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\tunion "
                                        ]
                                      },
                                      {
                                        "r": "184",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Medication, Not Ordered\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Low Dose Unfractionated Heparin for VTE Prophylaxis\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\tunion "
                                    ]
                                  },
                                  {
                                    "r": "186",
                                    "s": [
                                      {
                                        "value": [
                                          "[",
                                          "\"Medication, Not Ordered\"",
                                          ": "
                                        ]
                                      },
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Low Molecular Weight Heparin for VTE Prophylaxis\""
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "]"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "188",
                                "s": [
                                  {
                                    "value": [
                                      "[",
                                      "\"Medication, Not Ordered\"",
                                      ": "
                                    ]
                                  },
                                  {
                                    "s": [
                                      {
                                        "value": [
                                          "\"Injectable Factor Xa Inhibitor for VTE Prophylaxis\""
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "]"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "190",
                            "s": [
                              {
                                "value": [
                                  "[",
                                  "\"Medication, Not Ordered\"",
                                  ": "
                                ]
                              },
                              {
                                "s": [
                                  {
                                    "value": [
                                      "\"Warfarin\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "]"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "191",
                "locator": "105:2-112:47",
                "type": "Union",
                "operand": [
                  {
                    "locator": "105:2-111:89",
                    "type": "As",
                    "operand": {
                      "localId": "189",
                      "locator": "105:2-111:89",
                      "type": "Union",
                      "operand": [
                        {
                          "locator": "105:2-110:87",
                          "type": "As",
                          "operand": {
                            "localId": "187",
                            "locator": "105:2-110:87",
                            "type": "Union",
                            "operand": [
                              {
                                "locator": "105:2-109:90",
                                "type": "As",
                                "operand": {
                                  "localId": "185",
                                  "locator": "105:2-109:90",
                                  "type": "Union",
                                  "operand": [
                                    {
                                      "locator": "105:2-108:52",
                                      "type": "As",
                                      "operand": {
                                        "localId": "183",
                                        "locator": "105:2-108:52",
                                        "type": "Union",
                                        "operand": [
                                          {
                                            "localId": "181",
                                            "locator": "105:2-107:94",
                                            "type": "Union",
                                            "operand": [
                                              {
                                                "localId": "179",
                                                "locator": "105:2-106:92",
                                                "type": "Union",
                                                "operand": [
                                                  {
                                                    "localId": "177",
                                                    "locator": "105:2-105:88",
                                                    "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                                    "templateId": "NegativeMedicationAdministered",
                                                    "codeProperty": "code",
                                                    "type": "Retrieve",
                                                    "codes": {
                                                      "name": "Low Dose Unfractionated Heparin for VTE Prophylaxis",
                                                      "type": "ValueSetRef"
                                                    }
                                                  },
                                                  {
                                                    "localId": "178",
                                                    "locator": "106:9-106:92",
                                                    "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                                    "templateId": "NegativeMedicationAdministered",
                                                    "codeProperty": "code",
                                                    "type": "Retrieve",
                                                    "codes": {
                                                      "name": "Low Molecular Weight Heparin for VTE Prophylaxis",
                                                      "type": "ValueSetRef"
                                                    }
                                                  }
                                                ]
                                              },
                                              {
                                                "localId": "180",
                                                "locator": "107:9-107:94",
                                                "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                                "templateId": "NegativeMedicationAdministered",
                                                "codeProperty": "code",
                                                "type": "Retrieve",
                                                "codes": {
                                                  "name": "Injectable Factor Xa Inhibitor for VTE Prophylaxis",
                                                  "type": "ValueSetRef"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "localId": "182",
                                            "locator": "108:9-108:52",
                                            "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                            "templateId": "NegativeMedicationAdministered",
                                            "codeProperty": "code",
                                            "type": "Retrieve",
                                            "codes": {
                                              "name": "Warfarin",
                                              "type": "ValueSetRef"
                                            }
                                          }
                                        ]
                                      },
                                      "asTypeSpecifier": {
                                        "type": "ListTypeSpecifier",
                                        "elementType": {
                                          "type": [
                                            {
                                              "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                              "type": "NamedTypeSpecifier"
                                            },
                                            {
                                              "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                                              "type": "NamedTypeSpecifier"
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    {
                                      "locator": "109:9-109:90",
                                      "type": "As",
                                      "operand": {
                                        "localId": "184",
                                        "locator": "109:9-109:90",
                                        "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                                        "templateId": "NegativeMedicationOrder",
                                        "codeProperty": "code",
                                        "type": "Retrieve",
                                        "codes": {
                                          "name": "Low Dose Unfractionated Heparin for VTE Prophylaxis",
                                          "type": "ValueSetRef"
                                        }
                                      },
                                      "asTypeSpecifier": {
                                        "type": "ListTypeSpecifier",
                                        "elementType": {
                                          "type": [
                                            {
                                              "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                              "type": "NamedTypeSpecifier"
                                            },
                                            {
                                              "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                                              "type": "NamedTypeSpecifier"
                                            }
                                          ]
                                        }
                                      }
                                    }
                                  ]
                                },
                                "asTypeSpecifier": {
                                  "type": "ListTypeSpecifier",
                                  "elementType": {
                                    "type": [
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                        "type": "NamedTypeSpecifier"
                                      },
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                                        "type": "NamedTypeSpecifier"
                                      }
                                    ]
                                  }
                                }
                              },
                              {
                                "locator": "110:9-110:87",
                                "type": "As",
                                "operand": {
                                  "localId": "186",
                                  "locator": "110:9-110:87",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                                  "templateId": "NegativeMedicationOrder",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Low Molecular Weight Heparin for VTE Prophylaxis",
                                    "type": "ValueSetRef"
                                  }
                                },
                                "asTypeSpecifier": {
                                  "type": "ListTypeSpecifier",
                                  "elementType": {
                                    "type": [
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                        "type": "NamedTypeSpecifier"
                                      },
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                                        "type": "NamedTypeSpecifier"
                                      }
                                    ]
                                  }
                                }
                              }
                            ]
                          },
                          "asTypeSpecifier": {
                            "type": "ListTypeSpecifier",
                            "elementType": {
                              "type": [
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                                  "type": "NamedTypeSpecifier"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "locator": "111:9-111:89",
                          "type": "As",
                          "operand": {
                            "localId": "188",
                            "locator": "111:9-111:89",
                            "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                            "templateId": "NegativeMedicationOrder",
                            "codeProperty": "code",
                            "type": "Retrieve",
                            "codes": {
                              "name": "Injectable Factor Xa Inhibitor for VTE Prophylaxis",
                              "type": "ValueSetRef"
                            }
                          },
                          "asTypeSpecifier": {
                            "type": "ListTypeSpecifier",
                            "elementType": {
                              "type": [
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                                  "type": "NamedTypeSpecifier"
                                }
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "asTypeSpecifier": {
                      "type": "ListTypeSpecifier",
                      "elementType": {
                        "type": [
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                            "type": "NamedTypeSpecifier"
                          },
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                            "type": "NamedTypeSpecifier"
                          }
                        ]
                      }
                    }
                  },
                  {
                    "locator": "112:9-112:47",
                    "type": "As",
                    "operand": {
                      "localId": "190",
                      "locator": "112:9-112:47",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                      "templateId": "NegativeMedicationOrder",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Warfarin",
                        "type": "ValueSetRef"
                      }
                    },
                    "asTypeSpecifier": {
                      "type": "ListTypeSpecifier",
                      "elementType": {
                        "type": [
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                            "type": "NamedTypeSpecifier"
                          },
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                            "type": "NamedTypeSpecifier"
                          }
                        ]
                      }
                    }
                  }
                ]
              }
            },
            {
              "localId": "220",
              "locator": "114:1-122:28",
              "name": "No VTE Prophylaxis Medication Due to Medical Reason During ED Visit",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "220",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Medication Due to Medical Reason During ED Visit\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "219",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "194",
                                "s": [
                                  {
                                    "r": "193",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "196",
                                "s": [
                                  {
                                    "r": "195",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"ED Visit\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "EDVisit"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "198",
                                "s": [
                                  {
                                    "r": "197",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "NoVTEMedication"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "216",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "216",
                                "s": [
                                  {
                                    "r": "210",
                                    "s": [
                                      {
                                        "r": "205",
                                        "s": [
                                          {
                                            "r": "200",
                                            "s": [
                                              {
                                                "r": "199",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "EDVisit"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "200",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "205",
                                            "s": [
                                              {
                                                "value": [
                                                  "ends "
                                                ]
                                              },
                                              {
                                                "r": "204",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "1 ",
                                                      "hour"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " or less on or before"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "203",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "202",
                                                "s": [
                                                  {
                                                    "r": "201",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "QualifyingEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "202",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\tand "
                                        ]
                                      },
                                      {
                                        "r": "209",
                                        "s": [
                                          {
                                            "r": "207",
                                            "s": [
                                              {
                                                "r": "206",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "NoVTEMedication"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "207",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "negationRationale"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " in "
                                            ]
                                          },
                                          {
                                            "r": "208",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Medical Reason\""
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "215",
                                    "s": [
                                      {
                                        "r": "212",
                                        "s": [
                                          {
                                            "r": "211",
                                            "s": [
                                              {
                                                "value": [
                                                  "NoVTEMedication"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "212",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "214",
                                        "s": [
                                          {
                                            "r": "213",
                                            "s": [
                                              {
                                                "value": [
                                                  "EDVisit"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "214",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "218",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "217",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "219",
                "locator": "115:2-122:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "194",
                    "locator": "116:3-116:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "193",
                      "locator": "116:3-116:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "196",
                    "locator": "117:3-117:20",
                    "alias": "EDVisit",
                    "expression": {
                      "localId": "195",
                      "locator": "117:3-117:12",
                      "name": "ED Visit",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "198",
                    "locator": "118:3-118:73",
                    "alias": "NoVTEMedication",
                    "expression": {
                      "localId": "197",
                      "locator": "118:3-118:57",
                      "name": "No VTE Prophylaxis Medication Administered or Ordered",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "216",
                  "locator": "119:3-121:67",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "210",
                      "locator": "119:9-120:60",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "205",
                          "locator": "119:9-119:107",
                          "type": "In",
                          "operand": [
                            {
                              "locator": "119:32-119:35",
                              "type": "End",
                              "operand": {
                                "localId": "200",
                                "locator": "119:9-119:30",
                                "path": "relevantPeriod",
                                "scope": "EDVisit",
                                "type": "Property"
                              }
                            },
                            {
                              "locator": "119:37-119:50",
                              "lowClosed": true,
                              "highClosed": true,
                              "type": "Interval",
                              "low": {
                                "locator": "119:65-119:107",
                                "type": "Subtract",
                                "operand": [
                                  {
                                    "localId": "203",
                                    "locator": "119:65-119:107",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "202",
                                      "locator": "119:74-119:107",
                                      "path": "relevantPeriod",
                                      "scope": "QualifyingEncounter",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "204",
                                    "locator": "119:37-119:42",
                                    "value": 1,
                                    "unit": "hour",
                                    "type": "Quantity"
                                  }
                                ]
                              },
                              "high": {
                                "localId": "203",
                                "locator": "119:65-119:107",
                                "type": "Start",
                                "operand": {
                                  "localId": "202",
                                  "locator": "119:74-119:107",
                                  "path": "relevantPeriod",
                                  "scope": "QualifyingEncounter",
                                  "type": "Property"
                                }
                              }
                            }
                          ]
                        },
                        {
                          "localId": "209",
                          "locator": "120:8-120:60",
                          "type": "InValueSet",
                          "code": {
                            "localId": "207",
                            "locator": "120:8-120:40",
                            "path": "negationRationale",
                            "scope": "NoVTEMedication",
                            "type": "Property"
                          },
                          "valueset": {
                            "localId": "208",
                            "locator": "120:45-120:60",
                            "name": "Medical Reason"
                          }
                        }
                      ]
                    },
                    {
                      "localId": "215",
                      "locator": "121:8-121:67",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "212",
                          "locator": "121:8-121:37",
                          "path": "authorDatetime",
                          "scope": "NoVTEMedication",
                          "type": "Property"
                        },
                        {
                          "localId": "214",
                          "locator": "121:46-121:67",
                          "path": "relevantPeriod",
                          "scope": "EDVisit",
                          "type": "Property"
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "218",
                  "locator": "122:3-122:28",
                  "expression": {
                    "localId": "217",
                    "locator": "122:10-122:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "241",
              "locator": "124:1-130:28",
              "name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "241",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "240",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "222",
                                "s": [
                                  {
                                    "r": "221",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "224",
                                "s": [
                                  {
                                    "r": "223",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "NoVTEMedication"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "237",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "237",
                                "s": [
                                  {
                                    "r": "228",
                                    "s": [
                                      {
                                        "r": "226",
                                        "s": [
                                          {
                                            "r": "225",
                                            "s": [
                                              {
                                                "value": [
                                                  "NoVTEMedication"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "226",
                                            "s": [
                                              {
                                                "value": [
                                                  "negationRationale"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " in "
                                        ]
                                      },
                                      {
                                        "r": "227",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Medical Reason\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "236",
                                    "s": [
                                      {
                                        "r": "230",
                                        "s": [
                                          {
                                            "r": "229",
                                            "s": [
                                              {
                                                "value": [
                                                  "NoVTEMedication"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "230",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "235",
                                        "s": [
                                          {
                                            "r": "231",
                                            "s": [
                                              {
                                                "value": [
                                                  "VTEICU"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "235",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarDayOfOrDayAfter\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "234",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "start of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "233",
                                                    "s": [
                                                      {
                                                        "r": "232",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "QualifyingEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "233",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "239",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "238",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "240",
                "locator": "125:2-130:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "222",
                    "locator": "126:3-126:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "221",
                      "locator": "126:3-126:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "224",
                    "locator": "127:3-127:73",
                    "alias": "NoVTEMedication",
                    "expression": {
                      "localId": "223",
                      "locator": "127:3-127:57",
                      "name": "No VTE Prophylaxis Medication Administered or Ordered",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "237",
                  "locator": "128:3-129:122",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "228",
                      "locator": "128:9-128:61",
                      "type": "InValueSet",
                      "code": {
                        "localId": "226",
                        "locator": "128:9-128:41",
                        "path": "negationRationale",
                        "scope": "NoVTEMedication",
                        "type": "Property"
                      },
                      "valueset": {
                        "localId": "227",
                        "locator": "128:46-128:61",
                        "name": "Medical Reason"
                      }
                    },
                    {
                      "localId": "236",
                      "locator": "129:8-129:122",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "230",
                          "locator": "129:8-129:37",
                          "path": "authorDatetime",
                          "scope": "NoVTEMedication",
                          "type": "Property"
                        },
                        {
                          "localId": "235",
                          "locator": "129:46-129:122",
                          "name": "CalendarDayOfOrDayAfter",
                          "libraryName": "VTEICU",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "234",
                              "locator": "129:79-129:121",
                              "type": "Start",
                              "operand": {
                                "localId": "233",
                                "locator": "129:88-129:121",
                                "path": "relevantPeriod",
                                "scope": "QualifyingEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "239",
                  "locator": "130:3-130:28",
                  "expression": {
                    "localId": "238",
                    "locator": "130:10-130:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "272",
              "locator": "132:1-140:28",
              "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": "272",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "271",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "243",
                                "s": [
                                  {
                                    "r": "242",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "245",
                                "s": [
                                  {
                                    "r": "244",
                                    "s": [
                                      {
                                        "r": "244",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Procedure, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"General or Neuraxial Anesthesia\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "AnesthesiaProcedure"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "247",
                                "s": [
                                  {
                                    "r": "246",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Device Applied or Ordered\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "NoVTEDevice"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "268",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "268",
                                "s": [
                                  {
                                    "r": "259",
                                    "s": [
                                      {
                                        "r": "251",
                                        "s": [
                                          {
                                            "r": "249",
                                            "s": [
                                              {
                                                "r": "248",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "NoVTEDevice"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "249",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "negationRationale"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " in "
                                            ]
                                          },
                                          {
                                            "r": "250",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Medical Reason\""
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\tand "
                                        ]
                                      },
                                      {
                                        "r": "258",
                                        "s": [
                                          {
                                            "r": "253",
                                            "s": [
                                              {
                                                "r": "252",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "AnesthesiaProcedure"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "253",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "258",
                                            "s": [
                                              {
                                                "value": [
                                                  "ends "
                                                ]
                                              },
                                              {
                                                "r": "257",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "1 ",
                                                      "day"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " after day of"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "256",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "255",
                                                "s": [
                                                  {
                                                    "r": "254",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "QualifyingEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "255",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "267",
                                    "s": [
                                      {
                                        "r": "261",
                                        "s": [
                                          {
                                            "r": "260",
                                            "s": [
                                              {
                                                "value": [
                                                  "NoVTEDevice"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "261",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "266",
                                        "s": [
                                          {
                                            "r": "262",
                                            "s": [
                                              {
                                                "value": [
                                                  "VTEICU"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "266",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarDayOfOrDayAfter\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "265",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "end of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "264",
                                                    "s": [
                                                      {
                                                        "r": "263",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "AnesthesiaProcedure"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "264",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "270",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "269",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "271",
                "locator": "133:2-140:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "243",
                    "locator": "134:3-134:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "242",
                      "locator": "134:3-134:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "245",
                    "locator": "135:3-135:81",
                    "alias": "AnesthesiaProcedure",
                    "expression": {
                      "localId": "244",
                      "locator": "135:3-135:61",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                      "templateId": "PositiveProcedurePerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "General or Neuraxial Anesthesia",
                        "type": "ValueSetRef"
                      }
                    }
                  },
                  {
                    "localId": "247",
                    "locator": "136:3-136:60",
                    "alias": "NoVTEDevice",
                    "expression": {
                      "localId": "246",
                      "locator": "136:3-136:48",
                      "name": "No VTE Prophylaxis Device Applied or Ordered",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "268",
                  "locator": "137:3-139:116",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "259",
                      "locator": "137:9-138:109",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "251",
                          "locator": "137:9-137:57",
                          "type": "InValueSet",
                          "code": {
                            "localId": "249",
                            "locator": "137:9-137:37",
                            "path": "negationRationale",
                            "scope": "NoVTEDevice",
                            "type": "Property"
                          },
                          "valueset": {
                            "localId": "250",
                            "locator": "137:42-137:57",
                            "name": "Medical Reason"
                          }
                        },
                        {
                          "localId": "258",
                          "locator": "138:8-138:109",
                          "precision": "Day",
                          "type": "SameAs",
                          "operand": [
                            {
                              "locator": "138:43-138:46",
                              "type": "End",
                              "operand": {
                                "localId": "253",
                                "locator": "138:8-138:41",
                                "path": "relevantPeriod",
                                "scope": "AnesthesiaProcedure",
                                "type": "Property"
                              }
                            },
                            {
                              "locator": "138:67-138:109",
                              "type": "Add",
                              "operand": [
                                {
                                  "localId": "256",
                                  "locator": "138:67-138:109",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "255",
                                    "locator": "138:76-138:109",
                                    "path": "relevantPeriod",
                                    "scope": "QualifyingEncounter",
                                    "type": "Property"
                                  }
                                },
                                {
                                  "localId": "257",
                                  "locator": "138:48-138:52",
                                  "value": 1,
                                  "unit": "day",
                                  "type": "Quantity"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "localId": "267",
                      "locator": "139:8-139:116",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "261",
                          "locator": "139:8-139:33",
                          "path": "authorDatetime",
                          "scope": "NoVTEDevice",
                          "type": "Property"
                        },
                        {
                          "localId": "266",
                          "locator": "139:42-139:116",
                          "name": "CalendarDayOfOrDayAfter",
                          "libraryName": "VTEICU",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "265",
                              "locator": "139:75-139:115",
                              "type": "End",
                              "operand": {
                                "localId": "264",
                                "locator": "139:82-139:115",
                                "path": "relevantPeriod",
                                "scope": "AnesthesiaProcedure",
                                "type": "Property"
                              }
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "270",
                  "locator": "140:3-140:28",
                  "expression": {
                    "localId": "269",
                    "locator": "140:10-140:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "303",
              "locator": "159:1-167:28",
              "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": "303",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "302",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "274",
                                "s": [
                                  {
                                    "r": "273",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "276",
                                "s": [
                                  {
                                    "r": "275",
                                    "s": [
                                      {
                                        "r": "275",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Procedure, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"General or Neuraxial Anesthesia\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "AnesthesiaProcedure"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "278",
                                "s": [
                                  {
                                    "r": "277",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "NoVTEMedication"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "299",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "299",
                                "s": [
                                  {
                                    "r": "290",
                                    "s": [
                                      {
                                        "r": "282",
                                        "s": [
                                          {
                                            "r": "280",
                                            "s": [
                                              {
                                                "r": "279",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "NoVTEMedication"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "280",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "negationRationale"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " in "
                                            ]
                                          },
                                          {
                                            "r": "281",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Medical Reason\""
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\tand "
                                        ]
                                      },
                                      {
                                        "r": "289",
                                        "s": [
                                          {
                                            "r": "284",
                                            "s": [
                                              {
                                                "r": "283",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "AnesthesiaProcedure"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "284",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "289",
                                            "s": [
                                              {
                                                "value": [
                                                  "ends "
                                                ]
                                              },
                                              {
                                                "r": "288",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "1 ",
                                                      "day"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " after day of"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "287",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "286",
                                                "s": [
                                                  {
                                                    "r": "285",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "QualifyingEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "286",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "298",
                                    "s": [
                                      {
                                        "r": "292",
                                        "s": [
                                          {
                                            "r": "291",
                                            "s": [
                                              {
                                                "value": [
                                                  "NoVTEMedication"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "292",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "297",
                                        "s": [
                                          {
                                            "r": "293",
                                            "s": [
                                              {
                                                "value": [
                                                  "VTEICU"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "297",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarDayOfOrDayAfter\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "296",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "end of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "295",
                                                    "s": [
                                                      {
                                                        "r": "294",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "AnesthesiaProcedure"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "295",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "301",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "300",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "302",
                "locator": "160:2-167:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "274",
                    "locator": "161:3-161:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "273",
                      "locator": "161:3-161:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "276",
                    "locator": "162:3-162:81",
                    "alias": "AnesthesiaProcedure",
                    "expression": {
                      "localId": "275",
                      "locator": "162:3-162:61",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                      "templateId": "PositiveProcedurePerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "General or Neuraxial Anesthesia",
                        "type": "ValueSetRef"
                      }
                    }
                  },
                  {
                    "localId": "278",
                    "locator": "163:3-163:73",
                    "alias": "NoVTEMedication",
                    "expression": {
                      "localId": "277",
                      "locator": "163:3-163:57",
                      "name": "No VTE Prophylaxis Medication Administered or Ordered",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "299",
                  "locator": "164:3-166:120",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "290",
                      "locator": "164:9-165:109",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "282",
                          "locator": "164:9-164:61",
                          "type": "InValueSet",
                          "code": {
                            "localId": "280",
                            "locator": "164:9-164:41",
                            "path": "negationRationale",
                            "scope": "NoVTEMedication",
                            "type": "Property"
                          },
                          "valueset": {
                            "localId": "281",
                            "locator": "164:46-164:61",
                            "name": "Medical Reason"
                          }
                        },
                        {
                          "localId": "289",
                          "locator": "165:8-165:109",
                          "precision": "Day",
                          "type": "SameAs",
                          "operand": [
                            {
                              "locator": "165:43-165:46",
                              "type": "End",
                              "operand": {
                                "localId": "284",
                                "locator": "165:8-165:41",
                                "path": "relevantPeriod",
                                "scope": "AnesthesiaProcedure",
                                "type": "Property"
                              }
                            },
                            {
                              "locator": "165:67-165:109",
                              "type": "Add",
                              "operand": [
                                {
                                  "localId": "287",
                                  "locator": "165:67-165:109",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "286",
                                    "locator": "165:76-165:109",
                                    "path": "relevantPeriod",
                                    "scope": "QualifyingEncounter",
                                    "type": "Property"
                                  }
                                },
                                {
                                  "localId": "288",
                                  "locator": "165:48-165:52",
                                  "value": 1,
                                  "unit": "day",
                                  "type": "Quantity"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "localId": "298",
                      "locator": "166:8-166:120",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "292",
                          "locator": "166:8-166:37",
                          "path": "authorDatetime",
                          "scope": "NoVTEMedication",
                          "type": "Property"
                        },
                        {
                          "localId": "297",
                          "locator": "166:46-166:120",
                          "name": "CalendarDayOfOrDayAfter",
                          "libraryName": "VTEICU",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "296",
                              "locator": "166:79-166:119",
                              "type": "End",
                              "operand": {
                                "localId": "295",
                                "locator": "166:86-166:119",
                                "path": "relevantPeriod",
                                "scope": "AnesthesiaProcedure",
                                "type": "Property"
                              }
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "301",
                  "locator": "167:3-167:28",
                  "expression": {
                    "localId": "300",
                    "locator": "167:10-167:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "313",
              "locator": "169:1-171:68",
              "name": "Encounter Less Than 2 Days",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "313",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter Less Than 2 Days\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "312",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "305",
                                "s": [
                                  {
                                    "r": "304",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "311",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "311",
                                "s": [
                                  {
                                    "r": "309",
                                    "s": [
                                      {
                                        "r": "306",
                                        "s": [
                                          {
                                            "value": [
                                              "Global"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "309",
                                        "s": [
                                          {
                                            "value": [
                                              "\"LengthInDays\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "308",
                                            "s": [
                                              {
                                                "r": "307",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "QualifyingEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "308",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "<",
                                      " ",
                                      "2"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "312",
                "locator": "170:2-171:68",
                "type": "Query",
                "source": [
                  {
                    "localId": "305",
                    "locator": "170:2-170:99",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "304",
                      "locator": "170:2-170:79",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "311",
                  "locator": "171:3-171:68",
                  "type": "Less",
                  "operand": [
                    {
                      "localId": "309",
                      "locator": "171:9-171:65",
                      "name": "LengthInDays",
                      "libraryName": "Global",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "308",
                          "locator": "171:31-171:64",
                          "path": "relevantPeriod",
                          "scope": "QualifyingEncounter",
                          "type": "Property"
                        }
                      ]
                    },
                    {
                      "localId": "310",
                      "locator": "171:68",
                      "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                      "value": "2",
                      "type": "Literal"
                    }
                  ]
                }
              }
            },
            {
              "localId": "327",
              "locator": "173:1-180:54",
              "name": "SCIP VTE Selected Surgery",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "327",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"SCIP VTE Selected Surgery\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "326",
                        "s": [
                          {
                            "r": "324",
                            "s": [
                              {
                                "r": "322",
                                "s": [
                                  {
                                    "r": "320",
                                    "s": [
                                      {
                                        "r": "318",
                                        "s": [
                                          {
                                            "r": "316",
                                            "s": [
                                              {
                                                "r": "314",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Procedure, Performed\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"General Surgery\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "\n\t\tunion "
                                                ]
                                              },
                                              {
                                                "r": "315",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Procedure, Performed\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Gynecological Surgery\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\tunion "
                                            ]
                                          },
                                          {
                                            "r": "317",
                                            "s": [
                                              {
                                                "value": [
                                                  "[",
                                                  "\"Procedure, Performed\"",
                                                  ": "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Hip Fracture Surgery\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "]"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\tunion "
                                        ]
                                      },
                                      {
                                        "r": "319",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Procedure, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Hip Replacement Surgery\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\tunion "
                                    ]
                                  },
                                  {
                                    "r": "321",
                                    "s": [
                                      {
                                        "value": [
                                          "[",
                                          "\"Procedure, Performed\"",
                                          ": "
                                        ]
                                      },
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Intracranial Neurosurgery\""
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "]"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "323",
                                "s": [
                                  {
                                    "value": [
                                      "[",
                                      "\"Procedure, Performed\"",
                                      ": "
                                    ]
                                  },
                                  {
                                    "s": [
                                      {
                                        "value": [
                                          "\"Knee Replacement Surgery\""
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "]"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "325",
                            "s": [
                              {
                                "value": [
                                  "[",
                                  "\"Procedure, Performed\"",
                                  ": "
                                ]
                              },
                              {
                                "s": [
                                  {
                                    "value": [
                                      "\"Urological Surgery\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "]"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "326",
                "locator": "174:2-180:54",
                "type": "Union",
                "operand": [
                  {
                    "localId": "324",
                    "locator": "174:2-179:60",
                    "type": "Union",
                    "operand": [
                      {
                        "localId": "322",
                        "locator": "174:2-178:61",
                        "type": "Union",
                        "operand": [
                          {
                            "localId": "320",
                            "locator": "174:2-177:59",
                            "type": "Union",
                            "operand": [
                              {
                                "localId": "318",
                                "locator": "174:2-176:56",
                                "type": "Union",
                                "operand": [
                                  {
                                    "localId": "316",
                                    "locator": "174:2-175:57",
                                    "type": "Union",
                                    "operand": [
                                      {
                                        "localId": "314",
                                        "locator": "174:2-174:44",
                                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                                        "templateId": "PositiveProcedurePerformed",
                                        "codeProperty": "code",
                                        "type": "Retrieve",
                                        "codes": {
                                          "name": "General Surgery",
                                          "type": "ValueSetRef"
                                        }
                                      },
                                      {
                                        "localId": "315",
                                        "locator": "175:9-175:57",
                                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                                        "templateId": "PositiveProcedurePerformed",
                                        "codeProperty": "code",
                                        "type": "Retrieve",
                                        "codes": {
                                          "name": "Gynecological Surgery",
                                          "type": "ValueSetRef"
                                        }
                                      }
                                    ]
                                  },
                                  {
                                    "localId": "317",
                                    "locator": "176:9-176:56",
                                    "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                                    "templateId": "PositiveProcedurePerformed",
                                    "codeProperty": "code",
                                    "type": "Retrieve",
                                    "codes": {
                                      "name": "Hip Fracture Surgery",
                                      "type": "ValueSetRef"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "319",
                                "locator": "177:9-177:59",
                                "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                                "templateId": "PositiveProcedurePerformed",
                                "codeProperty": "code",
                                "type": "Retrieve",
                                "codes": {
                                  "name": "Hip Replacement Surgery",
                                  "type": "ValueSetRef"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "321",
                            "locator": "178:9-178:61",
                            "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                            "templateId": "PositiveProcedurePerformed",
                            "codeProperty": "code",
                            "type": "Retrieve",
                            "codes": {
                              "name": "Intracranial Neurosurgery",
                              "type": "ValueSetRef"
                            }
                          }
                        ]
                      },
                      {
                        "localId": "323",
                        "locator": "179:9-179:60",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                        "templateId": "PositiveProcedurePerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Knee Replacement Surgery",
                          "type": "ValueSetRef"
                        }
                      }
                    ]
                  },
                  {
                    "localId": "325",
                    "locator": "180:9-180:54",
                    "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                    "templateId": "PositiveProcedurePerformed",
                    "codeProperty": "code",
                    "type": "Retrieve",
                    "codes": {
                      "name": "Urological Surgery",
                      "type": "ValueSetRef"
                    }
                  }
                ]
              }
            },
            {
              "localId": "331",
              "locator": "182:1-184:55",
              "name": "Intervention Comfort Measures",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "331",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Intervention Comfort Measures\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "330",
                        "s": [
                          {
                            "r": "328",
                            "s": [
                              {
                                "value": [
                                  "[",
                                  "\"Intervention, Order\"",
                                  ": "
                                ]
                              },
                              {
                                "s": [
                                  {
                                    "value": [
                                      "\"Comfort Measures\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "]"
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "329",
                            "s": [
                              {
                                "value": [
                                  "[",
                                  "\"Intervention, Performed\"",
                                  ": "
                                ]
                              },
                              {
                                "s": [
                                  {
                                    "value": [
                                      "\"Comfort Measures\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "]"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "330",
                "locator": "183:2-184:55",
                "type": "Union",
                "operand": [
                  {
                    "locator": "183:2-183:44",
                    "type": "As",
                    "operand": {
                      "localId": "328",
                      "locator": "183:2-183:44",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionOrder",
                      "templateId": "PositiveInterventionOrder",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Comfort Measures",
                        "type": "ValueSetRef"
                      }
                    },
                    "asTypeSpecifier": {
                      "type": "ListTypeSpecifier",
                      "elementType": {
                        "type": [
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                            "type": "NamedTypeSpecifier"
                          },
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionOrder",
                            "type": "NamedTypeSpecifier"
                          }
                        ]
                      }
                    }
                  },
                  {
                    "locator": "184:9-184:55",
                    "type": "As",
                    "operand": {
                      "localId": "329",
                      "locator": "184:9-184:55",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                      "templateId": "PositiveInterventionPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Comfort Measures",
                        "type": "ValueSetRef"
                      }
                    },
                    "asTypeSpecifier": {
                      "type": "ListTypeSpecifier",
                      "elementType": {
                        "type": [
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                            "type": "NamedTypeSpecifier"
                          },
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionOrder",
                            "type": "NamedTypeSpecifier"
                          }
                        ]
                      }
                    }
                  }
                ]
              }
            },
            {
              "localId": "350",
              "locator": "186:1-189:181",
              "name": "Intervention Comfort Measures on Day of or Day After Start of Hospitalization",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "350",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Intervention Comfort Measures on Day of or Day After Start of Hospitalization\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "349",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "333",
                                "s": [
                                  {
                                    "r": "332",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "348",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "335",
                                "s": [
                                  {
                                    "r": "334",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Intervention Comfort Measures\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "ComfortMeasures"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "347",
                                "s": [
                                  {
                                    "r": "341",
                                    "s": [
                                      {
                                        "value": [
                                          "Coalesce",
                                          "("
                                        ]
                                      },
                                      {
                                        "r": "338",
                                        "s": [
                                          {
                                            "value": [
                                              "start of "
                                            ]
                                          },
                                          {
                                            "r": "337",
                                            "s": [
                                              {
                                                "r": "336",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "ComfortMeasures"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "337",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ", "
                                        ]
                                      },
                                      {
                                        "r": "340",
                                        "s": [
                                          {
                                            "r": "339",
                                            "s": [
                                              {
                                                "value": [
                                                  "ComfortMeasures"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "340",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ")"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "r": "347",
                                    "s": [
                                      {
                                        "r": "346",
                                        "s": [
                                          {
                                            "value": [
                                              "1 ",
                                              "day"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " or less on or after day of"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "345",
                                    "s": [
                                      {
                                        "value": [
                                          "start of "
                                        ]
                                      },
                                      {
                                        "r": "344",
                                        "s": [
                                          {
                                            "r": "342",
                                            "s": [
                                              {
                                                "value": [
                                                  "Global"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "344",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Hospitalization\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "343",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "QualifyingEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "349",
                "locator": "187:2-189:181",
                "type": "Query",
                "source": [
                  {
                    "localId": "333",
                    "locator": "187:2-187:99",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "332",
                      "locator": "187:2-187:79",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "348",
                    "locator": "188:3-189:181",
                    "alias": "ComfortMeasures",
                    "type": "With",
                    "expression": {
                      "localId": "334",
                      "locator": "188:8-188:38",
                      "name": "Intervention Comfort Measures",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "347",
                      "locator": "189:14-189:181",
                      "precision": "Day",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "341",
                          "locator": "189:14-189:94",
                          "type": "Coalesce",
                          "operand": [
                            {
                              "localId": "338",
                              "locator": "189:23-189:61",
                              "type": "Start",
                              "operand": {
                                "localId": "337",
                                "locator": "189:32-189:61",
                                "path": "relevantPeriod",
                                "scope": "ComfortMeasures",
                                "type": "Property"
                              }
                            },
                            {
                              "localId": "340",
                              "locator": "189:64-189:93",
                              "path": "authorDatetime",
                              "scope": "ComfortMeasures",
                              "type": "Property"
                            }
                          ]
                        },
                        {
                          "locator": "189:95-189:107",
                          "lowClosed": true,
                          "highClosed": true,
                          "type": "Interval",
                          "low": {
                            "localId": "345",
                            "locator": "189:128-189:181",
                            "type": "Start",
                            "operand": {
                              "localId": "344",
                              "locator": "189:137-189:181",
                              "name": "Hospitalization",
                              "libraryName": "Global",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "343",
                                  "locator": "189:162-189:180",
                                  "name": "QualifyingEncounter",
                                  "type": "AliasRef"
                                }
                              ]
                            }
                          },
                          "high": {
                            "locator": "189:128-189:181",
                            "type": "Add",
                            "operand": [
                              {
                                "localId": "345",
                                "locator": "189:128-189:181",
                                "type": "Start",
                                "operand": {
                                  "localId": "344",
                                  "locator": "189:137-189:181",
                                  "name": "Hospitalization",
                                  "libraryName": "Global",
                                  "type": "FunctionRef",
                                  "operand": [
                                    {
                                      "localId": "343",
                                      "locator": "189:162-189:180",
                                      "name": "QualifyingEncounter",
                                      "type": "AliasRef"
                                    }
                                  ]
                                }
                              },
                              {
                                "localId": "346",
                                "locator": "189:95-189:99",
                                "value": 1,
                                "unit": "day",
                                "type": "Quantity"
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "379",
              "locator": "191:1-198:28",
              "name": "Intervention Comfort Measures on Day of or Day After Procedure",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "379",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Intervention Comfort Measures on Day of or Day After Procedure\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "378",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "352",
                                "s": [
                                  {
                                    "r": "351",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "354",
                                "s": [
                                  {
                                    "r": "353",
                                    "s": [
                                      {
                                        "r": "353",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Procedure, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"General or Neuraxial Anesthesia\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "AnesthesiaProcedure"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "356",
                                "s": [
                                  {
                                    "r": "355",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Intervention Comfort Measures\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "ComfortMeasures"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "375",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "375",
                                "s": [
                                  {
                                    "r": "363",
                                    "s": [
                                      {
                                        "r": "358",
                                        "s": [
                                          {
                                            "r": "357",
                                            "s": [
                                              {
                                                "value": [
                                                  "AnesthesiaProcedure"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "358",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "363",
                                        "s": [
                                          {
                                            "value": [
                                              "ends "
                                            ]
                                          },
                                          {
                                            "r": "362",
                                            "s": [
                                              {
                                                "value": [
                                                  "1 ",
                                                  "day"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " after day of"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "361",
                                        "s": [
                                          {
                                            "value": [
                                              "start of "
                                            ]
                                          },
                                          {
                                            "r": "360",
                                            "s": [
                                              {
                                                "r": "359",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "QualifyingEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "360",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "374",
                                    "s": [
                                      {
                                        "r": "369",
                                        "s": [
                                          {
                                            "value": [
                                              "Coalesce",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "366",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "365",
                                                "s": [
                                                  {
                                                    "r": "364",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "ComfortMeasures"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "365",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ", "
                                            ]
                                          },
                                          {
                                            "r": "368",
                                            "s": [
                                              {
                                                "r": "367",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "ComfortMeasures"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "368",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "authorDatetime"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "r": "374",
                                        "s": [
                                          {
                                            "r": "373",
                                            "s": [
                                              {
                                                "value": [
                                                  "1 ",
                                                  "day"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " or less on or after day of"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "372",
                                        "s": [
                                          {
                                            "value": [
                                              "end of "
                                            ]
                                          },
                                          {
                                            "r": "371",
                                            "s": [
                                              {
                                                "r": "370",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "AnesthesiaProcedure"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "371",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "377",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "376",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "378",
                "locator": "192:2-198:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "352",
                    "locator": "193:3-193:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "351",
                      "locator": "193:3-193:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "354",
                    "locator": "194:3-194:81",
                    "alias": "AnesthesiaProcedure",
                    "expression": {
                      "localId": "353",
                      "locator": "194:3-194:61",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                      "templateId": "PositiveProcedurePerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "General or Neuraxial Anesthesia",
                        "type": "ValueSetRef"
                      }
                    }
                  },
                  {
                    "localId": "356",
                    "locator": "195:3-195:49",
                    "alias": "ComfortMeasures",
                    "expression": {
                      "localId": "355",
                      "locator": "195:3-195:33",
                      "name": "Intervention Comfort Measures",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "375",
                  "locator": "196:3-197:162",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "363",
                      "locator": "196:9-196:110",
                      "precision": "Day",
                      "type": "SameAs",
                      "operand": [
                        {
                          "locator": "196:44-196:47",
                          "type": "End",
                          "operand": {
                            "localId": "358",
                            "locator": "196:9-196:42",
                            "path": "relevantPeriod",
                            "scope": "AnesthesiaProcedure",
                            "type": "Property"
                          }
                        },
                        {
                          "locator": "196:68-196:110",
                          "type": "Add",
                          "operand": [
                            {
                              "localId": "361",
                              "locator": "196:68-196:110",
                              "type": "Start",
                              "operand": {
                                "localId": "360",
                                "locator": "196:77-196:110",
                                "path": "relevantPeriod",
                                "scope": "QualifyingEncounter",
                                "type": "Property"
                              }
                            },
                            {
                              "localId": "362",
                              "locator": "196:49-196:53",
                              "value": 1,
                              "unit": "day",
                              "type": "Quantity"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "localId": "374",
                      "locator": "197:8-197:162",
                      "precision": "Day",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "369",
                          "locator": "197:8-197:88",
                          "type": "Coalesce",
                          "operand": [
                            {
                              "localId": "366",
                              "locator": "197:17-197:55",
                              "type": "Start",
                              "operand": {
                                "localId": "365",
                                "locator": "197:26-197:55",
                                "path": "relevantPeriod",
                                "scope": "ComfortMeasures",
                                "type": "Property"
                              }
                            },
                            {
                              "localId": "368",
                              "locator": "197:58-197:87",
                              "path": "authorDatetime",
                              "scope": "ComfortMeasures",
                              "type": "Property"
                            }
                          ]
                        },
                        {
                          "locator": "197:89-197:101",
                          "lowClosed": true,
                          "highClosed": true,
                          "type": "Interval",
                          "low": {
                            "localId": "372",
                            "locator": "197:122-197:162",
                            "type": "End",
                            "operand": {
                              "localId": "371",
                              "locator": "197:129-197:162",
                              "path": "relevantPeriod",
                              "scope": "AnesthesiaProcedure",
                              "type": "Property"
                            }
                          },
                          "high": {
                            "locator": "197:122-197:162",
                            "type": "Add",
                            "operand": [
                              {
                                "localId": "372",
                                "locator": "197:122-197:162",
                                "type": "End",
                                "operand": {
                                  "localId": "371",
                                  "locator": "197:129-197:162",
                                  "path": "relevantPeriod",
                                  "scope": "AnesthesiaProcedure",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "373",
                                "locator": "197:89-197:93",
                                "value": 1,
                                "unit": "day",
                                "type": "Quantity"
                              }
                            ]
                          }
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "377",
                  "locator": "198:3-198:28",
                  "expression": {
                    "localId": "376",
                    "locator": "198:10-198:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "399",
              "locator": "200:1-209:68",
              "name": "VTE Prophylaxis by Medication Administered or Device Applied",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "399",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"VTE Prophylaxis by Medication Administered or Device Applied\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "398",
                        "s": [
                          {
                            "r": "396",
                            "s": [
                              {
                                "r": "394",
                                "s": [
                                  {
                                    "r": "392",
                                    "s": [
                                      {
                                        "r": "390",
                                        "s": [
                                          {
                                            "r": "388",
                                            "s": [
                                              {
                                                "r": "386",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "( "
                                                    ]
                                                  },
                                                  {
                                                    "r": "386",
                                                    "s": [
                                                      {
                                                        "s": [
                                                          {
                                                            "r": "381",
                                                            "s": [
                                                              {
                                                                "r": "380",
                                                                "s": [
                                                                  {
                                                                    "r": "380",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "[",
                                                                          "\"Medication, Administered\"",
                                                                          ": "
                                                                        ]
                                                                      },
                                                                      {
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "\"Low Dose Unfractionated Heparin for VTE Prophylaxis\""
                                                                            ]
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "value": [
                                                                          "]"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  " ",
                                                                  "VTEMedication"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "\n\t\t\t"
                                                        ]
                                                      },
                                                      {
                                                        "r": "385",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "where "
                                                            ]
                                                          },
                                                          {
                                                            "r": "385",
                                                            "s": [
                                                              {
                                                                "r": "383",
                                                                "s": [
                                                                  {
                                                                    "r": "382",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "VTEMedication"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "value": [
                                                                      "."
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "383",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "route"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  " in "
                                                                ]
                                                              },
                                                              {
                                                                "r": "384",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "\"Subcutaneous route\""
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t)"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "\n\t\tunion "
                                                ]
                                              },
                                              {
                                                "r": "387",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Medication, Administered\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Low Molecular Weight Heparin for VTE Prophylaxis\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\tunion "
                                            ]
                                          },
                                          {
                                            "r": "389",
                                            "s": [
                                              {
                                                "value": [
                                                  "[",
                                                  "\"Medication, Administered\"",
                                                  ": "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Injectable Factor Xa Inhibitor for VTE Prophylaxis\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "]"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\tunion "
                                        ]
                                      },
                                      {
                                        "r": "391",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Medication, Administered\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Warfarin\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\tunion "
                                    ]
                                  },
                                  {
                                    "r": "393",
                                    "s": [
                                      {
                                        "value": [
                                          "[",
                                          "\"Device, Applied\"",
                                          ": "
                                        ]
                                      },
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Intermittent pneumatic compression devices (IPC)\""
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "]"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "395",
                                "s": [
                                  {
                                    "value": [
                                      "[",
                                      "\"Device, Applied\"",
                                      ": "
                                    ]
                                  },
                                  {
                                    "s": [
                                      {
                                        "value": [
                                          "\"Venous foot pumps (VFP)\""
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "]"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "397",
                            "s": [
                              {
                                "value": [
                                  "[",
                                  "\"Device, Applied\"",
                                  ": "
                                ]
                              },
                              {
                                "s": [
                                  {
                                    "value": [
                                      "\"Graduated compression stockings (GCS)\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "]"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "398",
                "locator": "201:2-209:68",
                "type": "Union",
                "operand": [
                  {
                    "locator": "201:2-208:54",
                    "type": "As",
                    "operand": {
                      "localId": "396",
                      "locator": "201:2-208:54",
                      "type": "Union",
                      "operand": [
                        {
                          "locator": "201:2-207:79",
                          "type": "As",
                          "operand": {
                            "localId": "394",
                            "locator": "201:2-207:79",
                            "type": "Union",
                            "operand": [
                              {
                                "locator": "201:2-206:48",
                                "type": "As",
                                "operand": {
                                  "localId": "392",
                                  "locator": "201:2-206:48",
                                  "type": "Union",
                                  "operand": [
                                    {
                                      "localId": "390",
                                      "locator": "201:2-205:90",
                                      "type": "Union",
                                      "operand": [
                                        {
                                          "localId": "388",
                                          "locator": "201:2-204:88",
                                          "type": "Union",
                                          "operand": [
                                            {
                                              "localId": "386",
                                              "locator": "201:2-203:2",
                                              "type": "Query",
                                              "source": [
                                                {
                                                  "localId": "381",
                                                  "locator": "201:4-201:100",
                                                  "alias": "VTEMedication",
                                                  "expression": {
                                                    "localId": "380",
                                                    "locator": "201:4-201:86",
                                                    "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                                    "templateId": "PositiveMedicationAdministered",
                                                    "codeProperty": "code",
                                                    "type": "Retrieve",
                                                    "codes": {
                                                      "name": "Low Dose Unfractionated Heparin for VTE Prophylaxis",
                                                      "type": "ValueSetRef"
                                                    }
                                                  }
                                                }
                                              ],
                                              "relationship": [

                                              ],
                                              "where": {
                                                "localId": "385",
                                                "locator": "202:4-202:52",
                                                "type": "InValueSet",
                                                "code": {
                                                  "localId": "383",
                                                  "locator": "202:10-202:28",
                                                  "path": "route",
                                                  "scope": "VTEMedication",
                                                  "type": "Property"
                                                },
                                                "valueset": {
                                                  "localId": "384",
                                                  "locator": "202:33-202:52",
                                                  "name": "Subcutaneous route"
                                                }
                                              }
                                            },
                                            {
                                              "localId": "387",
                                              "locator": "204:9-204:88",
                                              "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                              "templateId": "PositiveMedicationAdministered",
                                              "codeProperty": "code",
                                              "type": "Retrieve",
                                              "codes": {
                                                "name": "Low Molecular Weight Heparin for VTE Prophylaxis",
                                                "type": "ValueSetRef"
                                              }
                                            }
                                          ]
                                        },
                                        {
                                          "localId": "389",
                                          "locator": "205:9-205:90",
                                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                          "templateId": "PositiveMedicationAdministered",
                                          "codeProperty": "code",
                                          "type": "Retrieve",
                                          "codes": {
                                            "name": "Injectable Factor Xa Inhibitor for VTE Prophylaxis",
                                            "type": "ValueSetRef"
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "localId": "391",
                                      "locator": "206:9-206:48",
                                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                      "templateId": "PositiveMedicationAdministered",
                                      "codeProperty": "code",
                                      "type": "Retrieve",
                                      "codes": {
                                        "name": "Warfarin",
                                        "type": "ValueSetRef"
                                      }
                                    }
                                  ]
                                },
                                "asTypeSpecifier": {
                                  "type": "ListTypeSpecifier",
                                  "elementType": {
                                    "type": [
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}PositiveDeviceApplied",
                                        "type": "NamedTypeSpecifier"
                                      },
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                        "type": "NamedTypeSpecifier"
                                      }
                                    ]
                                  }
                                }
                              },
                              {
                                "locator": "207:9-207:79",
                                "type": "As",
                                "operand": {
                                  "localId": "393",
                                  "locator": "207:9-207:79",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveDeviceApplied",
                                  "templateId": "PositiveDeviceApplied",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Intermittent pneumatic compression devices (IPC)",
                                    "type": "ValueSetRef"
                                  }
                                },
                                "asTypeSpecifier": {
                                  "type": "ListTypeSpecifier",
                                  "elementType": {
                                    "type": [
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}PositiveDeviceApplied",
                                        "type": "NamedTypeSpecifier"
                                      },
                                      {
                                        "name": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                        "type": "NamedTypeSpecifier"
                                      }
                                    ]
                                  }
                                }
                              }
                            ]
                          },
                          "asTypeSpecifier": {
                            "type": "ListTypeSpecifier",
                            "elementType": {
                              "type": [
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}PositiveDeviceApplied",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                  "type": "NamedTypeSpecifier"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "locator": "208:9-208:54",
                          "type": "As",
                          "operand": {
                            "localId": "395",
                            "locator": "208:9-208:54",
                            "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveDeviceApplied",
                            "templateId": "PositiveDeviceApplied",
                            "codeProperty": "code",
                            "type": "Retrieve",
                            "codes": {
                              "name": "Venous foot pumps (VFP)",
                              "type": "ValueSetRef"
                            }
                          },
                          "asTypeSpecifier": {
                            "type": "ListTypeSpecifier",
                            "elementType": {
                              "type": [
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}PositiveDeviceApplied",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                  "type": "NamedTypeSpecifier"
                                }
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "asTypeSpecifier": {
                      "type": "ListTypeSpecifier",
                      "elementType": {
                        "type": [
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveDeviceApplied",
                            "type": "NamedTypeSpecifier"
                          },
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                            "type": "NamedTypeSpecifier"
                          }
                        ]
                      }
                    }
                  },
                  {
                    "locator": "209:9-209:68",
                    "type": "As",
                    "operand": {
                      "localId": "397",
                      "locator": "209:9-209:68",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveDeviceApplied",
                      "templateId": "PositiveDeviceApplied",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Graduated compression stockings (GCS)",
                        "type": "ValueSetRef"
                      }
                    },
                    "asTypeSpecifier": {
                      "type": "ListTypeSpecifier",
                      "elementType": {
                        "type": [
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveDeviceApplied",
                            "type": "NamedTypeSpecifier"
                          },
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                            "type": "NamedTypeSpecifier"
                          }
                        ]
                      }
                    }
                  }
                ]
              }
            },
            {
              "localId": "441",
              "locator": "211:1-225:3",
              "name": "VTE Prophylaxis Received on Day of or Day After Admission or Procedure",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "441",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"VTE Prophylaxis Received on Day of or Day After Admission or Procedure\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "440",
                        "s": [
                          {
                            "r": "414",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "414",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "value": [
                                          "from\n\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "401",
                                        "s": [
                                          {
                                            "r": "400",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "QualifyingEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ",\n\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "403",
                                        "s": [
                                          {
                                            "r": "402",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"VTE Prophylaxis by Medication Administered or Device Applied\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "HasVTEProphylaxis"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "411",
                                    "s": [
                                      {
                                        "value": [
                                          "where "
                                        ]
                                      },
                                      {
                                        "r": "411",
                                        "s": [
                                          {
                                            "r": "405",
                                            "s": [
                                              {
                                                "r": "404",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "HasVTEProphylaxis"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "405",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "starts during",
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "410",
                                            "s": [
                                              {
                                                "r": "406",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "VTEICU"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "410",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"CalendarDayOfOrDayAfter\"",
                                                      "("
                                                    ]
                                                  },
                                                  {
                                                    "r": "409",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "start of "
                                                        ]
                                                      },
                                                      {
                                                        "r": "408",
                                                        "s": [
                                                          {
                                                            "r": "407",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "QualifyingEncounter"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              "."
                                                            ]
                                                          },
                                                          {
                                                            "r": "408",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "relevantPeriod"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      ")"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "413",
                                    "s": [
                                      {
                                        "value": [
                                          "return "
                                        ]
                                      },
                                      {
                                        "r": "412",
                                        "s": [
                                          {
                                            "value": [
                                              "QualifyingEncounter"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t)"
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "439",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "439",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "value": [
                                          "from\n\t\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "416",
                                        "s": [
                                          {
                                            "r": "415",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "QualifyingEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ",\n\t\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "418",
                                        "s": [
                                          {
                                            "r": "417",
                                            "s": [
                                              {
                                                "r": "417",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Procedure, Performed\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"General or Neuraxial Anesthesia\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "AnesthesiaProcedure"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ",\n\t\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "420",
                                        "s": [
                                          {
                                            "r": "419",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"VTE Prophylaxis by Medication Administered or Device Applied\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "HasVTEProphylaxis"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "436",
                                    "s": [
                                      {
                                        "value": [
                                          "where "
                                        ]
                                      },
                                      {
                                        "r": "436",
                                        "s": [
                                          {
                                            "r": "427",
                                            "s": [
                                              {
                                                "r": "422",
                                                "s": [
                                                  {
                                                    "r": "421",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "AnesthesiaProcedure"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "422",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " "
                                                ]
                                              },
                                              {
                                                "r": "427",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "ends "
                                                    ]
                                                  },
                                                  {
                                                    "r": "426",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "1 ",
                                                          "day"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      " after day of"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " "
                                                ]
                                              },
                                              {
                                                "r": "425",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "start of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "424",
                                                    "s": [
                                                      {
                                                        "r": "423",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "QualifyingEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "424",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t\t\tand "
                                            ]
                                          },
                                          {
                                            "r": "435",
                                            "s": [
                                              {
                                                "r": "429",
                                                "s": [
                                                  {
                                                    "r": "428",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "HasVTEProphylaxis"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "429",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "starts during",
                                                  " "
                                                ]
                                              },
                                              {
                                                "r": "434",
                                                "s": [
                                                  {
                                                    "r": "430",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "VTEICU"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "434",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"CalendarDayOfOrDayAfter\"",
                                                          "("
                                                        ]
                                                      },
                                                      {
                                                        "r": "433",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "end of "
                                                            ]
                                                          },
                                                          {
                                                            "r": "432",
                                                            "s": [
                                                              {
                                                                "r": "431",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "AnesthesiaProcedure"
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  "."
                                                                ]
                                                              },
                                                              {
                                                                "r": "432",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "relevantPeriod"
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          ")"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "438",
                                    "s": [
                                      {
                                        "value": [
                                          "return "
                                        ]
                                      },
                                      {
                                        "r": "437",
                                        "s": [
                                          {
                                            "value": [
                                              "QualifyingEncounter"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "440",
                "locator": "212:2-225:3",
                "type": "Union",
                "operand": [
                  {
                    "localId": "414",
                    "locator": "212:2-217:2",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "401",
                        "locator": "213:4-213:101",
                        "alias": "QualifyingEncounter",
                        "expression": {
                          "localId": "400",
                          "locator": "213:4-213:81",
                          "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                          "type": "ExpressionRef"
                        }
                      },
                      {
                        "localId": "403",
                        "locator": "214:4-214:83",
                        "alias": "HasVTEProphylaxis",
                        "expression": {
                          "localId": "402",
                          "locator": "214:4-214:65",
                          "name": "VTE Prophylaxis by Medication Administered or Device Applied",
                          "type": "ExpressionRef"
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "411",
                      "locator": "215:4-215:133",
                      "type": "In",
                      "operand": [
                        {
                          "locator": "215:43-215:48",
                          "type": "Start",
                          "operand": {
                            "localId": "405",
                            "locator": "215:10-215:41",
                            "path": "relevantPeriod",
                            "scope": "HasVTEProphylaxis",
                            "type": "Property"
                          }
                        },
                        {
                          "localId": "410",
                          "locator": "215:57-215:133",
                          "name": "CalendarDayOfOrDayAfter",
                          "libraryName": "VTEICU",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "409",
                              "locator": "215:90-215:132",
                              "type": "Start",
                              "operand": {
                                "localId": "408",
                                "locator": "215:99-215:132",
                                "path": "relevantPeriod",
                                "scope": "QualifyingEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        }
                      ]
                    },
                    "return": {
                      "localId": "413",
                      "locator": "216:4-216:29",
                      "expression": {
                        "localId": "412",
                        "locator": "216:11-216:29",
                        "name": "QualifyingEncounter",
                        "type": "AliasRef"
                      }
                    }
                  },
                  {
                    "localId": "439",
                    "locator": "218:9-225:3",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "416",
                        "locator": "219:5-219:102",
                        "alias": "QualifyingEncounter",
                        "expression": {
                          "localId": "415",
                          "locator": "219:5-219:82",
                          "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                          "type": "ExpressionRef"
                        }
                      },
                      {
                        "localId": "418",
                        "locator": "220:5-220:83",
                        "alias": "AnesthesiaProcedure",
                        "expression": {
                          "localId": "417",
                          "locator": "220:5-220:63",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                          "templateId": "PositiveProcedurePerformed",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "General or Neuraxial Anesthesia",
                            "type": "ValueSetRef"
                          }
                        }
                      },
                      {
                        "localId": "420",
                        "locator": "221:5-221:84",
                        "alias": "HasVTEProphylaxis",
                        "expression": {
                          "localId": "419",
                          "locator": "221:5-221:66",
                          "name": "VTE Prophylaxis by Medication Administered or Device Applied",
                          "type": "ExpressionRef"
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "436",
                      "locator": "222:5-223:131",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "427",
                          "locator": "222:11-222:112",
                          "precision": "Day",
                          "type": "SameAs",
                          "operand": [
                            {
                              "locator": "222:46-222:49",
                              "type": "End",
                              "operand": {
                                "localId": "422",
                                "locator": "222:11-222:44",
                                "path": "relevantPeriod",
                                "scope": "AnesthesiaProcedure",
                                "type": "Property"
                              }
                            },
                            {
                              "locator": "222:70-222:112",
                              "type": "Add",
                              "operand": [
                                {
                                  "localId": "425",
                                  "locator": "222:70-222:112",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "424",
                                    "locator": "222:79-222:112",
                                    "path": "relevantPeriod",
                                    "scope": "QualifyingEncounter",
                                    "type": "Property"
                                  }
                                },
                                {
                                  "localId": "426",
                                  "locator": "222:51-222:55",
                                  "value": 1,
                                  "unit": "day",
                                  "type": "Quantity"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "localId": "435",
                          "locator": "223:10-223:131",
                          "type": "In",
                          "operand": [
                            {
                              "locator": "223:43-223:48",
                              "type": "Start",
                              "operand": {
                                "localId": "429",
                                "locator": "223:10-223:41",
                                "path": "relevantPeriod",
                                "scope": "HasVTEProphylaxis",
                                "type": "Property"
                              }
                            },
                            {
                              "localId": "434",
                              "locator": "223:57-223:131",
                              "name": "CalendarDayOfOrDayAfter",
                              "libraryName": "VTEICU",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "433",
                                  "locator": "223:90-223:130",
                                  "type": "End",
                                  "operand": {
                                    "localId": "432",
                                    "locator": "223:97-223:130",
                                    "path": "relevantPeriod",
                                    "scope": "AnesthesiaProcedure",
                                    "type": "Property"
                                  }
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    "return": {
                      "localId": "438",
                      "locator": "224:5-224:30",
                      "expression": {
                        "localId": "437",
                        "locator": "224:12-224:30",
                        "name": "QualifyingEncounter",
                        "type": "AliasRef"
                      }
                    }
                  }
                ]
              }
            },
            {
              "localId": "483",
              "locator": "227:1-241:3",
              "name": "Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "483",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "482",
                        "s": [
                          {
                            "r": "456",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "456",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "value": [
                                          "from\n\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "443",
                                        "s": [
                                          {
                                            "r": "442",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "QualifyingEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ",\n\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "445",
                                        "s": [
                                          {
                                            "r": "444",
                                            "s": [
                                              {
                                                "r": "444",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Medication, Administered\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "FactorXaMedication"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "453",
                                    "s": [
                                      {
                                        "value": [
                                          "where "
                                        ]
                                      },
                                      {
                                        "r": "453",
                                        "s": [
                                          {
                                            "r": "447",
                                            "s": [
                                              {
                                                "r": "446",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "FactorXaMedication"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "447",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "starts during",
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "452",
                                            "s": [
                                              {
                                                "r": "448",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "VTEICU"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "452",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"CalendarDayOfOrDayAfter\"",
                                                      "("
                                                    ]
                                                  },
                                                  {
                                                    "r": "451",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "start of "
                                                        ]
                                                      },
                                                      {
                                                        "r": "450",
                                                        "s": [
                                                          {
                                                            "r": "449",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "QualifyingEncounter"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              "."
                                                            ]
                                                          },
                                                          {
                                                            "r": "450",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "relevantPeriod"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      ")"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "455",
                                    "s": [
                                      {
                                        "value": [
                                          "return "
                                        ]
                                      },
                                      {
                                        "r": "454",
                                        "s": [
                                          {
                                            "value": [
                                              "QualifyingEncounter"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t)"
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "481",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "481",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "value": [
                                          "from\n\t\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "458",
                                        "s": [
                                          {
                                            "r": "457",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "QualifyingEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ",\n\t\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "460",
                                        "s": [
                                          {
                                            "r": "459",
                                            "s": [
                                              {
                                                "r": "459",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Procedure, Performed\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"General or Neuraxial Anesthesia\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "AnesthesiaProcedure"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ",\n\t\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "462",
                                        "s": [
                                          {
                                            "r": "461",
                                            "s": [
                                              {
                                                "r": "461",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Medication, Administered\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "FactorXaMedication"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "478",
                                    "s": [
                                      {
                                        "value": [
                                          "where "
                                        ]
                                      },
                                      {
                                        "r": "478",
                                        "s": [
                                          {
                                            "r": "469",
                                            "s": [
                                              {
                                                "r": "464",
                                                "s": [
                                                  {
                                                    "r": "463",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "AnesthesiaProcedure"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "464",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " "
                                                ]
                                              },
                                              {
                                                "r": "469",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "ends "
                                                    ]
                                                  },
                                                  {
                                                    "r": "468",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "1 ",
                                                          "day"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      " after day of"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " "
                                                ]
                                              },
                                              {
                                                "r": "467",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "start of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "466",
                                                    "s": [
                                                      {
                                                        "r": "465",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "QualifyingEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "466",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t\t\tand "
                                            ]
                                          },
                                          {
                                            "r": "477",
                                            "s": [
                                              {
                                                "r": "471",
                                                "s": [
                                                  {
                                                    "r": "470",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "FactorXaMedication"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "471",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "starts during",
                                                  " "
                                                ]
                                              },
                                              {
                                                "r": "476",
                                                "s": [
                                                  {
                                                    "r": "472",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "VTEICU"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "476",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"CalendarDayOfOrDayAfter\"",
                                                          "("
                                                        ]
                                                      },
                                                      {
                                                        "r": "475",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "end of "
                                                            ]
                                                          },
                                                          {
                                                            "r": "474",
                                                            "s": [
                                                              {
                                                                "r": "473",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "AnesthesiaProcedure"
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  "."
                                                                ]
                                                              },
                                                              {
                                                                "r": "474",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "relevantPeriod"
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          ")"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "480",
                                    "s": [
                                      {
                                        "value": [
                                          "return "
                                        ]
                                      },
                                      {
                                        "r": "479",
                                        "s": [
                                          {
                                            "value": [
                                              "QualifyingEncounter"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "482",
                "locator": "228:2-241:3",
                "type": "Union",
                "operand": [
                  {
                    "localId": "456",
                    "locator": "228:2-233:2",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "443",
                        "locator": "229:4-229:101",
                        "alias": "QualifyingEncounter",
                        "expression": {
                          "localId": "442",
                          "locator": "229:4-229:81",
                          "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                          "type": "ExpressionRef"
                        }
                      },
                      {
                        "localId": "445",
                        "locator": "230:4-230:115",
                        "alias": "FactorXaMedication",
                        "expression": {
                          "localId": "444",
                          "locator": "230:4-230:96",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                          "templateId": "PositiveMedicationAdministered",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment",
                            "type": "ValueSetRef"
                          }
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "453",
                      "locator": "231:4-231:134",
                      "type": "In",
                      "operand": [
                        {
                          "locator": "231:44-231:49",
                          "type": "Start",
                          "operand": {
                            "localId": "447",
                            "locator": "231:10-231:42",
                            "path": "relevantPeriod",
                            "scope": "FactorXaMedication",
                            "type": "Property"
                          }
                        },
                        {
                          "localId": "452",
                          "locator": "231:58-231:134",
                          "name": "CalendarDayOfOrDayAfter",
                          "libraryName": "VTEICU",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "451",
                              "locator": "231:91-231:133",
                              "type": "Start",
                              "operand": {
                                "localId": "450",
                                "locator": "231:100-231:133",
                                "path": "relevantPeriod",
                                "scope": "QualifyingEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        }
                      ]
                    },
                    "return": {
                      "localId": "455",
                      "locator": "232:4-232:29",
                      "expression": {
                        "localId": "454",
                        "locator": "232:11-232:29",
                        "name": "QualifyingEncounter",
                        "type": "AliasRef"
                      }
                    }
                  },
                  {
                    "localId": "481",
                    "locator": "234:9-241:3",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "458",
                        "locator": "235:5-235:102",
                        "alias": "QualifyingEncounter",
                        "expression": {
                          "localId": "457",
                          "locator": "235:5-235:82",
                          "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                          "type": "ExpressionRef"
                        }
                      },
                      {
                        "localId": "460",
                        "locator": "236:5-236:83",
                        "alias": "AnesthesiaProcedure",
                        "expression": {
                          "localId": "459",
                          "locator": "236:5-236:63",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                          "templateId": "PositiveProcedurePerformed",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "General or Neuraxial Anesthesia",
                            "type": "ValueSetRef"
                          }
                        }
                      },
                      {
                        "localId": "462",
                        "locator": "237:5-237:116",
                        "alias": "FactorXaMedication",
                        "expression": {
                          "localId": "461",
                          "locator": "237:5-237:97",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                          "templateId": "PositiveMedicationAdministered",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "Oral Factor Xa Inhibitor for VTE Prophylaxis or VTE Treatment",
                            "type": "ValueSetRef"
                          }
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "478",
                      "locator": "238:5-239:132",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "469",
                          "locator": "238:11-238:112",
                          "precision": "Day",
                          "type": "SameAs",
                          "operand": [
                            {
                              "locator": "238:46-238:49",
                              "type": "End",
                              "operand": {
                                "localId": "464",
                                "locator": "238:11-238:44",
                                "path": "relevantPeriod",
                                "scope": "AnesthesiaProcedure",
                                "type": "Property"
                              }
                            },
                            {
                              "locator": "238:70-238:112",
                              "type": "Add",
                              "operand": [
                                {
                                  "localId": "467",
                                  "locator": "238:70-238:112",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "466",
                                    "locator": "238:79-238:112",
                                    "path": "relevantPeriod",
                                    "scope": "QualifyingEncounter",
                                    "type": "Property"
                                  }
                                },
                                {
                                  "localId": "468",
                                  "locator": "238:51-238:55",
                                  "value": 1,
                                  "unit": "day",
                                  "type": "Quantity"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "localId": "477",
                          "locator": "239:10-239:132",
                          "type": "In",
                          "operand": [
                            {
                              "locator": "239:44-239:49",
                              "type": "Start",
                              "operand": {
                                "localId": "471",
                                "locator": "239:10-239:42",
                                "path": "relevantPeriod",
                                "scope": "FactorXaMedication",
                                "type": "Property"
                              }
                            },
                            {
                              "localId": "476",
                              "locator": "239:58-239:132",
                              "name": "CalendarDayOfOrDayAfter",
                              "libraryName": "VTEICU",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "475",
                                  "locator": "239:91-239:131",
                                  "type": "End",
                                  "operand": {
                                    "localId": "474",
                                    "locator": "239:98-239:131",
                                    "path": "relevantPeriod",
                                    "scope": "AnesthesiaProcedure",
                                    "type": "Property"
                                  }
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    "return": {
                      "localId": "480",
                      "locator": "240:5-240:30",
                      "expression": {
                        "localId": "479",
                        "locator": "240:12-240:30",
                        "name": "QualifyingEncounter",
                        "type": "AliasRef"
                      }
                    }
                  }
                ]
              }
            },
            {
              "localId": "520",
              "locator": "243:1-256:3",
              "name": "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "520",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "519",
                        "s": [
                          {
                            "r": "506",
                            "s": [
                              {
                                "r": "495",
                                "s": [
                                  {
                                    "value": [
                                      "( "
                                    ]
                                  },
                                  {
                                    "r": "495",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "r": "485",
                                            "s": [
                                              {
                                                "r": "484",
                                                "s": [
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "QualifyingEncounter"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "494",
                                        "s": [
                                          {
                                            "value": [
                                              "with "
                                            ]
                                          },
                                          {
                                            "r": "487",
                                            "s": [
                                              {
                                                "r": "486",
                                                "s": [
                                                  {
                                                    "r": "486",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Diagnosis\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Atrial Fibrillation/Flutter\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "AtrialFibrillation"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t\tsuch that "
                                            ]
                                          },
                                          {
                                            "r": "493",
                                            "s": [
                                              {
                                                "r": "489",
                                                "s": [
                                                  {
                                                    "r": "488",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "AtrialFibrillation"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "489",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "prevalencePeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "starts on or before",
                                                  " "
                                                ]
                                              },
                                              {
                                                "r": "492",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "end of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "491",
                                                    "s": [
                                                      {
                                                        "r": "490",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "QualifyingEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "491",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t)"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "505",
                                "s": [
                                  {
                                    "value": [
                                      "( "
                                    ]
                                  },
                                  {
                                    "r": "505",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "r": "497",
                                            "s": [
                                              {
                                                "r": "496",
                                                "s": [
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "QualifyingEncounter"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "504",
                                        "s": [
                                          {
                                            "value": [
                                              "where "
                                            ]
                                          },
                                          {
                                            "r": "504",
                                            "s": [
                                              {
                                                "value": [
                                                  "exists "
                                                ]
                                              },
                                              {
                                                "r": "503",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "( "
                                                    ]
                                                  },
                                                  {
                                                    "r": "503",
                                                    "s": [
                                                      {
                                                        "s": [
                                                          {
                                                            "r": "499",
                                                            "s": [
                                                              {
                                                                "r": "498",
                                                                "s": [
                                                                  {
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "QualifyingEncounter",
                                                                          ".",
                                                                          "diagnoses"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  " ",
                                                                  "EncounterDiagnosis"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "\n\t\t\t\t\t\t"
                                                        ]
                                                      },
                                                      {
                                                        "r": "502",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "where "
                                                            ]
                                                          },
                                                          {
                                                            "r": "502",
                                                            "s": [
                                                              {
                                                                "r": "500",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "EncounterDiagnosis"
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  " in "
                                                                ]
                                                              },
                                                              {
                                                                "r": "501",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "\"Atrial Fibrillation/Flutter\""
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t\t\t\t)"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t)"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "518",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "518",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "r": "508",
                                        "s": [
                                          {
                                            "r": "507",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "QualifyingEncounter"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "517",
                                    "s": [
                                      {
                                        "value": [
                                          "with "
                                        ]
                                      },
                                      {
                                        "r": "510",
                                        "s": [
                                          {
                                            "r": "509",
                                            "s": [
                                              {
                                                "r": "509",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Diagnosis\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Venous Thromboembolism\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "VTEDiagnosis"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t\t\tsuch that "
                                        ]
                                      },
                                      {
                                        "r": "516",
                                        "s": [
                                          {
                                            "r": "512",
                                            "s": [
                                              {
                                                "r": "511",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "VTEDiagnosis"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "512",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "prevalencePeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "starts before",
                                              " "
                                            ]
                                          },
                                          {
                                            "r": "515",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "514",
                                                "s": [
                                                  {
                                                    "r": "513",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "QualifyingEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "514",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "519",
                "locator": "244:2-256:3",
                "type": "Union",
                "operand": [
                  {
                    "localId": "506",
                    "locator": "244:2-252:3",
                    "type": "Union",
                    "operand": [
                      {
                        "localId": "495",
                        "locator": "244:2-247:2",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "485",
                            "locator": "244:4-244:101",
                            "alias": "QualifyingEncounter",
                            "expression": {
                              "localId": "484",
                              "locator": "244:4-244:81",
                              "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                              "type": "ExpressionRef"
                            }
                          }
                        ],
                        "relationship": [
                          {
                            "localId": "494",
                            "locator": "245:4-246:111",
                            "alias": "AtrialFibrillation",
                            "type": "With",
                            "expression": {
                              "localId": "486",
                              "locator": "245:9-245:52",
                              "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                              "codeProperty": "code",
                              "type": "Retrieve",
                              "codes": {
                                "name": "Atrial Fibrillation/Flutter",
                                "type": "ValueSetRef"
                              }
                            },
                            "suchThat": {
                              "localId": "493",
                              "locator": "246:15-246:111",
                              "type": "SameOrBefore",
                              "operand": [
                                {
                                  "locator": "246:51-246:56",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "489",
                                    "locator": "246:15-246:49",
                                    "path": "prevalencePeriod",
                                    "scope": "AtrialFibrillation",
                                    "type": "Property"
                                  }
                                },
                                {
                                  "localId": "492",
                                  "locator": "246:71-246:111",
                                  "type": "End",
                                  "operand": {
                                    "localId": "491",
                                    "locator": "246:78-246:111",
                                    "path": "relevantPeriod",
                                    "scope": "QualifyingEncounter",
                                    "type": "Property"
                                  }
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "localId": "505",
                        "locator": "248:9-252:3",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "497",
                            "locator": "248:11-248:108",
                            "alias": "QualifyingEncounter",
                            "expression": {
                              "localId": "496",
                              "locator": "248:11-248:88",
                              "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                              "type": "ExpressionRef"
                            }
                          }
                        ],
                        "relationship": [

                        ],
                        "where": {
                          "localId": "504",
                          "locator": "249:5-251:5",
                          "type": "Exists",
                          "operand": {
                            "localId": "503",
                            "locator": "249:18-251:5",
                            "type": "Query",
                            "source": [
                              {
                                "localId": "499",
                                "locator": "249:20-249:67",
                                "alias": "EncounterDiagnosis",
                                "expression": {
                                  "localId": "498",
                                  "locator": "249:20-249:48",
                                  "path": "diagnoses",
                                  "scope": "QualifyingEncounter",
                                  "type": "Property"
                                }
                              }
                            ],
                            "relationship": [

                            ],
                            "where": {
                              "localId": "502",
                              "locator": "250:7-250:63",
                              "type": "InValueSet",
                              "code": {
                                "localId": "500",
                                "locator": "250:13-250:30",
                                "name": "EncounterDiagnosis",
                                "type": "AliasRef"
                              },
                              "valueset": {
                                "localId": "501",
                                "locator": "250:35-250:63",
                                "name": "Atrial Fibrillation/Flutter"
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  {
                    "localId": "518",
                    "locator": "253:9-256:3",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "508",
                        "locator": "253:11-253:108",
                        "alias": "QualifyingEncounter",
                        "expression": {
                          "localId": "507",
                          "locator": "253:11-253:88",
                          "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                          "type": "ExpressionRef"
                        }
                      }
                    ],
                    "relationship": [
                      {
                        "localId": "517",
                        "locator": "254:5-255:102",
                        "alias": "VTEDiagnosis",
                        "type": "With",
                        "expression": {
                          "localId": "509",
                          "locator": "254:10-254:48",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "Venous Thromboembolism",
                            "type": "ValueSetRef"
                          }
                        },
                        "suchThat": {
                          "localId": "516",
                          "locator": "255:16-255:102",
                          "type": "Before",
                          "operand": [
                            {
                              "locator": "255:46-255:51",
                              "type": "Start",
                              "operand": {
                                "localId": "512",
                                "locator": "255:16-255:44",
                                "path": "prevalencePeriod",
                                "scope": "VTEDiagnosis",
                                "type": "Property"
                              }
                            },
                            {
                              "localId": "515",
                              "locator": "255:60-255:102",
                              "type": "Start",
                              "operand": {
                                "localId": "514",
                                "locator": "255:69-255:102",
                                "path": "relevantPeriod",
                                "scope": "QualifyingEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                ]
              }
            },
            {
              "localId": "548",
              "locator": "258:1-264:3",
              "name": "Encounter With ICU Location Stay 1 Day or More",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "548",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter With ICU Location Stay 1 Day or More\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "547",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "522",
                                "s": [
                                  {
                                    "r": "521",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "546",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "546",
                                "s": [
                                  {
                                    "value": [
                                      "exists "
                                    ]
                                  },
                                  {
                                    "r": "545",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "545",
                                        "s": [
                                          {
                                            "s": [
                                              {
                                                "r": "524",
                                                "s": [
                                                  {
                                                    "r": "523",
                                                    "s": [
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "QualifyingEncounter",
                                                              ".",
                                                              "facilityLocations"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      " ",
                                                      "Location"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t\t"
                                            ]
                                          },
                                          {
                                            "r": "544",
                                            "s": [
                                              {
                                                "value": [
                                                  "where "
                                                ]
                                              },
                                              {
                                                "r": "544",
                                                "s": [
                                                  {
                                                    "r": "535",
                                                    "s": [
                                                      {
                                                        "r": "528",
                                                        "s": [
                                                          {
                                                            "r": "526",
                                                            "s": [
                                                              {
                                                                "r": "525",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "Location"
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  "."
                                                                ]
                                                              },
                                                              {
                                                                "r": "526",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "code"
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              " in "
                                                            ]
                                                          },
                                                          {
                                                            "r": "527",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "\"Intensive Care Unit\""
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "\n\t\t\t\t\tand "
                                                        ]
                                                      },
                                                      {
                                                        "r": "534",
                                                        "s": [
                                                          {
                                                            "r": "532",
                                                            "s": [
                                                              {
                                                                "r": "529",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "Global"
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  "."
                                                                ]
                                                              },
                                                              {
                                                                "r": "532",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "\"LengthInDays\"",
                                                                      "("
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "531",
                                                                    "s": [
                                                                      {
                                                                        "r": "530",
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "Location"
                                                                            ]
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "value": [
                                                                          "."
                                                                        ]
                                                                      },
                                                                      {
                                                                        "r": "531",
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "locationPeriod"
                                                                            ]
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "value": [
                                                                      ")"
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              ">=",
                                                              " ",
                                                              "1"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t\t\t\t\tand "
                                                    ]
                                                  },
                                                  {
                                                    "r": "543",
                                                    "s": [
                                                      {
                                                        "r": "537",
                                                        "s": [
                                                          {
                                                            "r": "536",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "Location"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              "."
                                                            ]
                                                          },
                                                          {
                                                            "r": "537",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "locationPeriod"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          " ",
                                                          "starts during",
                                                          " "
                                                        ]
                                                      },
                                                      {
                                                        "r": "542",
                                                        "s": [
                                                          {
                                                            "r": "538",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "VTEICU"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              "."
                                                            ]
                                                          },
                                                          {
                                                            "r": "542",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "\"CalendarDayOfOrDayAfter\"",
                                                                  "("
                                                                ]
                                                              },
                                                              {
                                                                "r": "541",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "start of "
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "540",
                                                                    "s": [
                                                                      {
                                                                        "r": "539",
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "QualifyingEncounter"
                                                                            ]
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "value": [
                                                                          "."
                                                                        ]
                                                                      },
                                                                      {
                                                                        "r": "540",
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "relevantPeriod"
                                                                            ]
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  ")"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t)"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "547",
                "locator": "259:2-264:3",
                "type": "Query",
                "source": [
                  {
                    "localId": "522",
                    "locator": "259:2-259:99",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "521",
                      "locator": "259:2-259:79",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "546",
                  "locator": "260:3-264:3",
                  "type": "Exists",
                  "operand": {
                    "localId": "545",
                    "locator": "260:16-264:3",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "524",
                        "locator": "260:18-260:63",
                        "alias": "Location",
                        "expression": {
                          "localId": "523",
                          "locator": "260:18-260:54",
                          "path": "facilityLocations",
                          "scope": "QualifyingEncounter",
                          "type": "Property"
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "544",
                      "locator": "261:5-263:124",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "535",
                          "locator": "261:11-262:59",
                          "type": "And",
                          "operand": [
                            {
                              "localId": "528",
                              "locator": "261:11-261:48",
                              "type": "InValueSet",
                              "code": {
                                "localId": "526",
                                "locator": "261:11-261:23",
                                "path": "code",
                                "scope": "Location",
                                "type": "Property"
                              },
                              "valueset": {
                                "localId": "527",
                                "locator": "261:28-261:48",
                                "name": "Intensive Care Unit"
                              }
                            },
                            {
                              "localId": "534",
                              "locator": "262:10-262:59",
                              "type": "GreaterOrEqual",
                              "operand": [
                                {
                                  "localId": "532",
                                  "locator": "262:10-262:55",
                                  "name": "LengthInDays",
                                  "libraryName": "Global",
                                  "type": "FunctionRef",
                                  "operand": [
                                    {
                                      "localId": "531",
                                      "locator": "262:32-262:54",
                                      "path": "locationPeriod",
                                      "scope": "Location",
                                      "type": "Property"
                                    }
                                  ]
                                },
                                {
                                  "localId": "533",
                                  "locator": "262:59",
                                  "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                  "value": "1",
                                  "type": "Literal"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "localId": "543",
                          "locator": "263:10-263:124",
                          "type": "In",
                          "operand": [
                            {
                              "locator": "263:34-263:39",
                              "type": "Start",
                              "operand": {
                                "localId": "537",
                                "locator": "263:10-263:32",
                                "path": "locationPeriod",
                                "scope": "Location",
                                "type": "Property"
                              }
                            },
                            {
                              "localId": "542",
                              "locator": "263:48-263:124",
                              "name": "CalendarDayOfOrDayAfter",
                              "libraryName": "VTEICU",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "541",
                                  "locator": "263:81-263:123",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "540",
                                    "locator": "263:90-263:123",
                                    "path": "relevantPeriod",
                                    "scope": "QualifyingEncounter",
                                    "type": "Property"
                                  }
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            },
            {
              "localId": "566",
              "locator": "266:1-270:65",
              "name": "Encounter With Principal Diagnosis of Mental Disorder or Stroke",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "566",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter With Principal Diagnosis of Mental Disorder or Stroke\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "565",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "550",
                                "s": [
                                  {
                                    "r": "549",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "564",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "564",
                                "s": [
                                  {
                                    "r": "559",
                                    "s": [
                                      {
                                        "r": "554",
                                        "s": [
                                          {
                                            "r": "552",
                                            "s": [
                                              {
                                                "r": "551",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "QualifyingEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "552",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "principalDiagnosis"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " in "
                                            ]
                                          },
                                          {
                                            "r": "553",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Mental Health Diagnoses\""
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\tor "
                                        ]
                                      },
                                      {
                                        "r": "558",
                                        "s": [
                                          {
                                            "r": "556",
                                            "s": [
                                              {
                                                "r": "555",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "QualifyingEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "556",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "principalDiagnosis"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " in "
                                            ]
                                          },
                                          {
                                            "r": "557",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Hemorrhagic Stroke\""
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tor "
                                    ]
                                  },
                                  {
                                    "r": "563",
                                    "s": [
                                      {
                                        "r": "561",
                                        "s": [
                                          {
                                            "r": "560",
                                            "s": [
                                              {
                                                "value": [
                                                  "QualifyingEncounter"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "561",
                                            "s": [
                                              {
                                                "value": [
                                                  "principalDiagnosis"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " in "
                                        ]
                                      },
                                      {
                                        "r": "562",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Ischemic Stroke\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "565",
                "locator": "267:2-270:65",
                "type": "Query",
                "source": [
                  {
                    "localId": "550",
                    "locator": "267:2-267:99",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "549",
                      "locator": "267:2-267:79",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "564",
                  "locator": "268:3-270:65",
                  "type": "Or",
                  "operand": [
                    {
                      "localId": "559",
                      "locator": "268:9-269:68",
                      "type": "Or",
                      "operand": [
                        {
                          "localId": "554",
                          "locator": "268:9-268:75",
                          "type": "InValueSet",
                          "code": {
                            "localId": "552",
                            "locator": "268:9-268:46",
                            "path": "principalDiagnosis",
                            "scope": "QualifyingEncounter",
                            "type": "Property"
                          },
                          "valueset": {
                            "localId": "553",
                            "locator": "268:51-268:75",
                            "name": "Mental Health Diagnoses"
                          }
                        },
                        {
                          "localId": "558",
                          "locator": "269:7-269:68",
                          "type": "InValueSet",
                          "code": {
                            "localId": "556",
                            "locator": "269:7-269:44",
                            "path": "principalDiagnosis",
                            "scope": "QualifyingEncounter",
                            "type": "Property"
                          },
                          "valueset": {
                            "localId": "557",
                            "locator": "269:49-269:68",
                            "name": "Hemorrhagic Stroke"
                          }
                        }
                      ]
                    },
                    {
                      "localId": "563",
                      "locator": "270:7-270:65",
                      "type": "InValueSet",
                      "code": {
                        "localId": "561",
                        "locator": "270:7-270:44",
                        "path": "principalDiagnosis",
                        "scope": "QualifyingEncounter",
                        "type": "Property"
                      },
                      "valueset": {
                        "localId": "562",
                        "locator": "270:49-270:65",
                        "name": "Ischemic Stroke"
                      }
                    }
                  ]
                }
              }
            },
            {
              "localId": "584",
              "locator": "272:1-276:87",
              "name": "Encounter With Principal Procedure of SCIP VTE Selected Surgery",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "584",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter With Principal Procedure of SCIP VTE Selected Surgery\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "583",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "568",
                                "s": [
                                  {
                                    "r": "567",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "582",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "576",
                                "s": [
                                  {
                                    "r": "575",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "575",
                                        "s": [
                                          {
                                            "s": [
                                              {
                                                "r": "570",
                                                "s": [
                                                  {
                                                    "r": "569",
                                                    "s": [
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"SCIP VTE Selected Surgery\""
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      " ",
                                                      "Procedure"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t"
                                            ]
                                          },
                                          {
                                            "r": "574",
                                            "s": [
                                              {
                                                "value": [
                                                  "where "
                                                ]
                                              },
                                              {
                                                "r": "574",
                                                "s": [
                                                  {
                                                    "r": "572",
                                                    "s": [
                                                      {
                                                        "r": "571",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "Procedure"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "572",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "ordinality"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      " in "
                                                    ]
                                                  },
                                                  {
                                                    "r": "573",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Principal\""
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " )"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "SelectedProcedure"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "581",
                                "s": [
                                  {
                                    "r": "578",
                                    "s": [
                                      {
                                        "r": "577",
                                        "s": [
                                          {
                                            "value": [
                                              "SelectedProcedure"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "578",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "during",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "580",
                                    "s": [
                                      {
                                        "r": "579",
                                        "s": [
                                          {
                                            "value": [
                                              "QualifyingEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "580",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "583",
                "locator": "273:2-276:87",
                "type": "Query",
                "source": [
                  {
                    "localId": "568",
                    "locator": "273:2-273:99",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "567",
                      "locator": "273:2-273:79",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "582",
                    "locator": "274:3-276:87",
                    "alias": "SelectedProcedure",
                    "type": "With",
                    "expression": {
                      "localId": "575",
                      "locator": "274:8-275:46",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "570",
                          "locator": "274:10-274:46",
                          "alias": "Procedure",
                          "expression": {
                            "localId": "569",
                            "locator": "274:10-274:36",
                            "name": "SCIP VTE Selected Surgery",
                            "type": "ExpressionRef"
                          }
                        }
                      ],
                      "relationship": [

                      ],
                      "where": {
                        "localId": "574",
                        "locator": "275:4-275:44",
                        "type": "InValueSet",
                        "code": {
                          "localId": "572",
                          "locator": "275:10-275:29",
                          "path": "ordinality",
                          "scope": "Procedure",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "573",
                          "locator": "275:34-275:44",
                          "name": "Principal"
                        }
                      }
                    },
                    "suchThat": {
                      "localId": "581",
                      "locator": "276:14-276:87",
                      "type": "IncludedIn",
                      "operand": [
                        {
                          "localId": "578",
                          "locator": "276:14-276:45",
                          "path": "relevantPeriod",
                          "scope": "SelectedProcedure",
                          "type": "Property"
                        },
                        {
                          "localId": "580",
                          "locator": "276:54-276:87",
                          "path": "relevantPeriod",
                          "scope": "QualifyingEncounter",
                          "type": "Property"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "596",
              "locator": "278:1-284:72",
              "name": "Denominator Exclusions",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "596",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Denominator Exclusions\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "595",
                        "s": [
                          {
                            "r": "593",
                            "s": [
                              {
                                "r": "591",
                                "s": [
                                  {
                                    "r": "589",
                                    "s": [
                                      {
                                        "r": "587",
                                        "s": [
                                          {
                                            "r": "585",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Encounter Less Than 2 Days\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\tunion "
                                            ]
                                          },
                                          {
                                            "r": "586",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Encounter With ICU Location Stay 1 Day or More\""
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\tunion "
                                        ]
                                      },
                                      {
                                        "r": "588",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Principal Diagnosis of Mental Disorder or Stroke\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\tunion "
                                    ]
                                  },
                                  {
                                    "r": "590",
                                    "s": [
                                      {
                                        "value": [
                                          "\"Encounter With Principal Procedure of SCIP VTE Selected Surgery\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "592",
                                "s": [
                                  {
                                    "value": [
                                      "\"Intervention Comfort Measures on Day of or Day After Start of Hospitalization\""
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "594",
                            "s": [
                              {
                                "value": [
                                  "\"Intervention Comfort Measures on Day of or Day After Procedure\""
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "595",
                "locator": "279:2-284:72",
                "type": "Union",
                "operand": [
                  {
                    "localId": "593",
                    "locator": "279:2-283:87",
                    "type": "Union",
                    "operand": [
                      {
                        "localId": "591",
                        "locator": "279:2-282:73",
                        "type": "Union",
                        "operand": [
                          {
                            "localId": "589",
                            "locator": "279:2-281:73",
                            "type": "Union",
                            "operand": [
                              {
                                "localId": "587",
                                "locator": "279:2-280:56",
                                "type": "Union",
                                "operand": [
                                  {
                                    "localId": "585",
                                    "locator": "279:2-279:29",
                                    "name": "Encounter Less Than 2 Days",
                                    "type": "ExpressionRef"
                                  },
                                  {
                                    "localId": "586",
                                    "locator": "280:9-280:56",
                                    "name": "Encounter With ICU Location Stay 1 Day or More",
                                    "type": "ExpressionRef"
                                  }
                                ]
                              },
                              {
                                "localId": "588",
                                "locator": "281:9-281:73",
                                "name": "Encounter With Principal Diagnosis of Mental Disorder or Stroke",
                                "type": "ExpressionRef"
                              }
                            ]
                          },
                          {
                            "localId": "590",
                            "locator": "282:9-282:73",
                            "name": "Encounter With Principal Procedure of SCIP VTE Selected Surgery",
                            "type": "ExpressionRef"
                          }
                        ]
                      },
                      {
                        "localId": "592",
                        "locator": "283:9-283:87",
                        "name": "Intervention Comfort Measures on Day of or Day After Start of Hospitalization",
                        "type": "ExpressionRef"
                      }
                    ]
                  },
                  {
                    "localId": "594",
                    "locator": "284:9-284:72",
                    "name": "Intervention Comfort Measures on Day of or Day After Procedure",
                    "type": "ExpressionRef"
                  }
                ]
              }
            },
            {
              "localId": "611",
              "locator": "293:1-297:106",
              "name": "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "611",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "610",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "598",
                                "s": [
                                  {
                                    "r": "597",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "609",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "602",
                                "s": [
                                  {
                                    "r": "601",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "601",
                                        "s": [
                                          {
                                            "r": "599",
                                            "s": [
                                              {
                                                "value": [
                                                  "[",
                                                  "\"Procedure, Performed\"",
                                                  ": "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Hip Replacement Surgery\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "]"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\tunion "
                                            ]
                                          },
                                          {
                                            "r": "600",
                                            "s": [
                                              {
                                                "value": [
                                                  "[",
                                                  "\"Procedure, Performed\"",
                                                  ": "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Knee Replacement Surgery\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "]"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " )"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "HipKneeProcedure"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "608",
                                "s": [
                                  {
                                    "r": "604",
                                    "s": [
                                      {
                                        "r": "603",
                                        "s": [
                                          {
                                            "value": [
                                              "HipKneeProcedure"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "604",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "starts on or before",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "607",
                                    "s": [
                                      {
                                        "value": [
                                          "end of "
                                        ]
                                      },
                                      {
                                        "r": "606",
                                        "s": [
                                          {
                                            "r": "605",
                                            "s": [
                                              {
                                                "value": [
                                                  "QualifyingEncounter"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "606",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "610",
                "locator": "294:2-297:106",
                "type": "Query",
                "source": [
                  {
                    "localId": "598",
                    "locator": "294:2-294:99",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "597",
                      "locator": "294:2-294:79",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "609",
                    "locator": "295:3-297:106",
                    "alias": "HipKneeProcedure",
                    "type": "With",
                    "expression": {
                      "localId": "601",
                      "locator": "295:8-296:63",
                      "type": "Union",
                      "operand": [
                        {
                          "localId": "599",
                          "locator": "295:10-295:60",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                          "templateId": "PositiveProcedurePerformed",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "Hip Replacement Surgery",
                            "type": "ValueSetRef"
                          }
                        },
                        {
                          "localId": "600",
                          "locator": "296:10-296:61",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                          "templateId": "PositiveProcedurePerformed",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "Knee Replacement Surgery",
                            "type": "ValueSetRef"
                          }
                        }
                      ]
                    },
                    "suchThat": {
                      "localId": "608",
                      "locator": "297:14-297:106",
                      "type": "SameOrBefore",
                      "operand": [
                        {
                          "locator": "297:46-297:51",
                          "type": "Start",
                          "operand": {
                            "localId": "604",
                            "locator": "297:14-297:44",
                            "path": "relevantPeriod",
                            "scope": "HipKneeProcedure",
                            "type": "Property"
                          }
                        },
                        {
                          "localId": "607",
                          "locator": "297:66-297:106",
                          "type": "End",
                          "operand": {
                            "localId": "606",
                            "locator": "297:73-297:106",
                            "path": "relevantPeriod",
                            "scope": "QualifyingEncounter",
                            "type": "Property"
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "658",
              "locator": "361:1-375:3",
              "name": "Is In Low Risk for VTE or On Anticoagulant",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "658",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Is In Low Risk for VTE or On Anticoagulant\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "657",
                        "s": [
                          {
                            "r": "636",
                            "s": [
                              {
                                "r": "622",
                                "s": [
                                  {
                                    "value": [
                                      "( "
                                    ]
                                  },
                                  {
                                    "r": "622",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "r": "617",
                                            "s": [
                                              {
                                                "r": "616",
                                                "s": [
                                                  {
                                                    "r": "616",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Assessment, Performed\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Risk for venous thromboembolism\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "VTERiskAssessment"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "621",
                                        "s": [
                                          {
                                            "value": [
                                              "where "
                                            ]
                                          },
                                          {
                                            "r": "621",
                                            "s": [
                                              {
                                                "r": "619",
                                                "s": [
                                                  {
                                                    "r": "618",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "VTERiskAssessment"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "619",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "result"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " in "
                                                ]
                                              },
                                              {
                                                "r": "620",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Low Risk\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t)"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "635",
                                "s": [
                                  {
                                    "value": [
                                      "( "
                                    ]
                                  },
                                  {
                                    "r": "635",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "r": "624",
                                            "s": [
                                              {
                                                "r": "623",
                                                "s": [
                                                  {
                                                    "r": "623",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Laboratory Test, Performed\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"INR\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "INRLabTest"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "628",
                                        "s": [
                                          {
                                            "value": [
                                              "where "
                                            ]
                                          },
                                          {
                                            "r": "628",
                                            "s": [
                                              {
                                                "r": "626",
                                                "s": [
                                                  {
                                                    "r": "625",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "INRLabTest"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "626",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "result"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  ">",
                                                  " ",
                                                  "3.0"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "634",
                                        "s": [
                                          {
                                            "value": [
                                              "return "
                                            ]
                                          },
                                          {
                                            "r": "633",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Assessment, Performed\"",
                                                  " { "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "id",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "r": "630",
                                                    "s": [
                                                      {
                                                        "r": "629",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "INRLabTest"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "630",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "id"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ", "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "authorDatetime",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "r": "632",
                                                    "s": [
                                                      {
                                                        "r": "631",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "INRLabTest"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "632",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "resultDatetime"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " }"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t)"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "656",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "656",
                                "s": [
                                  {
                                    "r": "645",
                                    "s": [
                                      {
                                        "r": "643",
                                        "s": [
                                          {
                                            "value": [
                                              "( "
                                            ]
                                          },
                                          {
                                            "r": "643",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "r": "638",
                                                    "s": [
                                                      {
                                                        "r": "637",
                                                        "s": [
                                                          {
                                                            "r": "637",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "[",
                                                                  "\"Medication, Administered\"",
                                                                  ": "
                                                                ]
                                                              },
                                                              {
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "\"Unfractionated Heparin\""
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  "]"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          " ",
                                                          "UnfractionatedHeparin"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "\n\t\t\t\t\t"
                                                ]
                                              },
                                              {
                                                "r": "642",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "where "
                                                    ]
                                                  },
                                                  {
                                                    "r": "642",
                                                    "s": [
                                                      {
                                                        "r": "640",
                                                        "s": [
                                                          {
                                                            "r": "639",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "UnfractionatedHeparin"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              "."
                                                            ]
                                                          },
                                                          {
                                                            "r": "640",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "route"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          " in "
                                                        ]
                                                      },
                                                      {
                                                        "r": "641",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Intravenous route\""
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t)"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t\tunion "
                                        ]
                                      },
                                      {
                                        "r": "644",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Medication, Administered\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Direct Thrombin Inhibitor\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\tunion "
                                    ]
                                  },
                                  {
                                    "r": "655",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "r": "647",
                                            "s": [
                                              {
                                                "r": "646",
                                                "s": [
                                                  {
                                                    "r": "646",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Medication, Administered\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Glycoprotein IIb/IIIa Inhibitors\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "AnticoagulantMedication"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t\t\t"
                                        ]
                                      },
                                      {
                                        "r": "654",
                                        "s": [
                                          {
                                            "value": [
                                              "return "
                                            ]
                                          },
                                          {
                                            "r": "653",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Assessment, Performed\"",
                                                  " { "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "id",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "r": "649",
                                                    "s": [
                                                      {
                                                        "r": "648",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "AnticoagulantMedication"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "649",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "id"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ", "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "authorDatetime",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "r": "652",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "start of "
                                                        ]
                                                      },
                                                      {
                                                        "r": "651",
                                                        "s": [
                                                          {
                                                            "r": "650",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "AnticoagulantMedication"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              "."
                                                            ]
                                                          },
                                                          {
                                                            "r": "651",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "relevantPeriod"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " }"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "657",
                "locator": "362:2-375:3",
                "type": "Union",
                "operand": [
                  {
                    "locator": "362:2-368:3",
                    "type": "As",
                    "operand": {
                      "localId": "636",
                      "locator": "362:2-368:3",
                      "type": "Union",
                      "operand": [
                        {
                          "localId": "622",
                          "locator": "362:2-364:2",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "617",
                              "locator": "362:4-362:81",
                              "alias": "VTERiskAssessment",
                              "expression": {
                                "localId": "616",
                                "locator": "362:4-362:63",
                                "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                                "templateId": "PositiveAssessmentPerformed",
                                "codeProperty": "code",
                                "type": "Retrieve",
                                "codes": {
                                  "type": "ToList",
                                  "operand": {
                                    "name": "Risk for venous thromboembolism",
                                    "type": "CodeRef"
                                  }
                                }
                              }
                            }
                          ],
                          "relationship": [

                          ],
                          "where": {
                            "localId": "621",
                            "locator": "363:4-363:47",
                            "type": "InValueSet",
                            "code": {
                              "asType": "{urn:hl7-org:elm-types:r1}Code",
                              "type": "As",
                              "operand": {
                                "localId": "619",
                                "locator": "363:10-363:33",
                                "path": "result",
                                "scope": "VTERiskAssessment",
                                "type": "Property"
                              },
                              "asTypeSpecifier": {
                                "name": "{urn:hl7-org:elm-types:r1}Code",
                                "type": "NamedTypeSpecifier"
                              }
                            },
                            "valueset": {
                              "localId": "620",
                              "locator": "363:38-363:47",
                              "name": "Low Risk"
                            }
                          }
                        },
                        {
                          "localId": "635",
                          "locator": "365:9-368:3",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "624",
                              "locator": "365:11-365:58",
                              "alias": "INRLabTest",
                              "expression": {
                                "localId": "623",
                                "locator": "365:11-365:47",
                                "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveLaboratoryTestPerformed",
                                "templateId": "PositiveLaboratoryTestPerformed",
                                "codeProperty": "code",
                                "type": "Retrieve",
                                "codes": {
                                  "name": "INR",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [

                          ],
                          "where": {
                            "localId": "628",
                            "locator": "366:5-366:33",
                            "type": "Greater",
                            "operand": [
                              {
                                "asType": "{urn:hl7-org:elm-types:r1}Decimal",
                                "type": "As",
                                "operand": {
                                  "localId": "626",
                                  "locator": "366:11-366:27",
                                  "path": "result",
                                  "scope": "INRLabTest",
                                  "type": "Property"
                                },
                                "asTypeSpecifier": {
                                  "name": "{urn:hl7-org:elm-types:r1}Decimal",
                                  "type": "NamedTypeSpecifier"
                                }
                              },
                              {
                                "localId": "627",
                                "locator": "366:31-366:33",
                                "valueType": "{urn:hl7-org:elm-types:r1}Decimal",
                                "value": "3.0",
                                "type": "Literal"
                              }
                            ]
                          },
                          "return": {
                            "localId": "634",
                            "locator": "367:5-367:99",
                            "expression": {
                              "localId": "633",
                              "locator": "367:12-367:99",
                              "classType": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                              "type": "Instance",
                              "element": [
                                {
                                  "name": "id",
                                  "value": {
                                    "localId": "630",
                                    "locator": "367:42-367:54",
                                    "path": "id",
                                    "scope": "INRLabTest",
                                    "type": "Property"
                                  }
                                },
                                {
                                  "name": "authorDatetime",
                                  "value": {
                                    "localId": "632",
                                    "locator": "367:73-367:97",
                                    "path": "resultDatetime",
                                    "scope": "INRLabTest",
                                    "type": "Property"
                                  }
                                }
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "asTypeSpecifier": {
                      "type": "ListTypeSpecifier",
                      "elementType": {
                        "type": [
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                            "type": "NamedTypeSpecifier"
                          },
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                            "type": "NamedTypeSpecifier"
                          }
                        ]
                      }
                    }
                  },
                  {
                    "locator": "369:9-375:3",
                    "type": "As",
                    "operand": {
                      "localId": "656",
                      "locator": "369:9-375:3",
                      "type": "Union",
                      "operand": [
                        {
                          "locator": "369:11-372:67",
                          "type": "As",
                          "operand": {
                            "localId": "645",
                            "locator": "369:11-372:67",
                            "type": "Union",
                            "operand": [
                              {
                                "localId": "643",
                                "locator": "369:11-371:4",
                                "type": "Query",
                                "source": [
                                  {
                                    "localId": "638",
                                    "locator": "369:13-369:88",
                                    "alias": "UnfractionatedHeparin",
                                    "expression": {
                                      "localId": "637",
                                      "locator": "369:13-369:66",
                                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                      "templateId": "PositiveMedicationAdministered",
                                      "codeProperty": "code",
                                      "type": "Retrieve",
                                      "codes": {
                                        "name": "Unfractionated Heparin",
                                        "type": "ValueSetRef"
                                      }
                                    }
                                  }
                                ],
                                "relationship": [

                                ],
                                "where": {
                                  "localId": "642",
                                  "locator": "370:6-370:61",
                                  "type": "InValueSet",
                                  "code": {
                                    "localId": "640",
                                    "locator": "370:12-370:38",
                                    "path": "route",
                                    "scope": "UnfractionatedHeparin",
                                    "type": "Property"
                                  },
                                  "valueset": {
                                    "localId": "641",
                                    "locator": "370:43-370:61",
                                    "name": "Intravenous route"
                                  }
                                }
                              },
                              {
                                "localId": "644",
                                "locator": "372:11-372:67",
                                "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                "templateId": "PositiveMedicationAdministered",
                                "codeProperty": "code",
                                "type": "Retrieve",
                                "codes": {
                                  "name": "Direct Thrombin Inhibitor",
                                  "type": "ValueSetRef"
                                }
                              }
                            ]
                          },
                          "asTypeSpecifier": {
                            "type": "ListTypeSpecifier",
                            "elementType": {
                              "type": [
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                  "type": "NamedTypeSpecifier"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "locator": "373:11-374:135",
                          "type": "As",
                          "operand": {
                            "localId": "655",
                            "locator": "373:11-374:135",
                            "type": "Query",
                            "source": [
                              {
                                "localId": "647",
                                "locator": "373:11-373:98",
                                "alias": "AnticoagulantMedication",
                                "expression": {
                                  "localId": "646",
                                  "locator": "373:11-373:74",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                  "templateId": "PositiveMedicationAdministered",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Glycoprotein IIb/IIIa Inhibitors",
                                    "type": "ValueSetRef"
                                  }
                                }
                              }
                            ],
                            "relationship": [

                            ],
                            "return": {
                              "localId": "654",
                              "locator": "374:6-374:135",
                              "expression": {
                                "localId": "653",
                                "locator": "374:13-374:135",
                                "classType": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                                "type": "Instance",
                                "element": [
                                  {
                                    "name": "id",
                                    "value": {
                                      "localId": "649",
                                      "locator": "374:43-374:68",
                                      "path": "id",
                                      "scope": "AnticoagulantMedication",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "name": "authorDatetime",
                                    "value": {
                                      "localId": "652",
                                      "locator": "374:87-374:133",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "651",
                                        "locator": "374:96-374:133",
                                        "path": "relevantPeriod",
                                        "scope": "AnticoagulantMedication",
                                        "type": "Property"
                                      }
                                    }
                                  }
                                ]
                              }
                            }
                          },
                          "asTypeSpecifier": {
                            "type": "ListTypeSpecifier",
                            "elementType": {
                              "type": [
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                                  "type": "NamedTypeSpecifier"
                                }
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "asTypeSpecifier": {
                      "type": "ListTypeSpecifier",
                      "elementType": {
                        "type": [
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                            "type": "NamedTypeSpecifier"
                          },
                          {
                            "name": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationAdministered",
                            "type": "NamedTypeSpecifier"
                          }
                        ]
                      }
                    }
                  }
                ]
              }
            },
            {
              "localId": "677",
              "locator": "377:1-384:28",
              "name": "Low Risk for VTE or Anticoagulant Administered During ED Visit",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "677",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Low Risk for VTE or Anticoagulant Administered During ED Visit\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "676",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "613",
                                "s": [
                                  {
                                    "r": "612",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "615",
                                "s": [
                                  {
                                    "r": "614",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"ED Visit\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "EDVisit"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "660",
                                "s": [
                                  {
                                    "r": "659",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Is In Low Risk for VTE or On Anticoagulant\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "VTERiskAssessment"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "673",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "673",
                                "s": [
                                  {
                                    "r": "667",
                                    "s": [
                                      {
                                        "r": "662",
                                        "s": [
                                          {
                                            "r": "661",
                                            "s": [
                                              {
                                                "value": [
                                                  "EDVisit"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "662",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "667",
                                        "s": [
                                          {
                                            "value": [
                                              "ends "
                                            ]
                                          },
                                          {
                                            "r": "666",
                                            "s": [
                                              {
                                                "value": [
                                                  "1 ",
                                                  "hour"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " or less on or before"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "665",
                                        "s": [
                                          {
                                            "value": [
                                              "start of "
                                            ]
                                          },
                                          {
                                            "r": "664",
                                            "s": [
                                              {
                                                "r": "663",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "QualifyingEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "664",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "672",
                                    "s": [
                                      {
                                        "r": "669",
                                        "s": [
                                          {
                                            "r": "668",
                                            "s": [
                                              {
                                                "value": [
                                                  "VTERiskAssessment"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "669",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "671",
                                        "s": [
                                          {
                                            "r": "670",
                                            "s": [
                                              {
                                                "value": [
                                                  "EDVisit"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "671",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "675",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "674",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "676",
                "locator": "378:2-384:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "613",
                    "locator": "379:3-379:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "612",
                      "locator": "379:3-379:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "615",
                    "locator": "380:3-380:20",
                    "alias": "EDVisit",
                    "expression": {
                      "localId": "614",
                      "locator": "380:3-380:12",
                      "name": "ED Visit",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "660",
                    "locator": "381:3-381:64",
                    "alias": "VTERiskAssessment",
                    "expression": {
                      "localId": "659",
                      "locator": "381:3-381:46",
                      "name": "Is In Low Risk for VTE or On Anticoagulant",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "673",
                  "locator": "382:3-383:69",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "667",
                      "locator": "382:9-382:107",
                      "type": "In",
                      "operand": [
                        {
                          "locator": "382:32-382:35",
                          "type": "End",
                          "operand": {
                            "localId": "662",
                            "locator": "382:9-382:30",
                            "path": "relevantPeriod",
                            "scope": "EDVisit",
                            "type": "Property"
                          }
                        },
                        {
                          "locator": "382:37-382:50",
                          "lowClosed": true,
                          "highClosed": true,
                          "type": "Interval",
                          "low": {
                            "locator": "382:65-382:107",
                            "type": "Subtract",
                            "operand": [
                              {
                                "localId": "665",
                                "locator": "382:65-382:107",
                                "type": "Start",
                                "operand": {
                                  "localId": "664",
                                  "locator": "382:74-382:107",
                                  "path": "relevantPeriod",
                                  "scope": "QualifyingEncounter",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "666",
                                "locator": "382:37-382:42",
                                "value": 1,
                                "unit": "hour",
                                "type": "Quantity"
                              }
                            ]
                          },
                          "high": {
                            "localId": "665",
                            "locator": "382:65-382:107",
                            "type": "Start",
                            "operand": {
                              "localId": "664",
                              "locator": "382:74-382:107",
                              "path": "relevantPeriod",
                              "scope": "QualifyingEncounter",
                              "type": "Property"
                            }
                          }
                        }
                      ]
                    },
                    {
                      "localId": "672",
                      "locator": "383:8-383:69",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "669",
                          "locator": "383:8-383:39",
                          "path": "authorDatetime",
                          "scope": "VTERiskAssessment",
                          "type": "Property"
                        },
                        {
                          "localId": "671",
                          "locator": "383:48-383:69",
                          "path": "relevantPeriod",
                          "scope": "EDVisit",
                          "type": "Property"
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "675",
                  "locator": "384:3-384:28",
                  "expression": {
                    "localId": "674",
                    "locator": "384:10-384:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "693",
              "locator": "386:1-389:130",
              "name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Admission",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "693",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Admission\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "692",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "680",
                                "s": [
                                  {
                                    "r": "679",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "691",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "682",
                                "s": [
                                  {
                                    "r": "681",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Is In Low Risk for VTE or On Anticoagulant\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "VTERiskAssessment"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "690",
                                "s": [
                                  {
                                    "r": "684",
                                    "s": [
                                      {
                                        "r": "683",
                                        "s": [
                                          {
                                            "value": [
                                              "VTERiskAssessment"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "684",
                                        "s": [
                                          {
                                            "value": [
                                              "authorDatetime"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "during",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "689",
                                    "s": [
                                      {
                                        "r": "685",
                                        "s": [
                                          {
                                            "value": [
                                              "VTEICU"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "689",
                                        "s": [
                                          {
                                            "value": [
                                              "\"CalendarDayOfOrDayAfter\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "688",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "687",
                                                "s": [
                                                  {
                                                    "r": "686",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "QualifyingEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "687",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "692",
                "locator": "387:2-389:130",
                "type": "Query",
                "source": [
                  {
                    "localId": "680",
                    "locator": "387:2-387:99",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "679",
                      "locator": "387:2-387:79",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "691",
                    "locator": "388:3-389:130",
                    "alias": "VTERiskAssessment",
                    "type": "With",
                    "expression": {
                      "localId": "681",
                      "locator": "388:8-388:51",
                      "name": "Is In Low Risk for VTE or On Anticoagulant",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "690",
                      "locator": "389:14-389:130",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "684",
                          "locator": "389:14-389:45",
                          "path": "authorDatetime",
                          "scope": "VTERiskAssessment",
                          "type": "Property"
                        },
                        {
                          "localId": "689",
                          "locator": "389:54-389:130",
                          "name": "CalendarDayOfOrDayAfter",
                          "libraryName": "VTEICU",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "688",
                              "locator": "389:87-389:129",
                              "type": "Start",
                              "operand": {
                                "localId": "687",
                                "locator": "389:96-389:129",
                                "path": "relevantPeriod",
                                "scope": "QualifyingEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "721",
              "locator": "391:1-398:28",
              "name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "721",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "720",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "697",
                                "s": [
                                  {
                                    "r": "696",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "699",
                                "s": [
                                  {
                                    "r": "698",
                                    "s": [
                                      {
                                        "r": "698",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Procedure, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"General or Neuraxial Anesthesia\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "AnesthesiaProcedure"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "701",
                                "s": [
                                  {
                                    "r": "700",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Is In Low Risk for VTE or On Anticoagulant\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "VTERiskAssessment"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "717",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "717",
                                "s": [
                                  {
                                    "r": "708",
                                    "s": [
                                      {
                                        "r": "703",
                                        "s": [
                                          {
                                            "r": "702",
                                            "s": [
                                              {
                                                "value": [
                                                  "AnesthesiaProcedure"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "703",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "708",
                                        "s": [
                                          {
                                            "value": [
                                              "ends "
                                            ]
                                          },
                                          {
                                            "r": "707",
                                            "s": [
                                              {
                                                "value": [
                                                  "1 ",
                                                  "day"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " after day of"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "706",
                                        "s": [
                                          {
                                            "value": [
                                              "start of "
                                            ]
                                          },
                                          {
                                            "r": "705",
                                            "s": [
                                              {
                                                "r": "704",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "QualifyingEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "705",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "716",
                                    "s": [
                                      {
                                        "r": "710",
                                        "s": [
                                          {
                                            "r": "709",
                                            "s": [
                                              {
                                                "value": [
                                                  "VTERiskAssessment"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "710",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "715",
                                        "s": [
                                          {
                                            "r": "711",
                                            "s": [
                                              {
                                                "value": [
                                                  "VTEICU"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "715",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarDayOfOrDayAfter\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "714",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "end of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "713",
                                                    "s": [
                                                      {
                                                        "r": "712",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "AnesthesiaProcedure"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "713",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "719",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "718",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "720",
                "locator": "392:2-398:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "697",
                    "locator": "393:3-393:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "696",
                      "locator": "393:3-393:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "699",
                    "locator": "394:3-394:81",
                    "alias": "AnesthesiaProcedure",
                    "expression": {
                      "localId": "698",
                      "locator": "394:3-394:61",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                      "templateId": "PositiveProcedurePerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "General or Neuraxial Anesthesia",
                        "type": "ValueSetRef"
                      }
                    }
                  },
                  {
                    "localId": "701",
                    "locator": "395:3-395:64",
                    "alias": "VTERiskAssessment",
                    "expression": {
                      "localId": "700",
                      "locator": "395:3-395:46",
                      "name": "Is In Low Risk for VTE or On Anticoagulant",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "717",
                  "locator": "396:3-397:122",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "708",
                      "locator": "396:9-396:110",
                      "precision": "Day",
                      "type": "SameAs",
                      "operand": [
                        {
                          "locator": "396:44-396:47",
                          "type": "End",
                          "operand": {
                            "localId": "703",
                            "locator": "396:9-396:42",
                            "path": "relevantPeriod",
                            "scope": "AnesthesiaProcedure",
                            "type": "Property"
                          }
                        },
                        {
                          "locator": "396:68-396:110",
                          "type": "Add",
                          "operand": [
                            {
                              "localId": "706",
                              "locator": "396:68-396:110",
                              "type": "Start",
                              "operand": {
                                "localId": "705",
                                "locator": "396:77-396:110",
                                "path": "relevantPeriod",
                                "scope": "QualifyingEncounter",
                                "type": "Property"
                              }
                            },
                            {
                              "localId": "707",
                              "locator": "396:49-396:53",
                              "value": 1,
                              "unit": "day",
                              "type": "Quantity"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "localId": "716",
                      "locator": "397:8-397:122",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "710",
                          "locator": "397:8-397:39",
                          "path": "authorDatetime",
                          "scope": "VTERiskAssessment",
                          "type": "Property"
                        },
                        {
                          "localId": "715",
                          "locator": "397:48-397:122",
                          "name": "CalendarDayOfOrDayAfter",
                          "libraryName": "VTEICU",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "714",
                              "locator": "397:81-397:121",
                              "type": "End",
                              "operand": {
                                "localId": "713",
                                "locator": "397:88-397:121",
                                "path": "relevantPeriod",
                                "scope": "AnesthesiaProcedure",
                                "type": "Property"
                              }
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "719",
                  "locator": "398:3-398:28",
                  "expression": {
                    "localId": "718",
                    "locator": "398:10-398:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "724",
              "locator": "299:1-302:89",
              "name": "Low Risk for VTE or Anticoagulant Administered",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "724",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Low Risk for VTE or Anticoagulant Administered\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "723",
                        "s": [
                          {
                            "r": "695",
                            "s": [
                              {
                                "r": "678",
                                "s": [
                                  {
                                    "value": [
                                      "\"Low Risk for VTE or Anticoagulant Administered During ED Visit\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "694",
                                "s": [
                                  {
                                    "value": [
                                      "\"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Admission\""
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "722",
                            "s": [
                              {
                                "value": [
                                  "\"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure\""
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "723",
                "locator": "300:2-302:89",
                "type": "Union",
                "operand": [
                  {
                    "localId": "695",
                    "locator": "300:2-301:89",
                    "type": "Union",
                    "operand": [
                      {
                        "localId": "678",
                        "locator": "300:2-300:65",
                        "name": "Low Risk for VTE or Anticoagulant Administered During ED Visit",
                        "type": "ExpressionRef"
                      },
                      {
                        "localId": "694",
                        "locator": "301:9-301:89",
                        "name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Admission",
                        "type": "ExpressionRef"
                      }
                    ]
                  },
                  {
                    "localId": "722",
                    "locator": "302:9-302:89",
                    "name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure",
                    "type": "ExpressionRef"
                  }
                ]
              }
            },
            {
              "localId": "736",
              "locator": "304:1-313:3",
              "name": "No VTE Prophylaxis Due to Medical Reason",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "736",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Due to Medical Reason\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "735",
                        "s": [
                          {
                            "r": "731",
                            "s": [
                              {
                                "r": "727",
                                "s": [
                                  {
                                    "value": [
                                      "( "
                                    ]
                                  },
                                  {
                                    "r": "727",
                                    "s": [
                                      {
                                        "r": "725",
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Medication Due to Medical Reason During ED Visit\""
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\tintersect "
                                        ]
                                      },
                                      {
                                        "r": "726",
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Device Due to Medical Reason During ED Visit\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t)"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "730",
                                "s": [
                                  {
                                    "value": [
                                      "( "
                                    ]
                                  },
                                  {
                                    "r": "730",
                                    "s": [
                                      {
                                        "r": "728",
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission\""
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\t\t\tintersect "
                                        ]
                                      },
                                      {
                                        "r": "729",
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t)"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "734",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "734",
                                "s": [
                                  {
                                    "r": "732",
                                    "s": [
                                      {
                                        "value": [
                                          "\"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure\""
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\tintersect "
                                    ]
                                  },
                                  {
                                    "r": "733",
                                    "s": [
                                      {
                                        "value": [
                                          "\"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "735",
                "locator": "305:2-313:3",
                "type": "Union",
                "operand": [
                  {
                    "localId": "731",
                    "locator": "305:2-310:3",
                    "type": "Union",
                    "operand": [
                      {
                        "localId": "727",
                        "locator": "305:2-307:2",
                        "type": "Intersect",
                        "operand": [
                          {
                            "localId": "725",
                            "locator": "305:4-305:72",
                            "name": "No VTE Prophylaxis Medication Due to Medical Reason During ED Visit",
                            "type": "ExpressionRef"
                          },
                          {
                            "localId": "726",
                            "locator": "306:14-306:78",
                            "name": "No VTE Prophylaxis Device Due to Medical Reason During ED Visit",
                            "type": "ExpressionRef"
                          }
                        ]
                      },
                      {
                        "localId": "730",
                        "locator": "308:9-310:3",
                        "type": "Intersect",
                        "operand": [
                          {
                            "localId": "728",
                            "locator": "308:11-308:96",
                            "name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission",
                            "type": "ExpressionRef"
                          },
                          {
                            "localId": "729",
                            "locator": "309:15-309:96",
                            "name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission",
                            "type": "ExpressionRef"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "localId": "734",
                    "locator": "311:9-313:3",
                    "type": "Intersect",
                    "operand": [
                      {
                        "localId": "732",
                        "locator": "311:11-311:96",
                        "name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure",
                        "type": "ExpressionRef"
                      },
                      {
                        "localId": "733",
                        "locator": "312:15-312:96",
                        "name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure",
                        "type": "ExpressionRef"
                      }
                    ]
                  }
                ]
              }
            },
            {
              "localId": "750",
              "locator": "340:1-343:63",
              "name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "750",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "749",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "744",
                                "s": [
                                  {
                                    "r": "743",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "743",
                                        "s": [
                                          {
                                            "r": "741",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\tunion "
                                            ]
                                          },
                                          {
                                            "r": "742",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"No VTE Prophylaxis Device Applied or Ordered\""
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " )"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "NoVTEProphylaxis"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "748",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "748",
                                "s": [
                                  {
                                    "r": "746",
                                    "s": [
                                      {
                                        "r": "745",
                                        "s": [
                                          {
                                            "value": [
                                              "NoVTEProphylaxis"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "746",
                                        "s": [
                                          {
                                            "value": [
                                              "negationRationale"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " in "
                                    ]
                                  },
                                  {
                                    "r": "747",
                                    "s": [
                                      {
                                        "value": [
                                          "\"Patient Refusal\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "749",
                "locator": "341:2-343:63",
                "type": "Query",
                "source": [
                  {
                    "localId": "744",
                    "locator": "341:2-342:73",
                    "alias": "NoVTEProphylaxis",
                    "expression": {
                      "localId": "743",
                      "locator": "341:2-342:56",
                      "type": "Union",
                      "operand": [
                        {
                          "locator": "341:4-341:58",
                          "type": "As",
                          "operand": {
                            "localId": "741",
                            "locator": "341:4-341:58",
                            "name": "No VTE Prophylaxis Medication Administered or Ordered",
                            "type": "ExpressionRef"
                          },
                          "asTypeSpecifier": {
                            "type": "ListTypeSpecifier",
                            "elementType": {
                              "type": [
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                                  "type": "NamedTypeSpecifier"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "locator": "342:9-342:54",
                          "type": "As",
                          "operand": {
                            "localId": "742",
                            "locator": "342:9-342:54",
                            "name": "No VTE Prophylaxis Device Applied or Ordered",
                            "type": "ExpressionRef"
                          },
                          "asTypeSpecifier": {
                            "type": "ListTypeSpecifier",
                            "elementType": {
                              "type": [
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationAdministered",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationOrder",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceApplied",
                                  "type": "NamedTypeSpecifier"
                                },
                                {
                                  "name": "{urn:healthit-gov:qdm:v5_3}NegativeDeviceOrder",
                                  "type": "NamedTypeSpecifier"
                                }
                              ]
                            }
                          }
                        }
                      ]
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "748",
                  "locator": "343:3-343:63",
                  "type": "InValueSet",
                  "code": {
                    "localId": "746",
                    "locator": "343:9-343:42",
                    "path": "negationRationale",
                    "scope": "NoVTEProphylaxis",
                    "type": "Property"
                  },
                  "valueset": {
                    "localId": "747",
                    "locator": "343:47-343:63",
                    "name": "Patient Refusal"
                  }
                }
              }
            },
            {
              "localId": "769",
              "locator": "315:1-322:28",
              "name": "No VTE Prophylaxis Due to Patient Refusal During ED Visit",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "769",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Due to Patient Refusal During ED Visit\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "768",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "738",
                                "s": [
                                  {
                                    "r": "737",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "740",
                                "s": [
                                  {
                                    "r": "739",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"ED Visit\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "EDVisit"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "752",
                                "s": [
                                  {
                                    "r": "751",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "PatientRefusal"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "765",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "765",
                                "s": [
                                  {
                                    "r": "759",
                                    "s": [
                                      {
                                        "r": "754",
                                        "s": [
                                          {
                                            "r": "753",
                                            "s": [
                                              {
                                                "value": [
                                                  "EDVisit"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "754",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "759",
                                        "s": [
                                          {
                                            "value": [
                                              "ends "
                                            ]
                                          },
                                          {
                                            "r": "758",
                                            "s": [
                                              {
                                                "value": [
                                                  "1 ",
                                                  "hour"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " or less on or before"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "757",
                                        "s": [
                                          {
                                            "value": [
                                              "start of "
                                            ]
                                          },
                                          {
                                            "r": "756",
                                            "s": [
                                              {
                                                "r": "755",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "QualifyingEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "756",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "764",
                                    "s": [
                                      {
                                        "r": "761",
                                        "s": [
                                          {
                                            "r": "760",
                                            "s": [
                                              {
                                                "value": [
                                                  "PatientRefusal"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "761",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "763",
                                        "s": [
                                          {
                                            "r": "762",
                                            "s": [
                                              {
                                                "value": [
                                                  "EDVisit"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "763",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "767",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "766",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "768",
                "locator": "316:2-322:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "738",
                    "locator": "317:3-317:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "737",
                      "locator": "317:3-317:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "740",
                    "locator": "318:3-318:20",
                    "alias": "EDVisit",
                    "expression": {
                      "localId": "739",
                      "locator": "318:3-318:12",
                      "name": "ED Visit",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "752",
                    "locator": "319:3-319:81",
                    "alias": "PatientRefusal",
                    "expression": {
                      "localId": "751",
                      "locator": "319:3-319:66",
                      "name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "765",
                  "locator": "320:3-321:66",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "759",
                      "locator": "320:9-320:107",
                      "type": "In",
                      "operand": [
                        {
                          "locator": "320:32-320:35",
                          "type": "End",
                          "operand": {
                            "localId": "754",
                            "locator": "320:9-320:30",
                            "path": "relevantPeriod",
                            "scope": "EDVisit",
                            "type": "Property"
                          }
                        },
                        {
                          "locator": "320:37-320:50",
                          "lowClosed": true,
                          "highClosed": true,
                          "type": "Interval",
                          "low": {
                            "locator": "320:65-320:107",
                            "type": "Subtract",
                            "operand": [
                              {
                                "localId": "757",
                                "locator": "320:65-320:107",
                                "type": "Start",
                                "operand": {
                                  "localId": "756",
                                  "locator": "320:74-320:107",
                                  "path": "relevantPeriod",
                                  "scope": "QualifyingEncounter",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "758",
                                "locator": "320:37-320:42",
                                "value": 1,
                                "unit": "hour",
                                "type": "Quantity"
                              }
                            ]
                          },
                          "high": {
                            "localId": "757",
                            "locator": "320:65-320:107",
                            "type": "Start",
                            "operand": {
                              "localId": "756",
                              "locator": "320:74-320:107",
                              "path": "relevantPeriod",
                              "scope": "QualifyingEncounter",
                              "type": "Property"
                            }
                          }
                        }
                      ]
                    },
                    {
                      "localId": "764",
                      "locator": "321:8-321:66",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "761",
                          "locator": "321:8-321:36",
                          "path": "authorDatetime",
                          "scope": "PatientRefusal",
                          "type": "Property"
                        },
                        {
                          "localId": "763",
                          "locator": "321:45-321:66",
                          "path": "relevantPeriod",
                          "scope": "EDVisit",
                          "type": "Property"
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "767",
                  "locator": "322:3-322:28",
                  "expression": {
                    "localId": "766",
                    "locator": "322:10-322:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "785",
              "locator": "324:1-329:28",
              "name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "785",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "784",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "771",
                                "s": [
                                  {
                                    "r": "770",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "773",
                                "s": [
                                  {
                                    "r": "772",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "PatientRefusal"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "781",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "781",
                                "s": [
                                  {
                                    "r": "775",
                                    "s": [
                                      {
                                        "r": "774",
                                        "s": [
                                          {
                                            "value": [
                                              "PatientRefusal"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "775",
                                        "s": [
                                          {
                                            "value": [
                                              "authorDatetime"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "during",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "780",
                                    "s": [
                                      {
                                        "r": "776",
                                        "s": [
                                          {
                                            "value": [
                                              "VTEICU"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "780",
                                        "s": [
                                          {
                                            "value": [
                                              "\"CalendarDayOfOrDayAfter\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "779",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "778",
                                                "s": [
                                                  {
                                                    "r": "777",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "QualifyingEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "778",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "783",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "782",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "784",
                "locator": "325:2-329:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "771",
                    "locator": "326:3-326:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "770",
                      "locator": "326:3-326:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "773",
                    "locator": "327:3-327:81",
                    "alias": "PatientRefusal",
                    "expression": {
                      "localId": "772",
                      "locator": "327:3-327:66",
                      "name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "781",
                  "locator": "328:3-328:122",
                  "type": "In",
                  "operand": [
                    {
                      "localId": "775",
                      "locator": "328:9-328:37",
                      "path": "authorDatetime",
                      "scope": "PatientRefusal",
                      "type": "Property"
                    },
                    {
                      "localId": "780",
                      "locator": "328:46-328:122",
                      "name": "CalendarDayOfOrDayAfter",
                      "libraryName": "VTEICU",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "779",
                          "locator": "328:79-328:121",
                          "type": "Start",
                          "operand": {
                            "localId": "778",
                            "locator": "328:88-328:121",
                            "path": "relevantPeriod",
                            "scope": "QualifyingEncounter",
                            "type": "Property"
                          }
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "783",
                  "locator": "329:3-329:28",
                  "expression": {
                    "localId": "782",
                    "locator": "329:10-329:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "811",
              "locator": "331:1-338:28",
              "name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "811",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "810",
                        "s": [
                          {
                            "s": [
                              {
                                "value": [
                                  "from\n\t\t"
                                ]
                              },
                              {
                                "r": "787",
                                "s": [
                                  {
                                    "r": "786",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "789",
                                "s": [
                                  {
                                    "r": "788",
                                    "s": [
                                      {
                                        "r": "788",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Procedure, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"General or Neuraxial Anesthesia\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "AnesthesiaProcedure"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ",\n\t\t"
                                ]
                              },
                              {
                                "r": "791",
                                "s": [
                                  {
                                    "r": "790",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "PatientRefusal"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "807",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "807",
                                "s": [
                                  {
                                    "r": "798",
                                    "s": [
                                      {
                                        "r": "793",
                                        "s": [
                                          {
                                            "r": "792",
                                            "s": [
                                              {
                                                "value": [
                                                  "AnesthesiaProcedure"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "793",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "798",
                                        "s": [
                                          {
                                            "value": [
                                              "ends "
                                            ]
                                          },
                                          {
                                            "r": "797",
                                            "s": [
                                              {
                                                "value": [
                                                  "1 ",
                                                  "day"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " after day of"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "796",
                                        "s": [
                                          {
                                            "value": [
                                              "start of "
                                            ]
                                          },
                                          {
                                            "r": "795",
                                            "s": [
                                              {
                                                "r": "794",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "QualifyingEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "795",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "806",
                                    "s": [
                                      {
                                        "r": "800",
                                        "s": [
                                          {
                                            "r": "799",
                                            "s": [
                                              {
                                                "value": [
                                                  "PatientRefusal"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "800",
                                            "s": [
                                              {
                                                "value": [
                                                  "authorDatetime"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "805",
                                        "s": [
                                          {
                                            "r": "801",
                                            "s": [
                                              {
                                                "value": [
                                                  "VTEICU"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "805",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarDayOfOrDayAfter\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "804",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "end of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "803",
                                                    "s": [
                                                      {
                                                        "r": "802",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "AnesthesiaProcedure"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "803",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "809",
                            "s": [
                              {
                                "value": [
                                  "return "
                                ]
                              },
                              {
                                "r": "808",
                                "s": [
                                  {
                                    "value": [
                                      "QualifyingEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "810",
                "locator": "332:2-338:28",
                "type": "Query",
                "source": [
                  {
                    "localId": "787",
                    "locator": "333:3-333:100",
                    "alias": "QualifyingEncounter",
                    "expression": {
                      "localId": "786",
                      "locator": "333:3-333:80",
                      "name": "Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions",
                      "type": "ExpressionRef"
                    }
                  },
                  {
                    "localId": "789",
                    "locator": "334:3-334:81",
                    "alias": "AnesthesiaProcedure",
                    "expression": {
                      "localId": "788",
                      "locator": "334:3-334:61",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                      "templateId": "PositiveProcedurePerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "General or Neuraxial Anesthesia",
                        "type": "ValueSetRef"
                      }
                    }
                  },
                  {
                    "localId": "791",
                    "locator": "335:3-335:81",
                    "alias": "PatientRefusal",
                    "expression": {
                      "localId": "790",
                      "locator": "335:3-335:66",
                      "name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal",
                      "type": "ExpressionRef"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "807",
                  "locator": "336:3-337:119",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "798",
                      "locator": "336:9-336:110",
                      "precision": "Day",
                      "type": "SameAs",
                      "operand": [
                        {
                          "locator": "336:44-336:47",
                          "type": "End",
                          "operand": {
                            "localId": "793",
                            "locator": "336:9-336:42",
                            "path": "relevantPeriod",
                            "scope": "AnesthesiaProcedure",
                            "type": "Property"
                          }
                        },
                        {
                          "locator": "336:68-336:110",
                          "type": "Add",
                          "operand": [
                            {
                              "localId": "796",
                              "locator": "336:68-336:110",
                              "type": "Start",
                              "operand": {
                                "localId": "795",
                                "locator": "336:77-336:110",
                                "path": "relevantPeriod",
                                "scope": "QualifyingEncounter",
                                "type": "Property"
                              }
                            },
                            {
                              "localId": "797",
                              "locator": "336:49-336:53",
                              "value": 1,
                              "unit": "day",
                              "type": "Quantity"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "localId": "806",
                      "locator": "337:8-337:119",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "800",
                          "locator": "337:8-337:36",
                          "path": "authorDatetime",
                          "scope": "PatientRefusal",
                          "type": "Property"
                        },
                        {
                          "localId": "805",
                          "locator": "337:45-337:119",
                          "name": "CalendarDayOfOrDayAfter",
                          "libraryName": "VTEICU",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "804",
                              "locator": "337:78-337:118",
                              "type": "End",
                              "operand": {
                                "localId": "803",
                                "locator": "337:85-337:118",
                                "path": "relevantPeriod",
                                "scope": "AnesthesiaProcedure",
                                "type": "Property"
                              }
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                "return": {
                  "localId": "809",
                  "locator": "338:3-338:28",
                  "expression": {
                    "localId": "808",
                    "locator": "338:10-338:28",
                    "name": "QualifyingEncounter",
                    "type": "AliasRef"
                  }
                }
              }
            },
            {
              "localId": "817",
              "locator": "345:1-348:84",
              "name": "No VTE Prophylaxis Due to Patient Refusal",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "817",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"No VTE Prophylaxis Due to Patient Refusal\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "816",
                        "s": [
                          {
                            "r": "814",
                            "s": [
                              {
                                "r": "812",
                                "s": [
                                  {
                                    "value": [
                                      "\"No VTE Prophylaxis Due to Patient Refusal During ED Visit\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "813",
                                "s": [
                                  {
                                    "value": [
                                      "\"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission\""
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "815",
                            "s": [
                              {
                                "value": [
                                  "\"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure\""
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "816",
                "locator": "346:2-348:84",
                "type": "Union",
                "operand": [
                  {
                    "localId": "814",
                    "locator": "346:2-347:84",
                    "type": "Union",
                    "operand": [
                      {
                        "localId": "812",
                        "locator": "346:2-346:60",
                        "name": "No VTE Prophylaxis Due to Patient Refusal During ED Visit",
                        "type": "ExpressionRef"
                      },
                      {
                        "localId": "813",
                        "locator": "347:9-347:84",
                        "name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission",
                        "type": "ExpressionRef"
                      }
                    ]
                  },
                  {
                    "localId": "815",
                    "locator": "348:9-348:84",
                    "name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure",
                    "type": "ExpressionRef"
                  }
                ]
              }
            },
            {
              "localId": "831",
              "locator": "350:1-359:51",
              "name": "Numerator",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "831",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Numerator\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "830",
                        "s": [
                          {
                            "r": "828",
                            "s": [
                              {
                                "r": "826",
                                "s": [
                                  {
                                    "r": "824",
                                    "s": [
                                      {
                                        "r": "818",
                                        "s": [
                                          {
                                            "value": [
                                              "\"VTE Prophylaxis Received on Day of or Day After Admission or Procedure\""
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\tunion "
                                        ]
                                      },
                                      {
                                        "r": "823",
                                        "s": [
                                          {
                                            "value": [
                                              "( "
                                            ]
                                          },
                                          {
                                            "r": "823",
                                            "s": [
                                              {
                                                "r": "819",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "\n\t\t\t\tintersect "
                                                ]
                                              },
                                              {
                                                "r": "822",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "( "
                                                    ]
                                                  },
                                                  {
                                                    "r": "822",
                                                    "s": [
                                                      {
                                                        "r": "820",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "\n\t\t\t\t\t\tunion "
                                                        ]
                                                      },
                                                      {
                                                        "r": "821",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\""
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t\t\t\t)"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t)"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\tunion "
                                    ]
                                  },
                                  {
                                    "r": "825",
                                    "s": [
                                      {
                                        "value": [
                                          "\"Low Risk for VTE or Anticoagulant Administered\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tunion "
                                ]
                              },
                              {
                                "r": "827",
                                "s": [
                                  {
                                    "value": [
                                      "\"No VTE Prophylaxis Due to Medical Reason\""
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "829",
                            "s": [
                              {
                                "value": [
                                  "\"No VTE Prophylaxis Due to Patient Refusal\""
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "830",
                "locator": "351:2-359:51",
                "type": "Union",
                "operand": [
                  {
                    "localId": "828",
                    "locator": "351:2-358:50",
                    "type": "Union",
                    "operand": [
                      {
                        "localId": "826",
                        "locator": "351:2-357:56",
                        "type": "Union",
                        "operand": [
                          {
                            "localId": "824",
                            "locator": "351:2-356:3",
                            "type": "Union",
                            "operand": [
                              {
                                "localId": "818",
                                "locator": "351:2-351:73",
                                "name": "VTE Prophylaxis Received on Day of or Day After Admission or Procedure",
                                "type": "ExpressionRef"
                              },
                              {
                                "localId": "823",
                                "locator": "352:9-356:3",
                                "type": "Intersect",
                                "operand": [
                                  {
                                    "localId": "819",
                                    "locator": "352:11-352:106",
                                    "name": "Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure",
                                    "type": "ExpressionRef"
                                  },
                                  {
                                    "localId": "822",
                                    "locator": "353:15-355:5",
                                    "type": "Union",
                                    "operand": [
                                      {
                                        "localId": "820",
                                        "locator": "353:17-353:89",
                                        "name": "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE",
                                        "type": "ExpressionRef"
                                      },
                                      {
                                        "localId": "821",
                                        "locator": "354:13-354:90",
                                        "name": "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery",
                                        "type": "ExpressionRef"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "825",
                            "locator": "357:9-357:56",
                            "name": "Low Risk for VTE or Anticoagulant Administered",
                            "type": "ExpressionRef"
                          }
                        ]
                      },
                      {
                        "localId": "827",
                        "locator": "358:9-358:50",
                        "name": "No VTE Prophylaxis Due to Medical Reason",
                        "type": "ExpressionRef"
                      }
                    ]
                  },
                  {
                    "localId": "829",
                    "locator": "359:9-359:51",
                    "name": "No VTE Prophylaxis Due to Patient Refusal",
                    "type": "ExpressionRef"
                  }
                ]
              }
            }
          ]
        }
      }
    },
    {
      "library": {
        "identifier": {
          "id": "MATGlobalCommonFunctions",
          "version": "2.0.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_3",
              "version": "5.3"
            }
          ]
        },
        "parameters": {
          "def": [
            {
              "localId": "13",
              "locator": "15:1-15:49",
              "name": "Measurement Period",
              "accessLevel": "Public",
              "parameterTypeSpecifier": {
                "localId": "12",
                "locator": "15:32-15:49",
                "type": "IntervalTypeSpecifier",
                "pointType": {
                  "localId": "11",
                  "locator": "15:41-15:48",
                  "name": "{urn:hl7-org:elm-types:r1}DateTime",
                  "type": "NamedTypeSpecifier"
                }
              }
            }
          ]
        },
        "codeSystems": {
          "def": [
            {
              "localId": "2",
              "locator": "5:1-5:87",
              "name": "LOINC:2.46",
              "id": "LOINC",
              "version": "urn:hl7:version:2.46",
              "accessLevel": "Public"
            },
            {
              "localId": "3",
              "locator": "6:1-6:97",
              "name": "SNOMEDCT:2016-03",
              "id": "SNOMED-CT",
              "version": "urn:hl7:version:2016-03",
              "accessLevel": "Public"
            }
          ]
        },
        "valueSets": {
          "def": [
            {
              "localId": "4",
              "locator": "8:1-8:82",
              "name": "Emergency Department Visit",
              "id": "2.16.840.1.113883.3.117.1.7.1.292",
              "accessLevel": "Public"
            },
            {
              "localId": "5",
              "locator": "9:1-9:71",
              "name": "Encounter Inpatient",
              "id": "2.16.840.1.113883.3.666.5.307",
              "accessLevel": "Public"
            },
            {
              "localId": "6",
              "locator": "10:1-10:71",
              "name": "Intensive Care Unit",
              "id": "2.16.840.1.113762.1.4.1110.23",
              "accessLevel": "Public"
            }
          ]
        },
        "codes": {
          "def": [
            {
              "localId": "8",
              "locator": "12:1-12:66",
              "name": "Birthdate",
              "id": "21112-8",
              "display": "Birth date",
              "accessLevel": "Public",
              "codeSystem": {
                "localId": "7",
                "locator": "12:34-12:45",
                "name": "LOINC:2.46"
              }
            },
            {
              "localId": "10",
              "locator": "13:1-13:63",
              "name": "Dead",
              "id": "419099009",
              "display": "Dead",
              "accessLevel": "Public",
              "codeSystem": {
                "localId": "9",
                "locator": "13:31-13:48",
                "name": "SNOMEDCT:2016-03"
              }
            }
          ]
        },
        "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_3}Patient",
                  "templateId": "Patient",
                  "type": "Retrieve"
                }
              }
            },
            {
              "localId": "15",
              "locator": "19:1-20:55",
              "name": "Encounter",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "15",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "14",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Encounter, Performed\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"Emergency Department Visit\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "14",
                "locator": "20:2-20:55",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                "templateId": "PositiveEncounterPerformed",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "Emergency Department Visit",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "27",
              "locator": "63:1-64:59",
              "name": "LengthInDays",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "27",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"LengthInDays\"",
                          "(",
                          "Value",
                          " "
                        ]
                      },
                      {
                        "r": "21",
                        "s": [
                          {
                            "value": [
                              "Interval<"
                            ]
                          },
                          {
                            "r": "20",
                            "s": [
                              {
                                "value": [
                                  "DateTime"
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              ">"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "26",
                        "s": [
                          {
                            "r": "26",
                            "s": [
                              {
                                "value": [
                                  "difference in days between "
                                ]
                              },
                              {
                                "r": "23",
                                "s": [
                                  {
                                    "value": [
                                      "start of "
                                    ]
                                  },
                                  {
                                    "r": "22",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  " and "
                                ]
                              },
                              {
                                "r": "25",
                                "s": [
                                  {
                                    "value": [
                                      "end of "
                                    ]
                                  },
                                  {
                                    "r": "24",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "26",
                "locator": "64:2-64:59",
                "precision": "Day",
                "type": "DifferenceBetween",
                "operand": [
                  {
                    "localId": "23",
                    "locator": "64:29-64:42",
                    "type": "Start",
                    "operand": {
                      "localId": "22",
                      "locator": "64:38-64:42",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  {
                    "localId": "25",
                    "locator": "64:48-64:59",
                    "type": "End",
                    "operand": {
                      "localId": "24",
                      "locator": "64:55-64:59",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  }
                ]
              },
              "operand": [
                {
                  "name": "Value",
                  "operandTypeSpecifier": {
                    "localId": "21",
                    "locator": "63:38-63:55",
                    "type": "IntervalTypeSpecifier",
                    "pointType": {
                      "localId": "20",
                      "locator": "63:47-63:54",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                }
              ]
            },
            {
              "localId": "37",
              "locator": "22:1-25:73",
              "name": "Inpatient Encounter",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "37",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Inpatient Encounter\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "36",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "17",
                                "s": [
                                  {
                                    "r": "16",
                                    "s": [
                                      {
                                        "r": "16",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Encounter Inpatient\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "EncounterInpatient"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "35",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "35",
                                "s": [
                                  {
                                    "r": "30",
                                    "s": [
                                      {
                                        "r": "28",
                                        "s": [
                                          {
                                            "value": [
                                              "\"LengthInDays\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "19",
                                            "s": [
                                              {
                                                "r": "18",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "EncounterInpatient"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "19",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "<=",
                                          " ",
                                          "120"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "34",
                                    "s": [
                                      {
                                        "r": "32",
                                        "s": [
                                          {
                                            "r": "31",
                                            "s": [
                                              {
                                                "value": [
                                                  "EncounterInpatient"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "32",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "ends during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "33",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "36",
                "locator": "23:2-25:73",
                "type": "Query",
                "source": [
                  {
                    "localId": "17",
                    "locator": "23:2-23:67",
                    "alias": "EncounterInpatient",
                    "expression": {
                      "localId": "16",
                      "locator": "23:2-23:48",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Encounter Inpatient",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "35",
                  "locator": "24:3-25:73",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "30",
                      "locator": "24:9-24:63",
                      "type": "LessOrEqual",
                      "operand": [
                        {
                          "localId": "28",
                          "locator": "24:9-24:57",
                          "name": "LengthInDays",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "19",
                              "locator": "24:24-24:56",
                              "path": "relevantPeriod",
                              "scope": "EncounterInpatient",
                              "type": "Property"
                            }
                          ]
                        },
                        {
                          "localId": "29",
                          "locator": "24:61-24:63",
                          "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                          "value": "120",
                          "type": "Literal"
                        }
                      ]
                    },
                    {
                      "localId": "34",
                      "locator": "25:8-25:73",
                      "type": "In",
                      "operand": [
                        {
                          "locator": "25:42-25:45",
                          "type": "End",
                          "operand": {
                            "localId": "32",
                            "locator": "25:8-25:40",
                            "path": "relevantPeriod",
                            "scope": "EncounterInpatient",
                            "type": "Property"
                          }
                        },
                        {
                          "localId": "33",
                          "locator": "25:54-25:73",
                          "name": "Measurement Period",
                          "type": "ParameterRef"
                        }
                      ]
                    }
                  ]
                }
              }
            },
            {
              "localId": "52",
              "locator": "28:1-29:93",
              "name": "ToDate",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "52",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"ToDate\"",
                          "(",
                          "Value",
                          " "
                        ]
                      },
                      {
                        "r": "38",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "51",
                        "s": [
                          {
                            "r": "51",
                            "s": [
                              {
                                "value": [
                                  "DateTime",
                                  "("
                                ]
                              },
                              {
                                "r": "40",
                                "s": [
                                  {
                                    "value": [
                                      "year from "
                                    ]
                                  },
                                  {
                                    "r": "39",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ", "
                                ]
                              },
                              {
                                "r": "42",
                                "s": [
                                  {
                                    "value": [
                                      "month from "
                                    ]
                                  },
                                  {
                                    "r": "41",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ", "
                                ]
                              },
                              {
                                "r": "44",
                                "s": [
                                  {
                                    "value": [
                                      "day from "
                                    ]
                                  },
                                  {
                                    "r": "43",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ", ",
                                  "0",
                                  ", ",
                                  "0",
                                  ", ",
                                  "0",
                                  ", ",
                                  "0",
                                  ", "
                                ]
                              },
                              {
                                "r": "50",
                                "s": [
                                  {
                                    "value": [
                                      "timezone from "
                                    ]
                                  },
                                  {
                                    "r": "49",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ")"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "51",
                "locator": "29:2-29:93",
                "type": "DateTime",
                "year": {
                  "localId": "40",
                  "locator": "29:11-29:25",
                  "precision": "Year",
                  "type": "DateTimeComponentFrom",
                  "operand": {
                    "localId": "39",
                    "locator": "29:21-29:25",
                    "name": "Value",
                    "type": "OperandRef"
                  }
                },
                "month": {
                  "localId": "42",
                  "locator": "29:28-29:43",
                  "precision": "Month",
                  "type": "DateTimeComponentFrom",
                  "operand": {
                    "localId": "41",
                    "locator": "29:39-29:43",
                    "name": "Value",
                    "type": "OperandRef"
                  }
                },
                "day": {
                  "localId": "44",
                  "locator": "29:46-29:59",
                  "precision": "Day",
                  "type": "DateTimeComponentFrom",
                  "operand": {
                    "localId": "43",
                    "locator": "29:55-29:59",
                    "name": "Value",
                    "type": "OperandRef"
                  }
                },
                "hour": {
                  "localId": "45",
                  "locator": "29:62",
                  "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                  "value": "0",
                  "type": "Literal"
                },
                "minute": {
                  "localId": "46",
                  "locator": "29:65",
                  "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                  "value": "0",
                  "type": "Literal"
                },
                "second": {
                  "localId": "47",
                  "locator": "29:68",
                  "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                  "value": "0",
                  "type": "Literal"
                },
                "millisecond": {
                  "localId": "48",
                  "locator": "29:71",
                  "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                  "value": "0",
                  "type": "Literal"
                },
                "timezoneOffset": {
                  "localId": "50",
                  "locator": "29:74-29:92",
                  "type": "TimezoneFrom",
                  "operand": {
                    "localId": "49",
                    "locator": "29:88-29:92",
                    "name": "Value",
                    "type": "OperandRef"
                  }
                }
              },
              "operand": [
                {
                  "name": "Value",
                  "operandTypeSpecifier": {
                    "localId": "38",
                    "locator": "28:32-28:39",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "60",
              "locator": "32:1-33:51",
              "name": "CalendarAgeInDaysAt",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "60",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"CalendarAgeInDaysAt\"",
                          "(",
                          "BirthDateTime",
                          " "
                        ]
                      },
                      {
                        "r": "53",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          ", ",
                          "AsOf",
                          " "
                        ]
                      },
                      {
                        "r": "54",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "59",
                        "s": [
                          {
                            "r": "59",
                            "s": [
                              {
                                "value": [
                                  "days between "
                                ]
                              },
                              {
                                "r": "56",
                                "s": [
                                  {
                                    "value": [
                                      "ToDate",
                                      "("
                                    ]
                                  },
                                  {
                                    "r": "55",
                                    "s": [
                                      {
                                        "value": [
                                          "BirthDateTime"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ")"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "and "
                                ]
                              },
                              {
                                "r": "58",
                                "s": [
                                  {
                                    "value": [
                                      "ToDate",
                                      "("
                                    ]
                                  },
                                  {
                                    "r": "57",
                                    "s": [
                                      {
                                        "value": [
                                          "AsOf"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ")"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "59",
                "locator": "33:2-33:51",
                "precision": "Day",
                "type": "DurationBetween",
                "operand": [
                  {
                    "localId": "56",
                    "locator": "33:15-33:35",
                    "name": "ToDate",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "55",
                        "locator": "33:22-33:34",
                        "name": "BirthDateTime",
                        "type": "OperandRef"
                      }
                    ]
                  },
                  {
                    "localId": "58",
                    "locator": "33:40-33:51",
                    "name": "ToDate",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "57",
                        "locator": "33:47-33:50",
                        "name": "AsOf",
                        "type": "OperandRef"
                      }
                    ]
                  }
                ]
              },
              "operand": [
                {
                  "name": "BirthDateTime",
                  "operandTypeSpecifier": {
                    "localId": "53",
                    "locator": "32:53-32:60",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                },
                {
                  "name": "AsOf",
                  "operandTypeSpecifier": {
                    "localId": "54",
                    "locator": "32:68-32:75",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "65",
              "locator": "36:1-37:44",
              "name": "CalendarAgeInDays",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "65",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"CalendarAgeInDays\"",
                          "(",
                          "BirthDateTime",
                          " "
                        ]
                      },
                      {
                        "r": "61",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "64",
                        "s": [
                          {
                            "r": "64",
                            "s": [
                              {
                                "value": [
                                  "CalendarAgeInDaysAt",
                                  "("
                                ]
                              },
                              {
                                "r": "62",
                                "s": [
                                  {
                                    "value": [
                                      "BirthDateTime"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ", "
                                ]
                              },
                              {
                                "r": "63",
                                "s": [
                                  {
                                    "value": [
                                      "Today",
                                      "()"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ")"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "64",
                "locator": "37:2-37:44",
                "name": "CalendarAgeInDaysAt",
                "type": "FunctionRef",
                "operand": [
                  {
                    "localId": "62",
                    "locator": "37:22-37:34",
                    "name": "BirthDateTime",
                    "type": "OperandRef"
                  },
                  {
                    "localId": "63",
                    "locator": "37:37-37:43",
                    "type": "Today"
                  }
                ]
              },
              "operand": [
                {
                  "name": "BirthDateTime",
                  "operandTypeSpecifier": {
                    "localId": "61",
                    "locator": "36:51-36:58",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "73",
              "locator": "40:1-41:53",
              "name": "CalendarAgeInMonthsAt",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "73",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"CalendarAgeInMonthsAt\"",
                          "(",
                          "BirthDateTime",
                          " "
                        ]
                      },
                      {
                        "r": "66",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          ", ",
                          "AsOf",
                          " "
                        ]
                      },
                      {
                        "r": "67",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "72",
                        "s": [
                          {
                            "r": "72",
                            "s": [
                              {
                                "value": [
                                  "months between "
                                ]
                              },
                              {
                                "r": "69",
                                "s": [
                                  {
                                    "value": [
                                      "ToDate",
                                      "("
                                    ]
                                  },
                                  {
                                    "r": "68",
                                    "s": [
                                      {
                                        "value": [
                                          "BirthDateTime"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ")"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "and "
                                ]
                              },
                              {
                                "r": "71",
                                "s": [
                                  {
                                    "value": [
                                      "ToDate",
                                      "("
                                    ]
                                  },
                                  {
                                    "r": "70",
                                    "s": [
                                      {
                                        "value": [
                                          "AsOf"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ")"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "72",
                "locator": "41:2-41:53",
                "precision": "Month",
                "type": "DurationBetween",
                "operand": [
                  {
                    "localId": "69",
                    "locator": "41:17-41:37",
                    "name": "ToDate",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "68",
                        "locator": "41:24-41:36",
                        "name": "BirthDateTime",
                        "type": "OperandRef"
                      }
                    ]
                  },
                  {
                    "localId": "71",
                    "locator": "41:42-41:53",
                    "name": "ToDate",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "70",
                        "locator": "41:49-41:52",
                        "name": "AsOf",
                        "type": "OperandRef"
                      }
                    ]
                  }
                ]
              },
              "operand": [
                {
                  "name": "BirthDateTime",
                  "operandTypeSpecifier": {
                    "localId": "66",
                    "locator": "40:55-40:62",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                },
                {
                  "name": "AsOf",
                  "operandTypeSpecifier": {
                    "localId": "67",
                    "locator": "40:70-40:77",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "78",
              "locator": "44:1-45:46",
              "name": "CalendarAgeInMonths",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "78",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"CalendarAgeInMonths\"",
                          "(",
                          "BirthDateTime",
                          " "
                        ]
                      },
                      {
                        "r": "74",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "77",
                        "s": [
                          {
                            "r": "77",
                            "s": [
                              {
                                "value": [
                                  "CalendarAgeInMonthsAt",
                                  "("
                                ]
                              },
                              {
                                "r": "75",
                                "s": [
                                  {
                                    "value": [
                                      "BirthDateTime"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ", "
                                ]
                              },
                              {
                                "r": "76",
                                "s": [
                                  {
                                    "value": [
                                      "Today",
                                      "()"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ")"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "77",
                "locator": "45:2-45:46",
                "name": "CalendarAgeInMonthsAt",
                "type": "FunctionRef",
                "operand": [
                  {
                    "localId": "75",
                    "locator": "45:24-45:36",
                    "name": "BirthDateTime",
                    "type": "OperandRef"
                  },
                  {
                    "localId": "76",
                    "locator": "45:39-45:45",
                    "type": "Today"
                  }
                ]
              },
              "operand": [
                {
                  "name": "BirthDateTime",
                  "operandTypeSpecifier": {
                    "localId": "74",
                    "locator": "44:53-44:60",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "86",
              "locator": "48:1-49:52",
              "name": "CalendarAgeInYearsAt",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "86",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"CalendarAgeInYearsAt\"",
                          "(",
                          "BirthDateTime",
                          " "
                        ]
                      },
                      {
                        "r": "79",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          ", ",
                          "AsOf",
                          " "
                        ]
                      },
                      {
                        "r": "80",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "85",
                        "s": [
                          {
                            "r": "85",
                            "s": [
                              {
                                "value": [
                                  "years between "
                                ]
                              },
                              {
                                "r": "82",
                                "s": [
                                  {
                                    "value": [
                                      "ToDate",
                                      "("
                                    ]
                                  },
                                  {
                                    "r": "81",
                                    "s": [
                                      {
                                        "value": [
                                          "BirthDateTime"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ")"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "and "
                                ]
                              },
                              {
                                "r": "84",
                                "s": [
                                  {
                                    "value": [
                                      "ToDate",
                                      "("
                                    ]
                                  },
                                  {
                                    "r": "83",
                                    "s": [
                                      {
                                        "value": [
                                          "AsOf"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ")"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "85",
                "locator": "49:2-49:52",
                "precision": "Year",
                "type": "DurationBetween",
                "operand": [
                  {
                    "localId": "82",
                    "locator": "49:16-49:36",
                    "name": "ToDate",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "81",
                        "locator": "49:23-49:35",
                        "name": "BirthDateTime",
                        "type": "OperandRef"
                      }
                    ]
                  },
                  {
                    "localId": "84",
                    "locator": "49:41-49:52",
                    "name": "ToDate",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "83",
                        "locator": "49:48-49:51",
                        "name": "AsOf",
                        "type": "OperandRef"
                      }
                    ]
                  }
                ]
              },
              "operand": [
                {
                  "name": "BirthDateTime",
                  "operandTypeSpecifier": {
                    "localId": "79",
                    "locator": "48:54-48:61",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                },
                {
                  "name": "AsOf",
                  "operandTypeSpecifier": {
                    "localId": "80",
                    "locator": "48:69-48:76",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "91",
              "locator": "52:1-53:45",
              "name": "CalendarAgeInYears",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "91",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"CalendarAgeInYears\"",
                          "(",
                          "BirthDateTime",
                          " "
                        ]
                      },
                      {
                        "r": "87",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "90",
                        "s": [
                          {
                            "r": "90",
                            "s": [
                              {
                                "value": [
                                  "CalendarAgeInYearsAt",
                                  "("
                                ]
                              },
                              {
                                "r": "88",
                                "s": [
                                  {
                                    "value": [
                                      "BirthDateTime"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ", "
                                ]
                              },
                              {
                                "r": "89",
                                "s": [
                                  {
                                    "value": [
                                      "Today",
                                      "()"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ")"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "90",
                "locator": "53:2-53:45",
                "name": "CalendarAgeInYearsAt",
                "type": "FunctionRef",
                "operand": [
                  {
                    "localId": "88",
                    "locator": "53:23-53:35",
                    "name": "BirthDateTime",
                    "type": "OperandRef"
                  },
                  {
                    "localId": "89",
                    "locator": "53:38-53:44",
                    "type": "Today"
                  }
                ]
              },
              "operand": [
                {
                  "name": "BirthDateTime",
                  "operandTypeSpecifier": {
                    "localId": "87",
                    "locator": "52:52-52:59",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "119",
              "locator": "56:1-60:125",
              "name": "Hospitalization",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "119",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"Hospitalization\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "92",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "118",
                        "s": [
                          {
                            "r": "118",
                            "s": [
                              {
                                "s": [
                                  {
                                    "r": "104",
                                    "s": [
                                      {
                                        "r": "103",
                                        "s": [
                                          {
                                            "value": [
                                              "( "
                                            ]
                                          },
                                          {
                                            "r": "103",
                                            "s": [
                                              {
                                                "value": [
                                                  "singleton from "
                                                ]
                                              },
                                              {
                                                "r": "102",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "( "
                                                    ]
                                                  },
                                                  {
                                                    "r": "102",
                                                    "s": [
                                                      {
                                                        "s": [
                                                          {
                                                            "r": "94",
                                                            "s": [
                                                              {
                                                                "r": "93",
                                                                "s": [
                                                                  {
                                                                    "r": "93",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "[",
                                                                          "\"Encounter, Performed\"",
                                                                          ": "
                                                                        ]
                                                                      },
                                                                      {
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "\"Emergency Department Visit\""
                                                                            ]
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "value": [
                                                                          "]"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  " ",
                                                                  "EDVisit"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "\n\t\t\t"
                                                        ]
                                                      },
                                                      {
                                                        "r": "101",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "where "
                                                            ]
                                                          },
                                                          {
                                                            "r": "101",
                                                            "s": [
                                                              {
                                                                "r": "96",
                                                                "s": [
                                                                  {
                                                                    "r": "95",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "EDVisit"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "value": [
                                                                      "."
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "96",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "relevantPeriod"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  " "
                                                                ]
                                                              },
                                                              {
                                                                "r": "101",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "ends "
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "100",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "1 ",
                                                                          "hour"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "value": [
                                                                      " or less on or before"
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  " "
                                                                ]
                                                              },
                                                              {
                                                                "r": "99",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "start of "
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "98",
                                                                    "s": [
                                                                      {
                                                                        "r": "97",
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "Encounter"
                                                                            ]
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "value": [
                                                                          "."
                                                                        ]
                                                                      },
                                                                      {
                                                                        "r": "98",
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "relevantPeriod"
                                                                            ]
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t)"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " )"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "X"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t"
                                ]
                              },
                              {
                                "r": "117",
                                "s": [
                                  {
                                    "value": [
                                      "return "
                                    ]
                                  },
                                  {
                                    "r": "116",
                                    "s": [
                                      {
                                        "value": [
                                          "if "
                                        ]
                                      },
                                      {
                                        "r": "106",
                                        "s": [
                                          {
                                            "r": "105",
                                            "s": [
                                              {
                                                "value": [
                                                  "X"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " is null"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " then "
                                        ]
                                      },
                                      {
                                        "r": "108",
                                        "s": [
                                          {
                                            "r": "107",
                                            "s": [
                                              {
                                                "value": [
                                                  "Encounter"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "108",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " else "
                                        ]
                                      },
                                      {
                                        "r": "115",
                                        "s": [
                                          {
                                            "value": [
                                              "Interval["
                                            ]
                                          },
                                          {
                                            "r": "111",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "110",
                                                "s": [
                                                  {
                                                    "r": "109",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "X"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "110",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ", "
                                            ]
                                          },
                                          {
                                            "r": "114",
                                            "s": [
                                              {
                                                "value": [
                                                  "end of "
                                                ]
                                              },
                                              {
                                                "r": "113",
                                                "s": [
                                                  {
                                                    "r": "112",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Encounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "113",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "118",
                "locator": "57:2-60:125",
                "type": "Query",
                "source": [
                  {
                    "localId": "104",
                    "locator": "57:2-59:6",
                    "alias": "X",
                    "expression": {
                      "localId": "103",
                      "locator": "57:2-59:4",
                      "type": "SingletonFrom",
                      "operand": {
                        "localId": "102",
                        "locator": "57:19-59:2",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "94",
                            "locator": "57:21-57:82",
                            "alias": "EDVisit",
                            "expression": {
                              "localId": "93",
                              "locator": "57:21-57:74",
                              "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                              "templateId": "PositiveEncounterPerformed",
                              "codeProperty": "code",
                              "type": "Retrieve",
                              "codes": {
                                "name": "Emergency Department Visit",
                                "type": "ValueSetRef"
                              }
                            }
                          }
                        ],
                        "relationship": [

                        ],
                        "where": {
                          "localId": "101",
                          "locator": "58:4-58:98",
                          "type": "In",
                          "operand": [
                            {
                              "locator": "58:33-58:36",
                              "type": "End",
                              "operand": {
                                "localId": "96",
                                "locator": "58:10-58:31",
                                "path": "relevantPeriod",
                                "scope": "EDVisit",
                                "type": "Property"
                              }
                            },
                            {
                              "locator": "58:38-58:51",
                              "lowClosed": true,
                              "highClosed": true,
                              "type": "Interval",
                              "low": {
                                "locator": "58:66-58:98",
                                "type": "Subtract",
                                "operand": [
                                  {
                                    "localId": "99",
                                    "locator": "58:66-58:98",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "98",
                                      "locator": "58:75-58:98",
                                      "path": "relevantPeriod",
                                      "type": "Property",
                                      "source": {
                                        "localId": "97",
                                        "locator": "58:75-58:83",
                                        "name": "Encounter",
                                        "type": "OperandRef"
                                      }
                                    }
                                  },
                                  {
                                    "localId": "100",
                                    "locator": "58:38-58:43",
                                    "value": 1,
                                    "unit": "hour",
                                    "type": "Quantity"
                                  }
                                ]
                              },
                              "high": {
                                "localId": "99",
                                "locator": "58:66-58:98",
                                "type": "Start",
                                "operand": {
                                  "localId": "98",
                                  "locator": "58:75-58:98",
                                  "path": "relevantPeriod",
                                  "type": "Property",
                                  "source": {
                                    "localId": "97",
                                    "locator": "58:75-58:83",
                                    "name": "Encounter",
                                    "type": "OperandRef"
                                  }
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "return": {
                  "localId": "117",
                  "locator": "60:3-60:125",
                  "expression": {
                    "localId": "116",
                    "locator": "60:10-60:125",
                    "type": "If",
                    "condition": {
                      "asType": "{urn:hl7-org:elm-types:r1}Boolean",
                      "type": "As",
                      "operand": {
                        "localId": "106",
                        "locator": "60:13-60:21",
                        "type": "IsNull",
                        "operand": {
                          "localId": "105",
                          "locator": "60:13",
                          "name": "X",
                          "type": "AliasRef"
                        }
                      },
                      "asTypeSpecifier": {
                        "name": "{urn:hl7-org:elm-types:r1}Boolean",
                        "type": "NamedTypeSpecifier"
                      }
                    },
                    "then": {
                      "localId": "108",
                      "locator": "60:28-60:51",
                      "path": "relevantPeriod",
                      "type": "Property",
                      "source": {
                        "localId": "107",
                        "locator": "60:28-60:36",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    },
                    "else": {
                      "localId": "115",
                      "locator": "60:58-60:125",
                      "lowClosed": true,
                      "highClosed": true,
                      "type": "Interval",
                      "low": {
                        "localId": "111",
                        "locator": "60:67-60:91",
                        "type": "Start",
                        "operand": {
                          "localId": "110",
                          "locator": "60:76-60:91",
                          "path": "relevantPeriod",
                          "scope": "X",
                          "type": "Property"
                        }
                      },
                      "high": {
                        "localId": "114",
                        "locator": "60:94-60:124",
                        "type": "End",
                        "operand": {
                          "localId": "113",
                          "locator": "60:101-60:124",
                          "path": "relevantPeriod",
                          "type": "Property",
                          "source": {
                            "localId": "112",
                            "locator": "60:101-60:109",
                            "name": "Encounter",
                            "type": "OperandRef"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "92",
                    "locator": "56:45-56:66",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "149",
              "locator": "67:1-71:140",
              "name": "Hospitalization Locations",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "149",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"Hospitalization Locations\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "123",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "148",
                        "s": [
                          {
                            "r": "148",
                            "s": [
                              {
                                "s": [
                                  {
                                    "r": "135",
                                    "s": [
                                      {
                                        "r": "134",
                                        "s": [
                                          {
                                            "value": [
                                              "( "
                                            ]
                                          },
                                          {
                                            "r": "134",
                                            "s": [
                                              {
                                                "value": [
                                                  "singleton from "
                                                ]
                                              },
                                              {
                                                "r": "133",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "( "
                                                    ]
                                                  },
                                                  {
                                                    "r": "133",
                                                    "s": [
                                                      {
                                                        "s": [
                                                          {
                                                            "r": "125",
                                                            "s": [
                                                              {
                                                                "r": "124",
                                                                "s": [
                                                                  {
                                                                    "r": "124",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "[",
                                                                          "\"Encounter, Performed\"",
                                                                          ": "
                                                                        ]
                                                                      },
                                                                      {
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "\"Emergency Department Visit\""
                                                                            ]
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "value": [
                                                                          "]"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  " ",
                                                                  "EDVisit"
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "\n\t\t\t"
                                                        ]
                                                      },
                                                      {
                                                        "r": "132",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "where "
                                                            ]
                                                          },
                                                          {
                                                            "r": "132",
                                                            "s": [
                                                              {
                                                                "r": "127",
                                                                "s": [
                                                                  {
                                                                    "r": "126",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "EDVisit"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "value": [
                                                                      "."
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "127",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "relevantPeriod"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  " "
                                                                ]
                                                              },
                                                              {
                                                                "r": "132",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "ends "
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "131",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "1 ",
                                                                          "hour"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "value": [
                                                                      " or less on or before"
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  " "
                                                                ]
                                                              },
                                                              {
                                                                "r": "130",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "start of "
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "129",
                                                                    "s": [
                                                                      {
                                                                        "r": "128",
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "Encounter"
                                                                            ]
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "value": [
                                                                          "."
                                                                        ]
                                                                      },
                                                                      {
                                                                        "r": "129",
                                                                        "s": [
                                                                          {
                                                                            "value": [
                                                                              "relevantPeriod"
                                                                            ]
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t)"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " )"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "EDEncounter"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t"
                                ]
                              },
                              {
                                "r": "147",
                                "s": [
                                  {
                                    "value": [
                                      "return "
                                    ]
                                  },
                                  {
                                    "r": "146",
                                    "s": [
                                      {
                                        "value": [
                                          "if "
                                        ]
                                      },
                                      {
                                        "r": "137",
                                        "s": [
                                          {
                                            "r": "136",
                                            "s": [
                                              {
                                                "value": [
                                                  "EDEncounter"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " is null"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " then "
                                        ]
                                      },
                                      {
                                        "r": "139",
                                        "s": [
                                          {
                                            "r": "138",
                                            "s": [
                                              {
                                                "value": [
                                                  "Encounter"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "139",
                                            "s": [
                                              {
                                                "value": [
                                                  "facilityLocations"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " else "
                                        ]
                                      },
                                      {
                                        "r": "145",
                                        "s": [
                                          {
                                            "value": [
                                              "flatten "
                                            ]
                                          },
                                          {
                                            "r": "144",
                                            "s": [
                                              {
                                                "value": [
                                                  "{ "
                                                ]
                                              },
                                              {
                                                "r": "141",
                                                "s": [
                                                  {
                                                    "r": "140",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "EDEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "141",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "facilityLocations"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ", "
                                                ]
                                              },
                                              {
                                                "r": "143",
                                                "s": [
                                                  {
                                                    "r": "142",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Encounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "143",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "facilityLocations"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " }"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "148",
                "locator": "68:2-71:140",
                "type": "Query",
                "source": [
                  {
                    "localId": "135",
                    "locator": "68:2-70:16",
                    "alias": "EDEncounter",
                    "expression": {
                      "localId": "134",
                      "locator": "68:2-70:4",
                      "type": "SingletonFrom",
                      "operand": {
                        "localId": "133",
                        "locator": "68:19-70:2",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "125",
                            "locator": "68:21-68:82",
                            "alias": "EDVisit",
                            "expression": {
                              "localId": "124",
                              "locator": "68:21-68:74",
                              "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                              "templateId": "PositiveEncounterPerformed",
                              "codeProperty": "code",
                              "type": "Retrieve",
                              "codes": {
                                "name": "Emergency Department Visit",
                                "type": "ValueSetRef"
                              }
                            }
                          }
                        ],
                        "relationship": [

                        ],
                        "where": {
                          "localId": "132",
                          "locator": "69:4-69:98",
                          "type": "In",
                          "operand": [
                            {
                              "locator": "69:33-69:36",
                              "type": "End",
                              "operand": {
                                "localId": "127",
                                "locator": "69:10-69:31",
                                "path": "relevantPeriod",
                                "scope": "EDVisit",
                                "type": "Property"
                              }
                            },
                            {
                              "locator": "69:38-69:51",
                              "lowClosed": true,
                              "highClosed": true,
                              "type": "Interval",
                              "low": {
                                "locator": "69:66-69:98",
                                "type": "Subtract",
                                "operand": [
                                  {
                                    "localId": "130",
                                    "locator": "69:66-69:98",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "129",
                                      "locator": "69:75-69:98",
                                      "path": "relevantPeriod",
                                      "type": "Property",
                                      "source": {
                                        "localId": "128",
                                        "locator": "69:75-69:83",
                                        "name": "Encounter",
                                        "type": "OperandRef"
                                      }
                                    }
                                  },
                                  {
                                    "localId": "131",
                                    "locator": "69:38-69:43",
                                    "value": 1,
                                    "unit": "hour",
                                    "type": "Quantity"
                                  }
                                ]
                              },
                              "high": {
                                "localId": "130",
                                "locator": "69:66-69:98",
                                "type": "Start",
                                "operand": {
                                  "localId": "129",
                                  "locator": "69:75-69:98",
                                  "path": "relevantPeriod",
                                  "type": "Property",
                                  "source": {
                                    "localId": "128",
                                    "locator": "69:75-69:83",
                                    "name": "Encounter",
                                    "type": "OperandRef"
                                  }
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "return": {
                  "localId": "147",
                  "locator": "71:3-71:140",
                  "expression": {
                    "localId": "146",
                    "locator": "71:10-71:140",
                    "type": "If",
                    "condition": {
                      "asType": "{urn:hl7-org:elm-types:r1}Boolean",
                      "type": "As",
                      "operand": {
                        "localId": "137",
                        "locator": "71:13-71:31",
                        "type": "IsNull",
                        "operand": {
                          "localId": "136",
                          "locator": "71:13-71:23",
                          "name": "EDEncounter",
                          "type": "AliasRef"
                        }
                      },
                      "asTypeSpecifier": {
                        "name": "{urn:hl7-org:elm-types:r1}Boolean",
                        "type": "NamedTypeSpecifier"
                      }
                    },
                    "then": {
                      "localId": "139",
                      "locator": "71:38-71:64",
                      "path": "facilityLocations",
                      "type": "Property",
                      "source": {
                        "localId": "138",
                        "locator": "71:38-71:46",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    },
                    "else": {
                      "localId": "145",
                      "locator": "71:71-71:140",
                      "type": "Flatten",
                      "operand": {
                        "localId": "144",
                        "locator": "71:79-71:140",
                        "type": "List",
                        "element": [
                          {
                            "localId": "141",
                            "locator": "71:81-71:109",
                            "path": "facilityLocations",
                            "scope": "EDEncounter",
                            "type": "Property"
                          },
                          {
                            "localId": "143",
                            "locator": "71:112-71:138",
                            "path": "facilityLocations",
                            "type": "Property",
                            "source": {
                              "localId": "142",
                              "locator": "71:112-71:120",
                              "name": "Encounter",
                              "type": "OperandRef"
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "123",
                    "locator": "67:55-67:76",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "154",
              "locator": "74:1-75:43",
              "name": "Hospitalization Length of Stay",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "154",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"Hospitalization Length of Stay\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "150",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "153",
                        "s": [
                          {
                            "r": "153",
                            "s": [
                              {
                                "value": [
                                  "LengthInDays",
                                  "("
                                ]
                              },
                              {
                                "r": "152",
                                "s": [
                                  {
                                    "value": [
                                      "\"Hospitalization\"",
                                      "("
                                    ]
                                  },
                                  {
                                    "r": "151",
                                    "s": [
                                      {
                                        "value": [
                                          "Encounter"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ")"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ")"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "153",
                "locator": "75:2-75:43",
                "name": "LengthInDays",
                "type": "FunctionRef",
                "operand": [
                  {
                    "localId": "152",
                    "locator": "75:15-75:42",
                    "name": "Hospitalization",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "151",
                        "locator": "75:33-75:41",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    ]
                  }
                ]
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "150",
                    "locator": "74:60-74:81",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "159",
              "locator": "79:1-80:38",
              "name": "Hospital Admission Time",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "159",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"Hospital Admission Time\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "155",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "158",
                        "s": [
                          {
                            "r": "158",
                            "s": [
                              {
                                "value": [
                                  "start of "
                                ]
                              },
                              {
                                "r": "157",
                                "s": [
                                  {
                                    "value": [
                                      "\"Hospitalization\"",
                                      "("
                                    ]
                                  },
                                  {
                                    "r": "156",
                                    "s": [
                                      {
                                        "value": [
                                          "Encounter"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ")"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "158",
                "locator": "80:2-80:38",
                "type": "Start",
                "operand": {
                  "localId": "157",
                  "locator": "80:11-80:38",
                  "name": "Hospitalization",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "156",
                      "locator": "80:29-80:37",
                      "name": "Encounter",
                      "type": "OperandRef"
                    }
                  ]
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "155",
                    "locator": "79:53-79:74",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "164",
              "locator": "83:1-84:32",
              "name": "Hospital Discharge Time",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "164",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"Hospital Discharge Time\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "160",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "163",
                        "s": [
                          {
                            "r": "163",
                            "s": [
                              {
                                "value": [
                                  "end of "
                                ]
                              },
                              {
                                "r": "162",
                                "s": [
                                  {
                                    "r": "161",
                                    "s": [
                                      {
                                        "value": [
                                          "Encounter"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "."
                                    ]
                                  },
                                  {
                                    "r": "162",
                                    "s": [
                                      {
                                        "value": [
                                          "relevantPeriod"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "163",
                "locator": "84:2-84:32",
                "type": "End",
                "operand": {
                  "localId": "162",
                  "locator": "84:9-84:32",
                  "path": "relevantPeriod",
                  "type": "Property",
                  "source": {
                    "localId": "161",
                    "locator": "84:9-84:17",
                    "name": "Encounter",
                    "type": "OperandRef"
                  }
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "160",
                    "locator": "83:53-83:74",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "177",
              "locator": "88:1-91:17",
              "name": "Hospital Arrival Time",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "177",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"Hospital Arrival Time\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "165",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "176",
                        "s": [
                          {
                            "r": "176",
                            "s": [
                              {
                                "value": [
                                  "start of "
                                ]
                              },
                              {
                                "r": "175",
                                "s": [
                                  {
                                    "r": "174",
                                    "s": [
                                      {
                                        "value": [
                                          "First",
                                          "("
                                        ]
                                      },
                                      {
                                        "r": "173",
                                        "s": [
                                          {
                                            "s": [
                                              {
                                                "r": "168",
                                                "s": [
                                                  {
                                                    "r": "167",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "("
                                                        ]
                                                      },
                                                      {
                                                        "r": "167",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Hospitalization Locations\"",
                                                              "("
                                                            ]
                                                          },
                                                          {
                                                            "r": "166",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "Encounter"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              ")"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          ")"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "HospitalLocation"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t"
                                            ]
                                          },
                                          {
                                            "r": "172",
                                            "s": [
                                              {
                                                "value": [
                                                  "sort by "
                                                ]
                                              },
                                              {
                                                "r": "171",
                                                "s": [
                                                  {
                                                    "r": "170",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "start of "
                                                        ]
                                                      },
                                                      {
                                                        "r": "169",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "locationPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t)"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "."
                                    ]
                                  },
                                  {
                                    "r": "175",
                                    "s": [
                                      {
                                        "value": [
                                          "locationPeriod"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "176",
                "locator": "89:2-91:17",
                "type": "Start",
                "operand": {
                  "localId": "175",
                  "locator": "89:11-91:17",
                  "path": "locationPeriod",
                  "type": "Property",
                  "source": {
                    "localId": "174",
                    "locator": "89:11-91:2",
                    "type": "First",
                    "source": {
                      "localId": "173",
                      "locator": "89:17-90:34",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "168",
                          "locator": "89:17-89:72",
                          "alias": "HospitalLocation",
                          "expression": {
                            "localId": "167",
                            "locator": "89:17-89:56",
                            "name": "Hospitalization Locations",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "166",
                                "locator": "89:46-89:54",
                                "name": "Encounter",
                                "type": "OperandRef"
                              }
                            ]
                          }
                        }
                      ],
                      "relationship": [

                      ],
                      "sort": {
                        "localId": "172",
                        "locator": "90:4-90:34",
                        "by": [
                          {
                            "localId": "171",
                            "locator": "90:12-90:34",
                            "direction": "asc",
                            "type": "ByExpression",
                            "expression": {
                              "localId": "170",
                              "locator": "90:12-90:34",
                              "type": "Start",
                              "operand": {
                                "localId": "169",
                                "locator": "90:21-90:34",
                                "name": "locationPeriod",
                                "type": "IdentifierRef"
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "165",
                    "locator": "88:51-88:72",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "190",
              "locator": "94:1-97:17",
              "name": "Hospital Departure Time",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "190",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"Hospital Departure Time\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "178",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "189",
                        "s": [
                          {
                            "r": "189",
                            "s": [
                              {
                                "value": [
                                  "end of "
                                ]
                              },
                              {
                                "r": "188",
                                "s": [
                                  {
                                    "r": "187",
                                    "s": [
                                      {
                                        "value": [
                                          "Last",
                                          "("
                                        ]
                                      },
                                      {
                                        "r": "186",
                                        "s": [
                                          {
                                            "s": [
                                              {
                                                "r": "181",
                                                "s": [
                                                  {
                                                    "r": "180",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "("
                                                        ]
                                                      },
                                                      {
                                                        "r": "180",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Hospitalization Locations\"",
                                                              "("
                                                            ]
                                                          },
                                                          {
                                                            "r": "179",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "Encounter"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              ")"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          ")"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "HospitalLocation"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t"
                                            ]
                                          },
                                          {
                                            "r": "185",
                                            "s": [
                                              {
                                                "value": [
                                                  "sort by "
                                                ]
                                              },
                                              {
                                                "r": "184",
                                                "s": [
                                                  {
                                                    "r": "183",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "start of "
                                                        ]
                                                      },
                                                      {
                                                        "r": "182",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "locationPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t)"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "."
                                    ]
                                  },
                                  {
                                    "r": "188",
                                    "s": [
                                      {
                                        "value": [
                                          "locationPeriod"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "189",
                "locator": "95:2-97:17",
                "type": "End",
                "operand": {
                  "localId": "188",
                  "locator": "95:9-97:17",
                  "path": "locationPeriod",
                  "type": "Property",
                  "source": {
                    "localId": "187",
                    "locator": "95:9-97:2",
                    "type": "Last",
                    "source": {
                      "localId": "186",
                      "locator": "95:14-96:34",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "181",
                          "locator": "95:14-95:69",
                          "alias": "HospitalLocation",
                          "expression": {
                            "localId": "180",
                            "locator": "95:14-95:53",
                            "name": "Hospitalization Locations",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "179",
                                "locator": "95:43-95:51",
                                "name": "Encounter",
                                "type": "OperandRef"
                              }
                            ]
                          }
                        }
                      ],
                      "relationship": [

                      ],
                      "sort": {
                        "localId": "185",
                        "locator": "96:4-96:34",
                        "by": [
                          {
                            "localId": "184",
                            "locator": "96:12-96:34",
                            "direction": "asc",
                            "type": "ByExpression",
                            "expression": {
                              "localId": "183",
                              "locator": "96:12-96:34",
                              "type": "Start",
                              "operand": {
                                "localId": "182",
                                "locator": "96:21-96:34",
                                "name": "locationPeriod",
                                "type": "IdentifierRef"
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "178",
                    "locator": "94:53-94:74",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "203",
              "locator": "101:1-105:17",
              "name": "Emergency Department Arrival Time",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "203",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"Emergency Department Arrival Time\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "191",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "202",
                        "s": [
                          {
                            "r": "202",
                            "s": [
                              {
                                "value": [
                                  "start of "
                                ]
                              },
                              {
                                "r": "201",
                                "s": [
                                  {
                                    "r": "200",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "200",
                                        "s": [
                                          {
                                            "value": [
                                              "singleton from "
                                            ]
                                          },
                                          {
                                            "r": "199",
                                            "s": [
                                              {
                                                "value": [
                                                  "( "
                                                ]
                                              },
                                              {
                                                "r": "199",
                                                "s": [
                                                  {
                                                    "s": [
                                                      {
                                                        "r": "194",
                                                        "s": [
                                                          {
                                                            "r": "193",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "( "
                                                                ]
                                                              },
                                                              {
                                                                "r": "193",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "\"Hospitalization Locations\"",
                                                                      "("
                                                                    ]
                                                                  },
                                                                  {
                                                                    "r": "192",
                                                                    "s": [
                                                                      {
                                                                        "value": [
                                                                          "Encounter"
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "value": [
                                                                      ")"
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  ")"
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              " ",
                                                              "HospitalLocation"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t\t\t\t"
                                                    ]
                                                  },
                                                  {
                                                    "r": "198",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "where "
                                                        ]
                                                      },
                                                      {
                                                        "r": "198",
                                                        "s": [
                                                          {
                                                            "r": "196",
                                                            "s": [
                                                              {
                                                                "r": "195",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "HospitalLocation"
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "value": [
                                                                  "."
                                                                ]
                                                              },
                                                              {
                                                                "r": "196",
                                                                "s": [
                                                                  {
                                                                    "value": [
                                                                      "code"
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "value": [
                                                              " in "
                                                            ]
                                                          },
                                                          {
                                                            "r": "197",
                                                            "s": [
                                                              {
                                                                "value": [
                                                                  "\"Emergency Department Visit\""
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "\n\t\t)"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t)"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "."
                                    ]
                                  },
                                  {
                                    "r": "201",
                                    "s": [
                                      {
                                        "value": [
                                          "locationPeriod"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "202",
                "locator": "102:2-105:17",
                "type": "Start",
                "operand": {
                  "localId": "201",
                  "locator": "102:11-105:17",
                  "path": "locationPeriod",
                  "type": "Property",
                  "source": {
                    "localId": "200",
                    "locator": "102:11-105:2",
                    "type": "SingletonFrom",
                    "operand": {
                      "localId": "199",
                      "locator": "102:28-104:3",
                      "type": "Query",
                      "source": [
                        {
                          "localId": "194",
                          "locator": "102:30-102:87",
                          "alias": "HospitalLocation",
                          "expression": {
                            "localId": "193",
                            "locator": "102:30-102:70",
                            "name": "Hospitalization Locations",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "192",
                                "locator": "102:60-102:68",
                                "name": "Encounter",
                                "type": "OperandRef"
                              }
                            ]
                          }
                        }
                      ],
                      "relationship": [

                      ],
                      "where": {
                        "localId": "198",
                        "locator": "103:5-103:63",
                        "type": "InValueSet",
                        "code": {
                          "localId": "196",
                          "locator": "103:11-103:31",
                          "path": "code",
                          "scope": "HospitalLocation",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "197",
                          "locator": "103:36-103:63",
                          "name": "Emergency Department Visit"
                        }
                      }
                    }
                  }
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "191",
                    "locator": "101:63-101:84",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "224",
              "locator": "110:1-115:2",
              "name": "First Inpatient Intensive Care Unit",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "224",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"First Inpatient Intensive Care Unit\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "204",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "223",
                        "s": [
                          {
                            "r": "223",
                            "s": [
                              {
                                "value": [
                                  "First",
                                  "("
                                ]
                              },
                              {
                                "r": "222",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "r": "207",
                                        "s": [
                                          {
                                            "r": "206",
                                            "s": [
                                              {
                                                "value": [
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "206",
                                                "s": [
                                                  {
                                                    "r": "205",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Encounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "206",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "facilityLocations"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "HospitalLocation"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "217",
                                    "s": [
                                      {
                                        "value": [
                                          "where "
                                        ]
                                      },
                                      {
                                        "r": "217",
                                        "s": [
                                          {
                                            "r": "211",
                                            "s": [
                                              {
                                                "r": "209",
                                                "s": [
                                                  {
                                                    "r": "208",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "HospitalLocation"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "209",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "code"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " in "
                                                ]
                                              },
                                              {
                                                "r": "210",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Intensive Care Unit\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t\tand "
                                            ]
                                          },
                                          {
                                            "r": "216",
                                            "s": [
                                              {
                                                "r": "213",
                                                "s": [
                                                  {
                                                    "r": "212",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "HospitalLocation"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "213",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "locationPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "during",
                                                  " "
                                                ]
                                              },
                                              {
                                                "r": "215",
                                                "s": [
                                                  {
                                                    "r": "214",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Encounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "215",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "221",
                                    "s": [
                                      {
                                        "value": [
                                          "sort by "
                                        ]
                                      },
                                      {
                                        "r": "220",
                                        "s": [
                                          {
                                            "r": "219",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "218",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "locationPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "223",
                "locator": "111:2-115:2",
                "type": "First",
                "source": {
                  "localId": "222",
                  "locator": "111:8-114:34",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "207",
                      "locator": "111:8-111:52",
                      "alias": "HospitalLocation",
                      "expression": {
                        "localId": "206",
                        "locator": "111:8-111:36",
                        "path": "facilityLocations",
                        "type": "Property",
                        "source": {
                          "localId": "205",
                          "locator": "111:9-111:17",
                          "name": "Encounter",
                          "type": "OperandRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "217",
                    "locator": "112:4-113:71",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "211",
                        "locator": "112:10-112:55",
                        "type": "InValueSet",
                        "code": {
                          "localId": "209",
                          "locator": "112:10-112:30",
                          "path": "code",
                          "scope": "HospitalLocation",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "210",
                          "locator": "112:35-112:55",
                          "name": "Intensive Care Unit"
                        }
                      },
                      {
                        "localId": "216",
                        "locator": "113:9-113:71",
                        "type": "IncludedIn",
                        "operand": [
                          {
                            "localId": "213",
                            "locator": "113:9-113:39",
                            "path": "locationPeriod",
                            "scope": "HospitalLocation",
                            "type": "Property"
                          },
                          {
                            "localId": "215",
                            "locator": "113:48-113:71",
                            "path": "relevantPeriod",
                            "type": "Property",
                            "source": {
                              "localId": "214",
                              "locator": "113:48-113:56",
                              "name": "Encounter",
                              "type": "OperandRef"
                            }
                          }
                        ]
                      }
                    ]
                  },
                  "sort": {
                    "localId": "221",
                    "locator": "114:4-114:34",
                    "by": [
                      {
                        "localId": "220",
                        "locator": "114:12-114:34",
                        "direction": "asc",
                        "type": "ByExpression",
                        "expression": {
                          "localId": "219",
                          "locator": "114:12-114:34",
                          "type": "Start",
                          "operand": {
                            "localId": "218",
                            "locator": "114:21-114:34",
                            "name": "locationPeriod",
                            "type": "IdentifierRef"
                          }
                        }
                      }
                    ]
                  }
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "204",
                    "locator": "110:65-110:86",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            }
          ]
        }
      }
    },
    {
      "library": {
        "identifier": {
          "id": "VTEICU",
          "version": "2.4.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_3",
              "version": "5.3"
            }
          ]
        },
        "parameters": {
          "def": [
            {
              "localId": "11",
              "locator": "13:1-13:49",
              "name": "Measurement Period",
              "accessLevel": "Public",
              "parameterTypeSpecifier": {
                "localId": "10",
                "locator": "13:32-13:49",
                "type": "IntervalTypeSpecifier",
                "pointType": {
                  "localId": "9",
                  "locator": "13:41-13:48",
                  "name": "{urn:hl7-org:elm-types:r1}DateTime",
                  "type": "NamedTypeSpecifier"
                }
              }
            }
          ]
        },
        "codeSystems": {
          "def": [
            {
              "localId": "2",
              "locator": "5:1-5:87",
              "name": "LOINC:2.46",
              "id": "LOINC",
              "version": "urn:hl7:version:2.46",
              "accessLevel": "Public"
            },
            {
              "localId": "3",
              "locator": "6:1-6:97",
              "name": "SNOMEDCT:2016-03",
              "id": "SNOMED-CT",
              "version": "urn:hl7:version:2016-03",
              "accessLevel": "Public"
            }
          ]
        },
        "valueSets": {
          "def": [
            {
              "localId": "4",
              "locator": "8:1-8:71",
              "name": "Intensive Care Unit",
              "id": "2.16.840.1.113762.1.4.1110.23",
              "accessLevel": "Public"
            }
          ]
        },
        "codes": {
          "def": [
            {
              "localId": "6",
              "locator": "10:1-10:66",
              "name": "Birthdate",
              "id": "21112-8",
              "display": "Birth date",
              "accessLevel": "Public",
              "codeSystem": {
                "localId": "5",
                "locator": "10:34-10:45",
                "name": "LOINC:2.46"
              }
            },
            {
              "localId": "8",
              "locator": "11:1-11:63",
              "name": "Dead",
              "id": "419099009",
              "display": "Dead",
              "accessLevel": "Public",
              "codeSystem": {
                "localId": "7",
                "locator": "11:31-11:48",
                "name": "SNOMEDCT:2016-03"
              }
            }
          ]
        },
        "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_3}Patient",
                  "templateId": "Patient",
                  "type": "Retrieve"
                }
              }
            },
            {
              "localId": "26",
              "locator": "17:1-18:93",
              "name": "ToDate",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "26",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"ToDate\"",
                          "(",
                          "Value",
                          " "
                        ]
                      },
                      {
                        "r": "12",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "25",
                        "s": [
                          {
                            "r": "25",
                            "s": [
                              {
                                "value": [
                                  "DateTime",
                                  "("
                                ]
                              },
                              {
                                "r": "14",
                                "s": [
                                  {
                                    "value": [
                                      "year from "
                                    ]
                                  },
                                  {
                                    "r": "13",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ", "
                                ]
                              },
                              {
                                "r": "16",
                                "s": [
                                  {
                                    "value": [
                                      "month from "
                                    ]
                                  },
                                  {
                                    "r": "15",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ", "
                                ]
                              },
                              {
                                "r": "18",
                                "s": [
                                  {
                                    "value": [
                                      "day from "
                                    ]
                                  },
                                  {
                                    "r": "17",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ", ",
                                  "0",
                                  ", ",
                                  "0",
                                  ", ",
                                  "0",
                                  ", ",
                                  "0",
                                  ", "
                                ]
                              },
                              {
                                "r": "24",
                                "s": [
                                  {
                                    "value": [
                                      "timezone from "
                                    ]
                                  },
                                  {
                                    "r": "23",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ")"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "25",
                "locator": "18:2-18:93",
                "type": "DateTime",
                "year": {
                  "localId": "14",
                  "locator": "18:11-18:25",
                  "precision": "Year",
                  "type": "DateTimeComponentFrom",
                  "operand": {
                    "localId": "13",
                    "locator": "18:21-18:25",
                    "name": "Value",
                    "type": "OperandRef"
                  }
                },
                "month": {
                  "localId": "16",
                  "locator": "18:28-18:43",
                  "precision": "Month",
                  "type": "DateTimeComponentFrom",
                  "operand": {
                    "localId": "15",
                    "locator": "18:39-18:43",
                    "name": "Value",
                    "type": "OperandRef"
                  }
                },
                "day": {
                  "localId": "18",
                  "locator": "18:46-18:59",
                  "precision": "Day",
                  "type": "DateTimeComponentFrom",
                  "operand": {
                    "localId": "17",
                    "locator": "18:55-18:59",
                    "name": "Value",
                    "type": "OperandRef"
                  }
                },
                "hour": {
                  "localId": "19",
                  "locator": "18:62",
                  "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                  "value": "0",
                  "type": "Literal"
                },
                "minute": {
                  "localId": "20",
                  "locator": "18:65",
                  "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                  "value": "0",
                  "type": "Literal"
                },
                "second": {
                  "localId": "21",
                  "locator": "18:68",
                  "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                  "value": "0",
                  "type": "Literal"
                },
                "millisecond": {
                  "localId": "22",
                  "locator": "18:71",
                  "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                  "value": "0",
                  "type": "Literal"
                },
                "timezoneOffset": {
                  "localId": "24",
                  "locator": "18:74-18:92",
                  "type": "TimezoneFrom",
                  "operand": {
                    "localId": "23",
                    "locator": "18:88-18:92",
                    "name": "Value",
                    "type": "OperandRef"
                  }
                }
              },
              "operand": [
                {
                  "name": "Value",
                  "operandTypeSpecifier": {
                    "localId": "12",
                    "locator": "17:32-17:39",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "34",
              "locator": "20:1-21:50",
              "name": "CalendarDayOfOrDayAfter",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "34",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"CalendarDayOfOrDayAfter\"",
                          "(",
                          "StartValue",
                          " "
                        ]
                      },
                      {
                        "r": "27",
                        "s": [
                          {
                            "value": [
                              "DateTime"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "33",
                        "s": [
                          {
                            "r": "33",
                            "s": [
                              {
                                "value": [
                                  "Interval["
                                ]
                              },
                              {
                                "r": "28",
                                "s": [
                                  {
                                    "value": [
                                      "StartValue"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ", "
                                ]
                              },
                              {
                                "r": "32",
                                "s": [
                                  {
                                    "value": [
                                      "ToDate",
                                      "("
                                    ]
                                  },
                                  {
                                    "r": "31",
                                    "s": [
                                      {
                                        "r": "29",
                                        "s": [
                                          {
                                            "value": [
                                              "StartValue"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " + "
                                        ]
                                      },
                                      {
                                        "r": "30",
                                        "s": [
                                          {
                                            "value": [
                                              "2 ",
                                              "days"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ")"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  ")"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "33",
                "locator": "21:2-21:50",
                "lowClosed": true,
                "highClosed": false,
                "type": "Interval",
                "low": {
                  "localId": "28",
                  "locator": "21:11-21:20",
                  "name": "StartValue",
                  "type": "OperandRef"
                },
                "high": {
                  "localId": "32",
                  "locator": "21:23-21:49",
                  "name": "ToDate",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "31",
                      "locator": "21:30-21:48",
                      "type": "Add",
                      "operand": [
                        {
                          "localId": "29",
                          "locator": "21:30-21:39",
                          "name": "StartValue",
                          "type": "OperandRef"
                        },
                        {
                          "localId": "30",
                          "locator": "21:43-21:48",
                          "value": 2,
                          "unit": "days",
                          "type": "Quantity"
                        }
                      ]
                    }
                  ]
                }
              },
              "operand": [
                {
                  "name": "StartValue",
                  "operandTypeSpecifier": {
                    "localId": "27",
                    "locator": "20:54-20:61",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "56",
              "locator": "26:1-31:2",
              "name": "First Intensive Care Unit",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "56",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"First Intensive Care Unit\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "37",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "55",
                        "s": [
                          {
                            "r": "55",
                            "s": [
                              {
                                "value": [
                                  "First",
                                  "("
                                ]
                              },
                              {
                                "r": "54",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "r": "39",
                                        "s": [
                                          {
                                            "r": "38",
                                            "s": [
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "Encounter",
                                                      ".",
                                                      "facilityLocations"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "L"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "49",
                                    "s": [
                                      {
                                        "value": [
                                          "where "
                                        ]
                                      },
                                      {
                                        "r": "49",
                                        "s": [
                                          {
                                            "r": "43",
                                            "s": [
                                              {
                                                "r": "41",
                                                "s": [
                                                  {
                                                    "r": "40",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "L"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "41",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "code"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " in "
                                                ]
                                              },
                                              {
                                                "r": "42",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Intensive Care Unit\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t\tand "
                                            ]
                                          },
                                          {
                                            "r": "48",
                                            "s": [
                                              {
                                                "r": "45",
                                                "s": [
                                                  {
                                                    "r": "44",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "L"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "45",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "locationPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " ",
                                                  "during",
                                                  " "
                                                ]
                                              },
                                              {
                                                "r": "47",
                                                "s": [
                                                  {
                                                    "r": "46",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Encounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "47",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "53",
                                    "s": [
                                      {
                                        "value": [
                                          "sort by "
                                        ]
                                      },
                                      {
                                        "r": "52",
                                        "s": [
                                          {
                                            "r": "51",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "50",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "locationPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "55",
                "locator": "27:2-31:2",
                "type": "First",
                "source": {
                  "localId": "54",
                  "locator": "27:8-30:34",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "39",
                      "locator": "27:8-27:36",
                      "alias": "L",
                      "expression": {
                        "localId": "38",
                        "locator": "27:8-27:34",
                        "path": "facilityLocations",
                        "type": "Property",
                        "source": {
                          "name": "Encounter",
                          "type": "OperandRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "49",
                    "locator": "28:4-29:56",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "43",
                        "locator": "28:10-28:40",
                        "type": "InValueSet",
                        "code": {
                          "localId": "41",
                          "locator": "28:10-28:15",
                          "path": "code",
                          "scope": "L",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "42",
                          "locator": "28:20-28:40",
                          "name": "Intensive Care Unit"
                        }
                      },
                      {
                        "localId": "48",
                        "locator": "29:9-29:56",
                        "type": "IncludedIn",
                        "operand": [
                          {
                            "localId": "45",
                            "locator": "29:9-29:24",
                            "path": "locationPeriod",
                            "scope": "L",
                            "type": "Property"
                          },
                          {
                            "localId": "47",
                            "locator": "29:33-29:56",
                            "path": "relevantPeriod",
                            "type": "Property",
                            "source": {
                              "localId": "46",
                              "locator": "29:33-29:41",
                              "name": "Encounter",
                              "type": "OperandRef"
                            }
                          }
                        ]
                      }
                    ]
                  },
                  "sort": {
                    "localId": "53",
                    "locator": "30:4-30:34",
                    "by": [
                      {
                        "localId": "52",
                        "locator": "30:12-30:34",
                        "direction": "asc",
                        "type": "ByExpression",
                        "expression": {
                          "localId": "51",
                          "locator": "30:12-30:34",
                          "type": "Start",
                          "operand": {
                            "localId": "50",
                            "locator": "30:21-30:34",
                            "name": "locationPeriod",
                            "type": "IdentifierRef"
                          }
                        }
                      }
                    ]
                  }
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "37",
                    "locator": "26:55-26:76",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            },
            {
              "localId": "60",
              "locator": "23:1-24:63",
              "name": "Start of First ICU",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "60",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"Start of First ICU\"",
                          "(",
                          "Encounter",
                          " "
                        ]
                      },
                      {
                        "r": "35",
                        "s": [
                          {
                            "value": [
                              "\"Encounter, Performed\""
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "59",
                        "s": [
                          {
                            "r": "59",
                            "s": [
                              {
                                "value": [
                                  "start of "
                                ]
                              },
                              {
                                "r": "58",
                                "s": [
                                  {
                                    "r": "57",
                                    "s": [
                                      {
                                        "value": [
                                          "\"First Intensive Care Unit\"",
                                          "("
                                        ]
                                      },
                                      {
                                        "r": "36",
                                        "s": [
                                          {
                                            "value": [
                                              "Encounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ")"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "."
                                    ]
                                  },
                                  {
                                    "r": "58",
                                    "s": [
                                      {
                                        "value": [
                                          "locationPeriod"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "59",
                "locator": "24:2-24:63",
                "type": "Start",
                "operand": {
                  "localId": "58",
                  "locator": "24:11-24:63",
                  "path": "locationPeriod",
                  "type": "Property",
                  "source": {
                    "localId": "57",
                    "locator": "24:11-24:48",
                    "name": "First Intensive Care Unit",
                    "type": "FunctionRef",
                    "operand": [
                      {
                        "localId": "36",
                        "locator": "24:39-24:47",
                        "name": "Encounter",
                        "type": "OperandRef"
                      }
                    ]
                  }
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "35",
                    "locator": "23:48-23:69",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            }
          ]
        }
      }
    }
  ],
  "elm_annotations": {
    "VenousThromboembolismProphylaxis": {
      "statements": [
        {
          "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": "47"
                }
              ],
              "ref_id": "48"
            }
          ],
          "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": "49"
                }
              ],
              "ref_id": "50"
            }
          ],
          "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": "51"
                }
              ],
              "ref_id": "52"
            }
          ],
          "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": "53"
                }
              ],
              "ref_id": "54"
            }
          ],
          "define_name": "SDE Sex"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Admission Without VTE or Obstetrical Conditions\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "( "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "Global.\"Inpatient Encounter\""
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "70"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " InpatientEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "71"
                                }
                              ]
                            },
                            {
                              "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": "72"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": " EncounterDiagnoses"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "73"
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\n            "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "where "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "( "
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "children": [
                                                                            {
                                                                              "children": [
                                                                                {
                                                                                  "text": "EncounterDiagnoses"
                                                                                }
                                                                              ]
                                                                            }
                                                                          ],
                                                                          "ref_id": "74"
                                                                        },
                                                                        {
                                                                          "children": [
                                                                            {
                                                                              "text": " in "
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "children": [
                                                                            {
                                                                              "children": [
                                                                                {
                                                                                  "text": "\"Obstetrics\""
                                                                                }
                                                                              ]
                                                                            }
                                                                          ],
                                                                          "ref_id": "75"
                                                                        }
                                                                      ],
                                                                      "node_type": "InValueSet",
                                                                      "ref_id": "76"
                                                                    },
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "\n                or "
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "children": [
                                                                            {
                                                                              "children": [
                                                                                {
                                                                                  "text": "EncounterDiagnoses"
                                                                                }
                                                                              ]
                                                                            }
                                                                          ],
                                                                          "ref_id": "77"
                                                                        },
                                                                        {
                                                                          "children": [
                                                                            {
                                                                              "text": " in "
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "children": [
                                                                            {
                                                                              "children": [
                                                                                {
                                                                                  "text": "\"Venous Thromboembolism\""
                                                                                }
                                                                              ]
                                                                            }
                                                                          ],
                                                                          "ref_id": "78"
                                                                        }
                                                                      ],
                                                                      "node_type": "InValueSet",
                                                                      "ref_id": "79"
                                                                    }
                                                                  ],
                                                                  "node_type": "Or",
                                                                  "ref_id": "80"
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "\n                or "
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "children": [
                                                                            {
                                                                              "text": "EncounterDiagnoses"
                                                                            }
                                                                          ]
                                                                        }
                                                                      ],
                                                                      "ref_id": "81"
                                                                    },
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": " in "
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "children": [
                                                                            {
                                                                              "text": "\"Obstetrics VTE\""
                                                                            }
                                                                          ]
                                                                        }
                                                                      ],
                                                                      "ref_id": "82"
                                                                    }
                                                                  ],
                                                                  "node_type": "InValueSet",
                                                                  "ref_id": "83"
                                                                }
                                                              ],
                                                              "ref_id": "84"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "\n            )"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "84"
                                                        }
                                                      ],
                                                      "ref_id": "84"
                                                    }
                                                  ],
                                                  "node_type": "Query",
                                                  "ref_id": "85"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\n        )"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Query",
                                              "ref_id": "85"
                                            }
                                          ],
                                          "node_type": "Exists",
                                          "ref_id": "86"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "\n      )"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Exists",
                                      "ref_id": "86"
                                    }
                                  ],
                                  "ref_id": "87"
                                }
                              ],
                              "ref_id": "87"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "88"
                        },
                        {
                          "children": [
                            {
                              "text": "\n  )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "88"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    intersect "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "( "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "Global.\"Inpatient Encounter\""
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "89"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " InpatientEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "90"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n        "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "without "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "( "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "[\"Diagnosis\": "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "\"Obstetrics\""
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "]"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Retrieve",
                                                  "ref_id": "91"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\n          union "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "[\"Diagnosis\": "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "\"Venous Thromboembolism\""
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "]"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Retrieve",
                                                  "ref_id": "92"
                                                }
                                              ],
                                              "node_type": "Union",
                                              "ref_id": "93"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n          union "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "[\"Diagnosis\": "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Obstetrics VTE\""
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "]"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Retrieve",
                                              "ref_id": "94"
                                            }
                                          ],
                                          "node_type": "Union",
                                          "ref_id": "95"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " )"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Union",
                                      "ref_id": "95"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " Diagnosis"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "96"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n          such that "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "Diagnosis"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "97"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "prevalencePeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "98"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "98"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " starts during "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "Global"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "99"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Hospitalization\"("
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "InpatientEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "AliasRef",
                                              "ref_id": "100"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": ")"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "FunctionRef",
                                          "ref_id": "101"
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "101"
                                    }
                                  ],
                                  "node_type": "In",
                                  "ref_id": "102"
                                }
                              ],
                              "ref_id": "103"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "104"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "104"
                    }
                  ],
                  "node_type": "Intersect",
                  "ref_id": "105"
                }
              ],
              "ref_id": "106"
            }
          ],
          "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": "55"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " InpatientEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "56"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "with "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Patient Characteristic Birthdate\"]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "57"
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "57"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " BirthDate"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "58"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n        such that "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "Global"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "59"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"CalendarAgeInYearsAt\"("
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "BirthDate"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "60"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "birthDatetime"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "61"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "61"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": ", "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "start of "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "InpatientEncounter"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "62"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "."
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "relevantPeriod"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "Property",
                                                      "ref_id": "63"
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "63"
                                                }
                                              ],
                                              "node_type": "Start",
                                              "ref_id": "64"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": ")"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "FunctionRef",
                                          "ref_id": "65"
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "65"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "&gt;= 18"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "GreaterOrEqual",
                                  "ref_id": "67"
                                }
                              ],
                              "ref_id": "68"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "69"
                        },
                        {
                          "children": [
                            {
                              "text": "\n  )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "69"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    intersect "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "\"Admission Without VTE or Obstetrical Conditions\""
                            }
                          ]
                        }
                      ],
                      "node_type": "ExpressionRef",
                      "ref_id": "107"
                    }
                  ],
                  "node_type": "Intersect",
                  "ref_id": "108"
                }
              ],
              "ref_id": "109"
            }
          ],
          "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": "110"
                }
              ],
              "ref_id": "111"
            }
          ],
          "define_name": "Initial Population"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Denominator\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Initial Population\""
                        }
                      ]
                    }
                  ],
                  "node_type": "ExpressionRef",
                  "ref_id": "112"
                }
              ],
              "ref_id": "113"
            }
          ],
          "define_name": "Denominator"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"ED Visit\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "[\"Encounter, Performed\": "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "\"Emergency Department Visit\""
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "]"
                        }
                      ]
                    }
                  ],
                  "node_type": "Retrieve",
                  "ref_id": "114"
                }
              ],
              "ref_id": "115"
            }
          ],
          "define_name": "ED Visit"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"No VTE Prophylaxis Device Applied or Ordered\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "[\"Device, Not Applied\": "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Intermittent pneumatic compression devices (IPC)\""
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "]"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "116"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n    union "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "[\"Device, Not Applied\": "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Venous foot pumps (VFP)\""
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "]"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "117"
                                    }
                                  ],
                                  "node_type": "Union",
                                  "ref_id": "118"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n    union "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Device, Not Applied\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Graduated compression stockings (GCS)\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "119"
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "120"
                            },
                            {
                              "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": "121"
                            }
                          ],
                          "node_type": "Union",
                          "ref_id": "122"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    union "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "[\"Device, Not Ordered\": "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Venous foot pumps (VFP)\""
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "]"
                                }
                              ]
                            }
                          ],
                          "node_type": "Retrieve",
                          "ref_id": "123"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "124"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    union "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "[\"Device, Not Ordered\": "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Graduated compression stockings (GCS)\""
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "]"
                            }
                          ]
                        }
                      ],
                      "node_type": "Retrieve",
                      "ref_id": "125"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "126"
                }
              ],
              "ref_id": "127"
            }
          ],
          "define_name": "No VTE Prophylaxis Device Applied or Ordered"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"No VTE Prophylaxis Device Due to Medical Reason During ED Visit\":\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": "128"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "129"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"ED Visit\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "130"
                            },
                            {
                              "children": [
                                {
                                  "text": " EDVisit"
                                }
                              ]
                            }
                          ],
                          "ref_id": "131"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Device Applied or Ordered\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "132"
                            },
                            {
                              "children": [
                                {
                                  "text": " NoVTEDevice"
                                }
                              ]
                            }
                          ],
                          "ref_id": "133"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "EDVisit"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "134"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "135"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "135"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "ends "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "1 hour"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Quantity",
                                          "ref_id": "139"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " or less on or before"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "In",
                                      "ref_id": "140"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "QualifyingEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "136"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "137"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "137"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "138"
                                    }
                                  ],
                                  "node_type": "In",
                                  "ref_id": "140"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n      and "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "NoVTEDevice"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "141"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "negationRationale"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "142"
                                        }
                                      ],
                                      "ref_id": "142"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " in "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Medical Reason\""
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "143"
                                    }
                                  ],
                                  "node_type": "InValueSet",
                                  "ref_id": "144"
                                }
                              ],
                              "node_type": "And",
                              "ref_id": "145"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "NoVTEDevice"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "146"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "147"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "147"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "EDVisit"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "148"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "149"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "149"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "150"
                            }
                          ],
                          "ref_id": "151"
                        }
                      ],
                      "ref_id": "151"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "152"
                        }
                      ],
                      "ref_id": "153"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "154"
                }
              ],
              "ref_id": "155"
            }
          ],
          "define_name": "No VTE Prophylaxis Device Due to Medical Reason During ED Visit"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission\":\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": "156"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "157"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Device Applied or Ordered\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "158"
                            },
                            {
                              "children": [
                                {
                                  "text": " NoVTEDevice"
                                }
                              ]
                            }
                          ],
                          "ref_id": "159"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "NoVTEDevice"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "160"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "negationRationale"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "161"
                                    }
                                  ],
                                  "ref_id": "161"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " in "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Medical Reason\""
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "162"
                                }
                              ],
                              "node_type": "InValueSet",
                              "ref_id": "163"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "NoVTEDevice"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "164"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "165"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "165"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "VTEICU"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "166"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarDayOfOrDayAfter\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "start of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "QualifyingEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "167"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "168"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "168"
                                            }
                                          ],
                                          "node_type": "Start",
                                          "ref_id": "169"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "170"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "170"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "171"
                            }
                          ],
                          "ref_id": "172"
                        }
                      ],
                      "ref_id": "172"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "173"
                        }
                      ],
                      "ref_id": "174"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "175"
                }
              ],
              "ref_id": "176"
            }
          ],
          "define_name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"No VTE Prophylaxis Medication Administered or Ordered\":\n  "
                    }
                  ]
                },
                {
                  "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"
                                        }
                                      ],
                                      "node_type": "Union",
                                      "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 Ordered\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Low Dose Unfractionated Heparin for VTE Prophylaxis\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "184"
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "185"
                            },
                            {
                              "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": "186"
                            }
                          ],
                          "node_type": "Union",
                          "ref_id": "187"
                        },
                        {
                          "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": "188"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "189"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    union "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "[\"Medication, Not Ordered\": "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Warfarin\""
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "]"
                            }
                          ]
                        }
                      ],
                      "node_type": "Retrieve",
                      "ref_id": "190"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "191"
                }
              ],
              "ref_id": "192"
            }
          ],
          "define_name": "No VTE Prophylaxis Medication Administered or Ordered"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"No VTE Prophylaxis Medication Due to Medical Reason During ED Visit\":\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": "193"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "194"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"ED Visit\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "195"
                            },
                            {
                              "children": [
                                {
                                  "text": " EDVisit"
                                }
                              ]
                            }
                          ],
                          "ref_id": "196"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "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    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "EDVisit"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "199"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "200"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "200"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "ends "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "1 hour"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Quantity",
                                          "ref_id": "204"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " or less on or before"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "In",
                                      "ref_id": "205"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "QualifyingEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "201"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "202"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "202"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "203"
                                    }
                                  ],
                                  "node_type": "In",
                                  "ref_id": "205"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n      and "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "NoVTEMedication"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "206"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "negationRationale"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "207"
                                        }
                                      ],
                                      "ref_id": "207"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " in "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Medical Reason\""
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "208"
                                    }
                                  ],
                                  "node_type": "InValueSet",
                                  "ref_id": "209"
                                }
                              ],
                              "node_type": "And",
                              "ref_id": "210"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "NoVTEMedication"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "211"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "212"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "212"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "EDVisit"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "213"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "214"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "214"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "215"
                            }
                          ],
                          "ref_id": "216"
                        }
                      ],
                      "ref_id": "216"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "217"
                        }
                      ],
                      "ref_id": "218"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "219"
                }
              ],
              "ref_id": "220"
            }
          ],
          "define_name": "No VTE Prophylaxis Medication Due to Medical Reason During ED Visit"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission\":\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": "221"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "222"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "223"
                            },
                            {
                              "children": [
                                {
                                  "text": " NoVTEMedication"
                                }
                              ]
                            }
                          ],
                          "ref_id": "224"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "NoVTEMedication"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "225"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "negationRationale"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "226"
                                    }
                                  ],
                                  "ref_id": "226"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " in "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Medical Reason\""
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "227"
                                }
                              ],
                              "node_type": "InValueSet",
                              "ref_id": "228"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "NoVTEMedication"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "229"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "230"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "230"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "VTEICU"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "231"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarDayOfOrDayAfter\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "start of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "QualifyingEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "232"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "233"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "233"
                                            }
                                          ],
                                          "node_type": "Start",
                                          "ref_id": "234"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "235"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "235"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "236"
                            }
                          ],
                          "ref_id": "237"
                        }
                      ],
                      "ref_id": "237"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "238"
                        }
                      ],
                      "ref_id": "239"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "240"
                }
              ],
              "ref_id": "241"
            }
          ],
          "define_name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Admission"
        },
        {
          "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": "242"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "243"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Procedure, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"General or Neuraxial Anesthesia\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "244"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "244"
                            },
                            {
                              "children": [
                                {
                                  "text": " AnesthesiaProcedure"
                                }
                              ]
                            }
                          ],
                          "ref_id": "245"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Device Applied or Ordered\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "246"
                            },
                            {
                              "children": [
                                {
                                  "text": " NoVTEDevice"
                                }
                              ]
                            }
                          ],
                          "ref_id": "247"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "NoVTEDevice"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "248"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "negationRationale"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "249"
                                        }
                                      ],
                                      "ref_id": "249"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " in "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Medical Reason\""
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "250"
                                    }
                                  ],
                                  "node_type": "InValueSet",
                                  "ref_id": "251"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n      and "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "AnesthesiaProcedure"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "252"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "253"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "253"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "ends "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "1 day"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Quantity",
                                          "ref_id": "257"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " after day of"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "SameAs",
                                      "ref_id": "258"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "QualifyingEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "254"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "255"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "255"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "256"
                                    }
                                  ],
                                  "node_type": "SameAs",
                                  "ref_id": "258"
                                }
                              ],
                              "node_type": "And",
                              "ref_id": "259"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "NoVTEDevice"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "260"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "261"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "261"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "VTEICU"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "262"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarDayOfOrDayAfter\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "end of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "AnesthesiaProcedure"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "263"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "264"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "264"
                                            }
                                          ],
                                          "node_type": "End",
                                          "ref_id": "265"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "266"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "266"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "267"
                            }
                          ],
                          "ref_id": "268"
                        }
                      ],
                      "ref_id": "268"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "269"
                        }
                      ],
                      "ref_id": "270"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "271"
                }
              ],
              "ref_id": "272"
            }
          ],
          "define_name": "No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Procedure"
        },
        {
          "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": "273"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "274"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Procedure, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"General or Neuraxial Anesthesia\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "275"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "275"
                            },
                            {
                              "children": [
                                {
                                  "text": " AnesthesiaProcedure"
                                }
                              ]
                            }
                          ],
                          "ref_id": "276"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Medication Administered or Ordered\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "277"
                            },
                            {
                              "children": [
                                {
                                  "text": " NoVTEMedication"
                                }
                              ]
                            }
                          ],
                          "ref_id": "278"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "NoVTEMedication"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "279"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "negationRationale"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "280"
                                        }
                                      ],
                                      "ref_id": "280"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " in "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Medical Reason\""
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "281"
                                    }
                                  ],
                                  "node_type": "InValueSet",
                                  "ref_id": "282"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n      and "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "AnesthesiaProcedure"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "283"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "284"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "284"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "ends "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "1 day"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Quantity",
                                          "ref_id": "288"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " after day of"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "SameAs",
                                      "ref_id": "289"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "QualifyingEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "285"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "286"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "286"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "287"
                                    }
                                  ],
                                  "node_type": "SameAs",
                                  "ref_id": "289"
                                }
                              ],
                              "node_type": "And",
                              "ref_id": "290"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "NoVTEMedication"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "291"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "292"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "292"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "VTEICU"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "293"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarDayOfOrDayAfter\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "end of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "AnesthesiaProcedure"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "294"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "295"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "295"
                                            }
                                          ],
                                          "node_type": "End",
                                          "ref_id": "296"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "297"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "297"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "298"
                            }
                          ],
                          "ref_id": "299"
                        }
                      ],
                      "ref_id": "299"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "300"
                        }
                      ],
                      "ref_id": "301"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "302"
                }
              ],
              "ref_id": "303"
            }
          ],
          "define_name": "No VTE Prophylaxis Medication Due to Medical Reason on Day of or Day After Procedure"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Encounter Less Than 2 Days\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "304"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "305"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Global"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "306"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"LengthInDays\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "QualifyingEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "307"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "308"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "308"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "309"
                                }
                              ],
                              "node_type": "FunctionRef",
                              "ref_id": "309"
                            },
                            {
                              "children": [
                                {
                                  "text": "&lt; 2"
                                }
                              ]
                            }
                          ],
                          "ref_id": "311"
                        }
                      ],
                      "ref_id": "311"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "312"
                }
              ],
              "ref_id": "313"
            }
          ],
          "define_name": "Encounter Less Than 2 Days"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"SCIP VTE Selected Surgery\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Procedure, Performed\": "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"General Surgery\""
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "314"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "\n    union "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Procedure, Performed\": "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"Gynecological Surgery\""
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "315"
                                        }
                                      ],
                                      "node_type": "Union",
                                      "ref_id": "316"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n    union "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "[\"Procedure, Performed\": "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Hip Fracture Surgery\""
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "]"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "317"
                                    }
                                  ],
                                  "node_type": "Union",
                                  "ref_id": "318"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n    union "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Procedure, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Hip Replacement Surgery\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "319"
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "320"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n    union "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "[\"Procedure, Performed\": "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Intracranial Neurosurgery\""
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "text": "]"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "321"
                            }
                          ],
                          "node_type": "Union",
                          "ref_id": "322"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    union "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "[\"Procedure, Performed\": "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Knee Replacement Surgery\""
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "]"
                                }
                              ]
                            }
                          ],
                          "node_type": "Retrieve",
                          "ref_id": "323"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "324"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    union "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "[\"Procedure, Performed\": "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Urological Surgery\""
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "]"
                            }
                          ]
                        }
                      ],
                      "node_type": "Retrieve",
                      "ref_id": "325"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "326"
                }
              ],
              "ref_id": "327"
            }
          ],
          "define_name": "SCIP VTE Selected Surgery"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Intervention Comfort Measures\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "[\"Intervention, Order\": "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Comfort Measures\""
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "]"
                            }
                          ]
                        }
                      ],
                      "node_type": "Retrieve",
                      "ref_id": "328"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    union "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "[\"Intervention, Performed\": "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Comfort Measures\""
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "]"
                            }
                          ]
                        }
                      ],
                      "node_type": "Retrieve",
                      "ref_id": "329"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "330"
                }
              ],
              "ref_id": "331"
            }
          ],
          "define_name": "Intervention Comfort Measures"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Intervention Comfort Measures on Day of or Day After Start of Hospitalization\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "332"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "333"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Intervention Comfort Measures\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "334"
                            },
                            {
                              "children": [
                                {
                                  "text": " ComfortMeasures"
                                }
                              ]
                            }
                          ],
                          "ref_id": "335"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Coalesce("
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "start of "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "ComfortMeasures"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "336"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "337"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "337"
                                    }
                                  ],
                                  "node_type": "Start",
                                  "ref_id": "338"
                                },
                                {
                                  "children": [
                                    {
                                      "text": ", "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "ComfortMeasures"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "339"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "340"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "340"
                                },
                                {
                                  "children": [
                                    {
                                      "text": ")"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Coalesce",
                              "ref_id": "341"
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "1 day"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Quantity",
                                  "ref_id": "346"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " or less on or after day of"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "347"
                            },
                            {
                              "children": [
                                {
                                  "text": " "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "start of "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Global"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "342"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Hospitalization\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "QualifyingEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "AliasRef",
                                          "ref_id": "343"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "344"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "344"
                                }
                              ],
                              "node_type": "Start",
                              "ref_id": "345"
                            }
                          ],
                          "node_type": "In",
                          "ref_id": "347"
                        }
                      ],
                      "ref_id": "348"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "349"
                }
              ],
              "ref_id": "350"
            }
          ],
          "define_name": "Intervention Comfort Measures on Day of or Day After Start of Hospitalization"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Intervention Comfort Measures 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": "351"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "352"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Procedure, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"General or Neuraxial Anesthesia\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "353"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "353"
                            },
                            {
                              "children": [
                                {
                                  "text": " AnesthesiaProcedure"
                                }
                              ]
                            }
                          ],
                          "ref_id": "354"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Intervention Comfort Measures\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "355"
                            },
                            {
                              "children": [
                                {
                                  "text": " ComfortMeasures"
                                }
                              ]
                            }
                          ],
                          "ref_id": "356"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "AnesthesiaProcedure"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "357"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "358"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "358"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "ends "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "1 day"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Quantity",
                                      "ref_id": "362"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " after day of"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "SameAs",
                                  "ref_id": "363"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "start of "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "QualifyingEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "359"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "360"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "360"
                                    }
                                  ],
                                  "node_type": "Start",
                                  "ref_id": "361"
                                }
                              ],
                              "node_type": "SameAs",
                              "ref_id": "363"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Coalesce("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "ComfortMeasures"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "364"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "365"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "365"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "366"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ", "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "ComfortMeasures"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "367"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "authorDatetime"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "368"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "368"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Coalesce",
                                  "ref_id": "369"
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "1 day"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Quantity",
                                      "ref_id": "373"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " or less on or after day of"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "In",
                                  "ref_id": "374"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "end of "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "AnesthesiaProcedure"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "370"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "371"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "371"
                                    }
                                  ],
                                  "node_type": "End",
                                  "ref_id": "372"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "374"
                            }
                          ],
                          "ref_id": "375"
                        }
                      ],
                      "ref_id": "375"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "376"
                        }
                      ],
                      "ref_id": "377"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "378"
                }
              ],
              "ref_id": "379"
            }
          ],
          "define_name": "Intervention Comfort Measures on Day of or Day After Procedure"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"VTE Prophylaxis by Medication Administered or Device Applied\":\n  "
                    }
                  ]
                },
                {
                  "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": "380"
                                                            }
                                                          ],
                                                          "node_type": "Retrieve",
                                                          "ref_id": "380"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " VTEMedication"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "381"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\n      "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "where "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "VTEMedication"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "ref_id": "382"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "."
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "route"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "ref_id": "383"
                                                            }
                                                          ],
                                                          "ref_id": "383"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " in "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "\"Subcutaneous route\""
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "384"
                                                        }
                                                      ],
                                                      "ref_id": "385"
                                                    }
                                                  ],
                                                  "ref_id": "385"
                                                }
                                              ],
                                              "node_type": "Query",
                                              "ref_id": "386"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n  )"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Query",
                                          "ref_id": "386"
                                        },
                                        {
                                          "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": "387"
                                        }
                                      ],
                                      "node_type": "Union",
                                      "ref_id": "388"
                                    },
                                    {
                                      "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": "389"
                                    }
                                  ],
                                  "node_type": "Union",
                                  "ref_id": "390"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n    union "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Medication, Administered\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Warfarin\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "391"
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "392"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n    union "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "[\"Device, Applied\": "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Intermittent pneumatic compression devices (IPC)\""
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "text": "]"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "393"
                            }
                          ],
                          "node_type": "Union",
                          "ref_id": "394"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    union "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "[\"Device, Applied\": "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Venous foot pumps (VFP)\""
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "]"
                                }
                              ]
                            }
                          ],
                          "node_type": "Retrieve",
                          "ref_id": "395"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "396"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    union "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "[\"Device, Applied\": "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Graduated compression stockings (GCS)\""
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "]"
                            }
                          ]
                        }
                      ],
                      "node_type": "Retrieve",
                      "ref_id": "397"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "398"
                }
              ],
              "ref_id": "399"
            }
          ],
          "define_name": "VTE Prophylaxis by Medication Administered or Device Applied"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"VTE Prophylaxis Received on Day of or Day After Admission or Procedure\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "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": "400"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " QualifyingEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "401"
                                },
                                {
                                  "children": [
                                    {
                                      "text": ",\n      "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"VTE Prophylaxis by Medication Administered or Device Applied\""
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "402"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " HasVTEProphylaxis"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "403"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "where "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "HasVTEProphylaxis"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "404"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "405"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "405"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " starts during "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "VTEICU"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "406"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"CalendarDayOfOrDayAfter\"("
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "start of "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "QualifyingEncounter"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "407"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "."
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "relevantPeriod"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "Property",
                                                      "ref_id": "408"
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "408"
                                                }
                                              ],
                                              "node_type": "Start",
                                              "ref_id": "409"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": ")"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "FunctionRef",
                                          "ref_id": "410"
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "410"
                                    }
                                  ],
                                  "ref_id": "411"
                                }
                              ],
                              "ref_id": "411"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "return "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "QualifyingEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "AliasRef",
                                  "ref_id": "412"
                                }
                              ],
                              "ref_id": "413"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "414"
                        },
                        {
                          "children": [
                            {
                              "text": "\n  )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "414"
                    },
                    {
                      "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": "415"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " QualifyingEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "416"
                                },
                                {
                                  "children": [
                                    {
                                      "text": ",\n        "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Procedure, Performed\": "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"General or Neuraxial Anesthesia\""
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "417"
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "417"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " AnesthesiaProcedure"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "418"
                                },
                                {
                                  "children": [
                                    {
                                      "text": ",\n        "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"VTE Prophylaxis by Medication Administered or Device Applied\""
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "419"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " HasVTEProphylaxis"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "420"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n        "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "where "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "AnesthesiaProcedure"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "421"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "422"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "422"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "ends "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "1 day"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Quantity",
                                              "ref_id": "426"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": " after day of"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "SameAs",
                                          "ref_id": "427"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "start of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "QualifyingEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "423"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "424"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "424"
                                            }
                                          ],
                                          "node_type": "Start",
                                          "ref_id": "425"
                                        }
                                      ],
                                      "node_type": "SameAs",
                                      "ref_id": "427"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n          and "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "HasVTEProphylaxis"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "428"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "429"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "429"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " starts during "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "VTEICU"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "430"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"CalendarDayOfOrDayAfter\"("
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "end of "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "AnesthesiaProcedure"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "431"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "."
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "relevantPeriod"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "node_type": "Property",
                                                          "ref_id": "432"
                                                        }
                                                      ],
                                                      "node_type": "Property",
                                                      "ref_id": "432"
                                                    }
                                                  ],
                                                  "node_type": "End",
                                                  "ref_id": "433"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": ")"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "FunctionRef",
                                              "ref_id": "434"
                                            }
                                          ],
                                          "node_type": "FunctionRef",
                                          "ref_id": "434"
                                        }
                                      ],
                                      "node_type": "In",
                                      "ref_id": "435"
                                    }
                                  ],
                                  "ref_id": "436"
                                }
                              ],
                              "ref_id": "436"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n        "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "return "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "QualifyingEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "AliasRef",
                                  "ref_id": "437"
                                }
                              ],
                              "ref_id": "438"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "439"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "439"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "440"
                }
              ],
              "ref_id": "441"
            }
          ],
          "define_name": "VTE Prophylaxis Received on Day of or Day After Admission or Procedure"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "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": "442"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " QualifyingEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "443"
                                },
                                {
                                  "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": "444"
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "444"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " FactorXaMedication"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "445"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "where "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "FactorXaMedication"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "446"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "447"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "447"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " starts during "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "VTEICU"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "448"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"CalendarDayOfOrDayAfter\"("
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "start of "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "QualifyingEncounter"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "449"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "."
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "relevantPeriod"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "Property",
                                                      "ref_id": "450"
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "450"
                                                }
                                              ],
                                              "node_type": "Start",
                                              "ref_id": "451"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": ")"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "FunctionRef",
                                          "ref_id": "452"
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "452"
                                    }
                                  ],
                                  "ref_id": "453"
                                }
                              ],
                              "ref_id": "453"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "return "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "QualifyingEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "AliasRef",
                                  "ref_id": "454"
                                }
                              ],
                              "ref_id": "455"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "456"
                        },
                        {
                          "children": [
                            {
                              "text": "\n  )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "456"
                    },
                    {
                      "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": "457"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " QualifyingEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "458"
                                },
                                {
                                  "children": [
                                    {
                                      "text": ",\n        "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Procedure, Performed\": "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"General or Neuraxial Anesthesia\""
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "459"
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "459"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " AnesthesiaProcedure"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "460"
                                },
                                {
                                  "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": "461"
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "461"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " FactorXaMedication"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "462"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n        "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "where "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "AnesthesiaProcedure"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "463"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "464"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "464"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "ends "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "1 day"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Quantity",
                                              "ref_id": "468"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": " after day of"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "SameAs",
                                          "ref_id": "469"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "start of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "QualifyingEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "465"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "466"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "466"
                                            }
                                          ],
                                          "node_type": "Start",
                                          "ref_id": "467"
                                        }
                                      ],
                                      "node_type": "SameAs",
                                      "ref_id": "469"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n          and "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "FactorXaMedication"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "470"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "471"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "471"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " starts during "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "VTEICU"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "472"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"CalendarDayOfOrDayAfter\"("
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "end of "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "AnesthesiaProcedure"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "473"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "."
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "relevantPeriod"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "node_type": "Property",
                                                          "ref_id": "474"
                                                        }
                                                      ],
                                                      "node_type": "Property",
                                                      "ref_id": "474"
                                                    }
                                                  ],
                                                  "node_type": "End",
                                                  "ref_id": "475"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": ")"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "FunctionRef",
                                              "ref_id": "476"
                                            }
                                          ],
                                          "node_type": "FunctionRef",
                                          "ref_id": "476"
                                        }
                                      ],
                                      "node_type": "In",
                                      "ref_id": "477"
                                    }
                                  ],
                                  "ref_id": "478"
                                }
                              ],
                              "ref_id": "478"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n        "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "return "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "QualifyingEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "AliasRef",
                                  "ref_id": "479"
                                }
                              ],
                              "ref_id": "480"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "481"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "481"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "482"
                }
              ],
              "ref_id": "483"
            }
          ],
          "define_name": "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": "484"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " QualifyingEncounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "485"
                                    }
                                  ]
                                },
                                {
                                  "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": "486"
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "486"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " AtrialFibrillation"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "487"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n        such that "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "AtrialFibrillation"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "488"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "prevalencePeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "489"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "489"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " starts on or before "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "end of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "QualifyingEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "490"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "491"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "491"
                                            }
                                          ],
                                          "node_type": "End",
                                          "ref_id": "492"
                                        }
                                      ],
                                      "node_type": "SameOrBefore",
                                      "ref_id": "493"
                                    }
                                  ],
                                  "ref_id": "494"
                                }
                              ],
                              "node_type": "Query",
                              "ref_id": "495"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n  )"
                                }
                              ]
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "495"
                        },
                        {
                          "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": "496"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " QualifyingEncounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "497"
                                    }
                                  ]
                                },
                                {
                                  "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": "498"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " EncounterDiagnosis"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "499"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\n            "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "where "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "EncounterDiagnosis"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "500"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " in "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "\"Atrial Fibrillation/Flutter\""
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "501"
                                                        }
                                                      ],
                                                      "ref_id": "502"
                                                    }
                                                  ],
                                                  "ref_id": "502"
                                                }
                                              ],
                                              "node_type": "Query",
                                              "ref_id": "503"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n        )"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Query",
                                          "ref_id": "503"
                                        }
                                      ],
                                      "ref_id": "504"
                                    }
                                  ],
                                  "ref_id": "504"
                                }
                              ],
                              "node_type": "Query",
                              "ref_id": "505"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n    )"
                                }
                              ]
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "505"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "506"
                    },
                    {
                      "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": "507"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " QualifyingEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "508"
                                }
                              ]
                            },
                            {
                              "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": "509"
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "509"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " VTEDiagnosis"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "510"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n          such that "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "VTEDiagnosis"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "511"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "prevalencePeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "512"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "512"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " starts before "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "QualifyingEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "513"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "514"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "514"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "515"
                                    }
                                  ],
                                  "node_type": "Before",
                                  "ref_id": "516"
                                }
                              ],
                              "ref_id": "517"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "518"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "518"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "519"
                }
              ],
              "ref_id": "520"
            }
          ],
          "define_name": "Encounter With Prior or Present Diagnosis of Atrial Fibrillation or VTE"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Encounter With ICU Location Stay 1 Day or More\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "521"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "522"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "exists "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "( "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "QualifyingEncounter.facilityLocations"
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "523"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": " Location"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "524"
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n        "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "where "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "Location"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "525"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "."
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "code"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "526"
                                                        }
                                                      ],
                                                      "ref_id": "526"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": " in "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "\"Intensive Care Unit\""
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "527"
                                                    }
                                                  ],
                                                  "node_type": "InValueSet",
                                                  "ref_id": "528"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\n          and "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "Global"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "529"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "."
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "\"LengthInDays\"("
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "Location"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "ref_id": "530"
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "."
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "locationPeriod"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "node_type": "Property",
                                                                  "ref_id": "531"
                                                                }
                                                              ],
                                                              "node_type": "Property",
                                                              "ref_id": "531"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": ")"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "node_type": "FunctionRef",
                                                          "ref_id": "532"
                                                        }
                                                      ],
                                                      "node_type": "FunctionRef",
                                                      "ref_id": "532"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "&gt;= 1"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "GreaterOrEqual",
                                                  "ref_id": "534"
                                                }
                                              ],
                                              "node_type": "And",
                                              "ref_id": "535"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n          and "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "Location"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "536"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "."
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "locationPeriod"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "Property",
                                                      "ref_id": "537"
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "537"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": " starts during "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "VTEICU"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "538"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "."
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "\"CalendarDayOfOrDayAfter\"("
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "start of "
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "QualifyingEncounter"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "ref_id": "539"
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "."
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "relevantPeriod"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "node_type": "Property",
                                                                  "ref_id": "540"
                                                                }
                                                              ],
                                                              "node_type": "Property",
                                                              "ref_id": "540"
                                                            }
                                                          ],
                                                          "node_type": "Start",
                                                          "ref_id": "541"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": ")"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "FunctionRef",
                                                      "ref_id": "542"
                                                    }
                                                  ],
                                                  "node_type": "FunctionRef",
                                                  "ref_id": "542"
                                                }
                                              ],
                                              "node_type": "In",
                                              "ref_id": "543"
                                            }
                                          ],
                                          "ref_id": "544"
                                        }
                                      ],
                                      "ref_id": "544"
                                    }
                                  ],
                                  "node_type": "Query",
                                  "ref_id": "545"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n    )"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Query",
                              "ref_id": "545"
                            }
                          ],
                          "ref_id": "546"
                        }
                      ],
                      "ref_id": "546"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "547"
                }
              ],
              "ref_id": "548"
            }
          ],
          "define_name": "Encounter With ICU Location Stay 1 Day or More"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Encounter With Principal Diagnosis of Mental Disorder or Stroke\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "549"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "550"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "QualifyingEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "551"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "principalDiagnosis"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "552"
                                        }
                                      ],
                                      "ref_id": "552"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " in "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Mental Health Diagnoses\""
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "553"
                                    }
                                  ],
                                  "node_type": "InValueSet",
                                  "ref_id": "554"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n      or "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "QualifyingEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "555"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "principalDiagnosis"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "556"
                                        }
                                      ],
                                      "ref_id": "556"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " in "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Hemorrhagic Stroke\""
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "557"
                                    }
                                  ],
                                  "node_type": "InValueSet",
                                  "ref_id": "558"
                                }
                              ],
                              "node_type": "Or",
                              "ref_id": "559"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      or "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "QualifyingEncounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "560"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "principalDiagnosis"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "561"
                                    }
                                  ],
                                  "ref_id": "561"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " in "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Ischemic Stroke\""
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "562"
                                }
                              ],
                              "node_type": "InValueSet",
                              "ref_id": "563"
                            }
                          ],
                          "ref_id": "564"
                        }
                      ],
                      "ref_id": "564"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "565"
                }
              ],
              "ref_id": "566"
            }
          ],
          "define_name": "Encounter With Principal Diagnosis of Mental Disorder or Stroke"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Encounter With Principal Procedure of SCIP VTE Selected 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": "567"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "568"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "( "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"SCIP VTE Selected Surgery\""
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "ExpressionRef",
                                              "ref_id": "569"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": " Procedure"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "570"
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n      "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "where "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "Procedure"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "571"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "ordinality"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "572"
                                                }
                                              ],
                                              "ref_id": "572"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": " in "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"Principal\""
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "573"
                                            }
                                          ],
                                          "ref_id": "574"
                                        }
                                      ],
                                      "ref_id": "574"
                                    }
                                  ],
                                  "node_type": "Query",
                                  "ref_id": "575"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " )"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Query",
                              "ref_id": "575"
                            },
                            {
                              "children": [
                                {
                                  "text": " SelectedProcedure"
                                }
                              ]
                            }
                          ],
                          "ref_id": "576"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "SelectedProcedure"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "577"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "578"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "578"
                            },
                            {
                              "children": [
                                {
                                  "text": " during "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "QualifyingEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "579"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "580"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "580"
                            }
                          ],
                          "node_type": "IncludedIn",
                          "ref_id": "581"
                        }
                      ],
                      "ref_id": "582"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "583"
                }
              ],
              "ref_id": "584"
            }
          ],
          "define_name": "Encounter With Principal Procedure of SCIP VTE Selected Surgery"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Denominator Exclusions\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Encounter Less Than 2 Days\""
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "585"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n    union "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Encounter With ICU Location Stay 1 Day or More\""
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "586"
                                    }
                                  ],
                                  "node_type": "Union",
                                  "ref_id": "587"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n    union "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Encounter With Principal Diagnosis of Mental Disorder or Stroke\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "588"
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "589"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n    union "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Encounter With Principal Procedure of SCIP VTE Selected Surgery\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "590"
                            }
                          ],
                          "node_type": "Union",
                          "ref_id": "591"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    union "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Intervention Comfort Measures on Day of or Day After Start of Hospitalization\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "592"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "593"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    union "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "\"Intervention Comfort Measures on Day of or Day After Procedure\""
                            }
                          ]
                        }
                      ],
                      "node_type": "ExpressionRef",
                      "ref_id": "594"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "595"
                }
              ],
              "ref_id": "596"
            }
          ],
          "define_name": "Denominator Exclusions"
        },
        {
          "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": "597"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "598"
                        }
                      ]
                    },
                    {
                      "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": "599"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n      union "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "[\"Procedure, Performed\": "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Knee Replacement Surgery\""
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "]"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "600"
                                    }
                                  ],
                                  "node_type": "Union",
                                  "ref_id": "601"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " )"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "601"
                            },
                            {
                              "children": [
                                {
                                  "text": " HipKneeProcedure"
                                }
                              ]
                            }
                          ],
                          "ref_id": "602"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "HipKneeProcedure"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "603"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "604"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "604"
                            },
                            {
                              "children": [
                                {
                                  "text": " starts on or before "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "end of "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "QualifyingEncounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "605"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "606"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "606"
                                }
                              ],
                              "node_type": "End",
                              "ref_id": "607"
                            }
                          ],
                          "node_type": "SameOrBefore",
                          "ref_id": "608"
                        }
                      ],
                      "ref_id": "609"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "610"
                }
              ],
              "ref_id": "611"
            }
          ],
          "define_name": "Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Is In Low Risk for VTE or On Anticoagulant\":\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": "616"
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "616"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " VTERiskAssessment"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "617"
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n      "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "where "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "VTERiskAssessment"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "618"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "result"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "619"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "619"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " in "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Low Risk\""
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "620"
                                        }
                                      ],
                                      "ref_id": "621"
                                    }
                                  ],
                                  "ref_id": "621"
                                }
                              ],
                              "node_type": "Query",
                              "ref_id": "622"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n  )"
                                }
                              ]
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "622"
                        },
                        {
                          "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": "623"
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "623"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " INRLabTest"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "624"
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n        "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "where "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "INRLabTest"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "625"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "result"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "626"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "626"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " &gt; 3.0"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "628"
                                    }
                                  ],
                                  "ref_id": "628"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n        "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "return "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Assessment, Performed\" { "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "id: "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "INRLabTest"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "629"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "id"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "630"
                                                }
                                              ],
                                              "ref_id": "630"
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ", "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "authorDatetime: "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "INRLabTest"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "631"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "resultDatetime"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "632"
                                                }
                                              ],
                                              "ref_id": "632"
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " }"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Instance",
                                      "ref_id": "633"
                                    }
                                  ],
                                  "ref_id": "634"
                                }
                              ],
                              "node_type": "Query",
                              "ref_id": "635"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n    )"
                                }
                              ]
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "635"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "636"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    union "
                        }
                      ]
                    },
                    {
                      "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": "637"
                                                    }
                                                  ],
                                                  "node_type": "Retrieve",
                                                  "ref_id": "637"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": " UnfractionatedHeparin"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "638"
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "\n          "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "where "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "UnfractionatedHeparin"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "639"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "."
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "route"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "640"
                                                    }
                                                  ],
                                                  "ref_id": "640"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": " in "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Intravenous route\""
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "641"
                                                }
                                              ],
                                              "ref_id": "642"
                                            }
                                          ],
                                          "ref_id": "642"
                                        }
                                      ],
                                      "node_type": "Query",
                                      "ref_id": "643"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n      )"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Query",
                                  "ref_id": "643"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n        union "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Medication, Administered\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Direct Thrombin Inhibitor\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "644"
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "645"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n        union "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "[\"Medication, Administered\": "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Glycoprotein IIb/IIIa Inhibitors\""
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "]"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Retrieve",
                                              "ref_id": "646"
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "646"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " AnticoagulantMedication"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "647"
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n          "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "return "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Assessment, Performed\" { "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "id: "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "AnticoagulantMedication"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "648"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "id"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "649"
                                                }
                                              ],
                                              "ref_id": "649"
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ", "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "authorDatetime: "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "start of "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "AnticoagulantMedication"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "650"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "."
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "relevantPeriod"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "Property",
                                                      "ref_id": "651"
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "651"
                                                }
                                              ],
                                              "ref_id": "652"
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " }"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Instance",
                                      "ref_id": "653"
                                    }
                                  ],
                                  "ref_id": "654"
                                }
                              ],
                              "node_type": "Query",
                              "ref_id": "655"
                            }
                          ],
                          "node_type": "Union",
                          "ref_id": "656"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "656"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "657"
                }
              ],
              "ref_id": "658"
            }
          ],
          "define_name": "Is In Low Risk for VTE or On Anticoagulant"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Low Risk for VTE or Anticoagulant Administered During ED Visit\":\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": "612"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "613"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"ED Visit\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "614"
                            },
                            {
                              "children": [
                                {
                                  "text": " EDVisit"
                                }
                              ]
                            }
                          ],
                          "ref_id": "615"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Is In Low Risk for VTE or On Anticoagulant\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "659"
                            },
                            {
                              "children": [
                                {
                                  "text": " VTERiskAssessment"
                                }
                              ]
                            }
                          ],
                          "ref_id": "660"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "EDVisit"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "661"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "662"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "662"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "ends "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "1 hour"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Quantity",
                                      "ref_id": "666"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " or less on or before"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "In",
                                  "ref_id": "667"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "start of "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "QualifyingEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "663"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "664"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "664"
                                    }
                                  ],
                                  "node_type": "Start",
                                  "ref_id": "665"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "667"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "VTERiskAssessment"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "668"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "669"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "669"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "EDVisit"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "670"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "671"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "671"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "672"
                            }
                          ],
                          "ref_id": "673"
                        }
                      ],
                      "ref_id": "673"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "674"
                        }
                      ],
                      "ref_id": "675"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "676"
                }
              ],
              "ref_id": "677"
            }
          ],
          "define_name": "Low Risk for VTE or Anticoagulant Administered During ED Visit"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Low Risk for VTE or Anticoagulant Administered on Day of or 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": "679"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "680"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Is In Low Risk for VTE or On Anticoagulant\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "681"
                            },
                            {
                              "children": [
                                {
                                  "text": " VTERiskAssessment"
                                }
                              ]
                            }
                          ],
                          "ref_id": "682"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "VTERiskAssessment"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "683"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "authorDatetime"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "684"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "684"
                            },
                            {
                              "children": [
                                {
                                  "text": " during "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "VTEICU"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "685"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"CalendarDayOfOrDayAfter\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "QualifyingEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "686"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "687"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "687"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "688"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "689"
                                }
                              ],
                              "node_type": "FunctionRef",
                              "ref_id": "689"
                            }
                          ],
                          "node_type": "In",
                          "ref_id": "690"
                        }
                      ],
                      "ref_id": "691"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "692"
                }
              ],
              "ref_id": "693"
            }
          ],
          "define_name": "Low Risk for VTE or Anticoagulant Administered on Day of or 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": "696"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "697"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Procedure, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"General or Neuraxial Anesthesia\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "698"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "698"
                            },
                            {
                              "children": [
                                {
                                  "text": " AnesthesiaProcedure"
                                }
                              ]
                            }
                          ],
                          "ref_id": "699"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Is In Low Risk for VTE or On Anticoagulant\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "700"
                            },
                            {
                              "children": [
                                {
                                  "text": " VTERiskAssessment"
                                }
                              ]
                            }
                          ],
                          "ref_id": "701"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "AnesthesiaProcedure"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "702"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "703"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "703"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "ends "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "1 day"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Quantity",
                                      "ref_id": "707"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " after day of"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "SameAs",
                                  "ref_id": "708"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "start of "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "QualifyingEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "704"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "705"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "705"
                                    }
                                  ],
                                  "node_type": "Start",
                                  "ref_id": "706"
                                }
                              ],
                              "node_type": "SameAs",
                              "ref_id": "708"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "VTERiskAssessment"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "709"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "710"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "710"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "VTEICU"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "711"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarDayOfOrDayAfter\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "end of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "AnesthesiaProcedure"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "712"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "713"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "713"
                                            }
                                          ],
                                          "node_type": "End",
                                          "ref_id": "714"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "715"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "715"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "716"
                            }
                          ],
                          "ref_id": "717"
                        }
                      ],
                      "ref_id": "717"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "718"
                        }
                      ],
                      "ref_id": "719"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "720"
                }
              ],
              "ref_id": "721"
            }
          ],
          "define_name": "Low Risk for VTE or Anticoagulant Administered on Day of or Day After Procedure"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Low Risk for VTE or Anticoagulant Administered\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Low Risk for VTE or Anticoagulant Administered During ED Visit\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "678"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    union "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Low Risk for VTE or Anticoagulant Administered on Day of or Day After Admission\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "694"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "695"
                    },
                    {
                      "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": "722"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "723"
                }
              ],
              "ref_id": "724"
            }
          ],
          "define_name": "Low Risk for VTE or Anticoagulant Administered"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"No VTE Prophylaxis Due to Medical Reason\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "( "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Medication Due to Medical Reason During ED Visit\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "725"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n      intersect "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Device Due to Medical Reason During ED Visit\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "726"
                                }
                              ],
                              "node_type": "Intersect",
                              "ref_id": "727"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n  )"
                                }
                              ]
                            }
                          ],
                          "node_type": "Intersect",
                          "ref_id": "727"
                        },
                        {
                          "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 Admission\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "728"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n        intersect "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Device Due to Medical Reason on Day of or Day After Admission\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "729"
                                }
                              ],
                              "node_type": "Intersect",
                              "ref_id": "730"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n    )"
                                }
                              ]
                            }
                          ],
                          "node_type": "Intersect",
                          "ref_id": "730"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "731"
                    },
                    {
                      "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": "732"
                            },
                            {
                              "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": "733"
                            }
                          ],
                          "node_type": "Intersect",
                          "ref_id": "734"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Intersect",
                      "ref_id": "734"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "735"
                }
              ],
              "ref_id": "736"
            }
          ],
          "define_name": "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": "741"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n    union "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"No VTE Prophylaxis Device Applied or Ordered\""
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "742"
                                    }
                                  ],
                                  "node_type": "Union",
                                  "ref_id": "743"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " )"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "743"
                            },
                            {
                              "children": [
                                {
                                  "text": " NoVTEProphylaxis"
                                }
                              ]
                            }
                          ],
                          "ref_id": "744"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "NoVTEProphylaxis"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "745"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "negationRationale"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "746"
                                }
                              ],
                              "ref_id": "746"
                            },
                            {
                              "children": [
                                {
                                  "text": " in "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Patient Refusal\""
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "747"
                            }
                          ],
                          "ref_id": "748"
                        }
                      ],
                      "ref_id": "748"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "749"
                }
              ],
              "ref_id": "750"
            }
          ],
          "define_name": "No VTE Prophylaxis Medication or Device Due to Patient Refusal"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"No VTE Prophylaxis Due to Patient Refusal During ED Visit\":\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": "737"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "738"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"ED Visit\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "739"
                            },
                            {
                              "children": [
                                {
                                  "text": " EDVisit"
                                }
                              ]
                            }
                          ],
                          "ref_id": "740"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "751"
                            },
                            {
                              "children": [
                                {
                                  "text": " PatientRefusal"
                                }
                              ]
                            }
                          ],
                          "ref_id": "752"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "EDVisit"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "753"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "754"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "754"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "ends "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "1 hour"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Quantity",
                                      "ref_id": "758"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " or less on or before"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "In",
                                  "ref_id": "759"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "start of "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "QualifyingEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "755"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "756"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "756"
                                    }
                                  ],
                                  "node_type": "Start",
                                  "ref_id": "757"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "759"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "PatientRefusal"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "760"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "761"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "761"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "EDVisit"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "762"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "763"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "763"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "764"
                            }
                          ],
                          "ref_id": "765"
                        }
                      ],
                      "ref_id": "765"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "766"
                        }
                      ],
                      "ref_id": "767"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "768"
                }
              ],
              "ref_id": "769"
            }
          ],
          "define_name": "No VTE Prophylaxis Due to Patient Refusal During ED Visit"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission\":\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": "770"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "771"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "772"
                            },
                            {
                              "children": [
                                {
                                  "text": " PatientRefusal"
                                }
                              ]
                            }
                          ],
                          "ref_id": "773"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "PatientRefusal"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "774"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "authorDatetime"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "775"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "775"
                            },
                            {
                              "children": [
                                {
                                  "text": " during "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "VTEICU"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "776"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"CalendarDayOfOrDayAfter\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "QualifyingEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "777"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "778"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "778"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "779"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "780"
                                }
                              ],
                              "node_type": "FunctionRef",
                              "ref_id": "780"
                            }
                          ],
                          "ref_id": "781"
                        }
                      ],
                      "ref_id": "781"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "782"
                        }
                      ],
                      "ref_id": "783"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "784"
                }
              ],
              "ref_id": "785"
            }
          ],
          "define_name": "No VTE Prophylaxis Due to Patient Refusal on Day of or 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": "786"
                            },
                            {
                              "children": [
                                {
                                  "text": " QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "787"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Procedure, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"General or Neuraxial Anesthesia\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "788"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "788"
                            },
                            {
                              "children": [
                                {
                                  "text": " AnesthesiaProcedure"
                                }
                              ]
                            }
                          ],
                          "ref_id": "789"
                        },
                        {
                          "children": [
                            {
                              "text": ",\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"No VTE Prophylaxis Medication or Device Due to Patient Refusal\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "790"
                            },
                            {
                              "children": [
                                {
                                  "text": " PatientRefusal"
                                }
                              ]
                            }
                          ],
                          "ref_id": "791"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "AnesthesiaProcedure"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "792"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "793"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "793"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "ends "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "1 day"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Quantity",
                                      "ref_id": "797"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " after day of"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "SameAs",
                                  "ref_id": "798"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "start of "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "QualifyingEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "794"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "795"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "795"
                                    }
                                  ],
                                  "node_type": "Start",
                                  "ref_id": "796"
                                }
                              ],
                              "node_type": "SameAs",
                              "ref_id": "798"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "PatientRefusal"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "799"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "authorDatetime"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "800"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "800"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "VTEICU"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "801"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarDayOfOrDayAfter\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "end of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "AnesthesiaProcedure"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "802"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "803"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "803"
                                            }
                                          ],
                                          "node_type": "End",
                                          "ref_id": "804"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "805"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "805"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "806"
                            }
                          ],
                          "ref_id": "807"
                        }
                      ],
                      "ref_id": "807"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "return "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "QualifyingEncounter"
                                }
                              ]
                            }
                          ],
                          "node_type": "AliasRef",
                          "ref_id": "808"
                        }
                      ],
                      "ref_id": "809"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "810"
                }
              ],
              "ref_id": "811"
            }
          ],
          "define_name": "No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Procedure"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"No VTE Prophylaxis Due to Patient Refusal\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"No VTE Prophylaxis Due to Patient Refusal During ED Visit\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "812"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    union "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"No VTE Prophylaxis Due to Patient Refusal on Day of or Day After Admission\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "813"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "814"
                    },
                    {
                      "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": "815"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "816"
                }
              ],
              "ref_id": "817"
            }
          ],
          "define_name": "No VTE Prophylaxis Due to Patient Refusal"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Numerator\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"VTE Prophylaxis Received on Day of or Day After Admission or Procedure\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "818"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n    union "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "( "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Medication Oral Factor Xa Inhibitor Administered on Day of or Day After Admission or Procedure\""
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "ExpressionRef",
                                          "ref_id": "819"
                                        },
                                        {
                                          "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": "820"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\n            union "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Encounter With Prior or Present Procedure of Hip or Knee Replacement Surgery\""
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "ExpressionRef",
                                                  "ref_id": "821"
                                                }
                                              ],
                                              "node_type": "Union",
                                              "ref_id": "822"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n        )"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Union",
                                          "ref_id": "822"
                                        }
                                      ],
                                      "node_type": "Intersect",
                                      "ref_id": "823"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n    )"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Intersect",
                                  "ref_id": "823"
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "824"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n    union "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Low Risk for VTE or Anticoagulant Administered\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "825"
                            }
                          ],
                          "node_type": "Union",
                          "ref_id": "826"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    union "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"No VTE Prophylaxis Due to Medical Reason\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "827"
                        }
                      ],
                      "node_type": "Union",
                      "ref_id": "828"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    union "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "\"No VTE Prophylaxis Due to Patient Refusal\""
                            }
                          ]
                        }
                      ],
                      "node_type": "ExpressionRef",
                      "ref_id": "829"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "830"
                }
              ],
              "ref_id": "831"
            }
          ],
          "define_name": "Numerator"
        }
      ],
      "identifier": {
        "id": "VenousThromboembolismProphylaxis",
        "version": "7.4.000"
      }
    },
    "MATGlobalCommonFunctions": {
      "statements": [
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Encounter\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "[\"Encounter, Performed\": "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "\"Emergency Department Visit\""
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "]"
                        }
                      ]
                    }
                  ],
                  "node_type": "Retrieve",
                  "ref_id": "14"
                }
              ],
              "ref_id": "15"
            }
          ],
          "define_name": "Encounter"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"LengthInDays\"(Value "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "Interval&lt;"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "DateTime"
                            }
                          ]
                        }
                      ],
                      "ref_id": "20"
                    },
                    {
                      "children": [
                        {
                          "text": "&gt;"
                        }
                      ]
                    }
                  ],
                  "ref_id": "21"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "difference in days between "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "start of "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "22"
                            }
                          ],
                          "node_type": "Start",
                          "ref_id": "23"
                        },
                        {
                          "children": [
                            {
                              "text": " and "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "end of "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "24"
                            }
                          ],
                          "node_type": "End",
                          "ref_id": "25"
                        }
                      ],
                      "node_type": "DifferenceBetween",
                      "ref_id": "26"
                    }
                  ],
                  "node_type": "DifferenceBetween",
                  "ref_id": "26"
                }
              ],
              "ref_id": "27"
            }
          ],
          "define_name": "LengthInDays"
        },
        {
          "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": "16"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "16"
                            },
                            {
                              "children": [
                                {
                                  "text": " EncounterInpatient"
                                }
                              ]
                            }
                          ],
                          "ref_id": "17"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"LengthInDays\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "EncounterInpatient"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "18"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "19"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "19"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "28"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "&lt;= 120"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "LessOrEqual",
                              "ref_id": "30"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "EncounterInpatient"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "31"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "32"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "32"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " ends during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ParameterRef",
                                  "ref_id": "33"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "34"
                            }
                          ],
                          "ref_id": "35"
                        }
                      ],
                      "ref_id": "35"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "36"
                }
              ],
              "ref_id": "37"
            }
          ],
          "define_name": "Inpatient Encounter"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"ToDate\"(Value "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "38"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "DateTime("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "year from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "39"
                            }
                          ],
                          "ref_id": "40"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "month from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "41"
                            }
                          ],
                          "ref_id": "42"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "day from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "43"
                            }
                          ],
                          "ref_id": "44"
                        },
                        {
                          "children": [
                            {
                              "text": ", 0, 0, 0, 0, "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "timezone from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "49"
                            }
                          ],
                          "ref_id": "50"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "DateTime",
                      "ref_id": "51"
                    }
                  ],
                  "node_type": "DateTime",
                  "ref_id": "51"
                }
              ],
              "ref_id": "52"
            }
          ],
          "define_name": "ToDate"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInDaysAt\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "53"
                },
                {
                  "children": [
                    {
                      "text": ", AsOf "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "54"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "days between "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "BirthDateTime"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "55"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "56"
                        },
                        {
                          "children": [
                            {
                              "text": "and "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "AsOf"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "57"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "58"
                        }
                      ],
                      "node_type": "DurationBetween",
                      "ref_id": "59"
                    }
                  ],
                  "node_type": "DurationBetween",
                  "ref_id": "59"
                }
              ],
              "ref_id": "60"
            }
          ],
          "define_name": "CalendarAgeInDaysAt"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInDays\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "61"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "CalendarAgeInDaysAt("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "BirthDateTime"
                                }
                              ]
                            }
                          ],
                          "node_type": "OperandRef",
                          "ref_id": "62"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "Today()"
                                }
                              ]
                            }
                          ],
                          "node_type": "Today",
                          "ref_id": "63"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "FunctionRef",
                      "ref_id": "64"
                    }
                  ],
                  "node_type": "FunctionRef",
                  "ref_id": "64"
                }
              ],
              "ref_id": "65"
            }
          ],
          "define_name": "CalendarAgeInDays"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInMonthsAt\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "66"
                },
                {
                  "children": [
                    {
                      "text": ", AsOf "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "67"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "months between "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "BirthDateTime"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "68"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "69"
                        },
                        {
                          "children": [
                            {
                              "text": "and "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "AsOf"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "70"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "71"
                        }
                      ],
                      "node_type": "DurationBetween",
                      "ref_id": "72"
                    }
                  ],
                  "node_type": "DurationBetween",
                  "ref_id": "72"
                }
              ],
              "ref_id": "73"
            }
          ],
          "define_name": "CalendarAgeInMonthsAt"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInMonths\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "74"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "CalendarAgeInMonthsAt("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "BirthDateTime"
                                }
                              ]
                            }
                          ],
                          "node_type": "OperandRef",
                          "ref_id": "75"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "Today()"
                                }
                              ]
                            }
                          ],
                          "node_type": "Today",
                          "ref_id": "76"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "FunctionRef",
                      "ref_id": "77"
                    }
                  ],
                  "node_type": "FunctionRef",
                  "ref_id": "77"
                }
              ],
              "ref_id": "78"
            }
          ],
          "define_name": "CalendarAgeInMonths"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInYearsAt\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "79"
                },
                {
                  "children": [
                    {
                      "text": ", AsOf "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "80"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "years between "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "BirthDateTime"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "81"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "82"
                        },
                        {
                          "children": [
                            {
                              "text": "and "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "AsOf"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "83"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "84"
                        }
                      ],
                      "node_type": "DurationBetween",
                      "ref_id": "85"
                    }
                  ],
                  "node_type": "DurationBetween",
                  "ref_id": "85"
                }
              ],
              "ref_id": "86"
            }
          ],
          "define_name": "CalendarAgeInYearsAt"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInYears\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "87"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "CalendarAgeInYearsAt("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "BirthDateTime"
                                }
                              ]
                            }
                          ],
                          "node_type": "OperandRef",
                          "ref_id": "88"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "Today()"
                                }
                              ]
                            }
                          ],
                          "node_type": "Today",
                          "ref_id": "89"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "FunctionRef",
                      "ref_id": "90"
                    }
                  ],
                  "node_type": "FunctionRef",
                  "ref_id": "90"
                }
              ],
              "ref_id": "91"
            }
          ],
          "define_name": "CalendarAgeInYears"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospitalization\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "92"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "( "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "singleton from "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "( "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "[\"Encounter, Performed\": "
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "\"Emergency Department Visit\""
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "]"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Retrieve",
                                                              "ref_id": "93"
                                                            }
                                                          ],
                                                          "node_type": "Retrieve",
                                                          "ref_id": "93"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " EDVisit"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "94"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\n      "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "where "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "EDVisit"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "ref_id": "95"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "."
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "relevantPeriod"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Property",
                                                              "ref_id": "96"
                                                            }
                                                          ],
                                                          "node_type": "Property",
                                                          "ref_id": "96"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "ends "
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "1 hour"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Quantity",
                                                              "ref_id": "100"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": " or less on or before"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "101"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "start of "
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "Encounter"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "ref_id": "97"
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "."
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "relevantPeriod"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "node_type": "Property",
                                                                  "ref_id": "98"
                                                                }
                                                              ],
                                                              "node_type": "Property",
                                                              "ref_id": "98"
                                                            }
                                                          ],
                                                          "node_type": "Start",
                                                          "ref_id": "99"
                                                        }
                                                      ],
                                                      "ref_id": "101"
                                                    }
                                                  ],
                                                  "ref_id": "101"
                                                }
                                              ],
                                              "node_type": "Query",
                                              "ref_id": "102"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n  )"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Query",
                                          "ref_id": "102"
                                        }
                                      ],
                                      "node_type": "SingletonFrom",
                                      "ref_id": "103"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " )"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "SingletonFrom",
                                  "ref_id": "103"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " X"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "104"
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "return "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "if "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "X"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "AliasRef",
                                      "ref_id": "105"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " is null"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "IsNull",
                                  "ref_id": "106"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " then "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Encounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "107"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "108"
                                    }
                                  ],
                                  "ref_id": "108"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " else "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Interval["
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "X"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "109"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "110"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "110"
                                        }
                                      ],
                                      "ref_id": "111"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ", "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "end of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Encounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "112"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "113"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "113"
                                        }
                                      ],
                                      "ref_id": "114"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "115"
                                }
                              ],
                              "node_type": "If",
                              "ref_id": "116"
                            }
                          ],
                          "ref_id": "117"
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "118"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "118"
                }
              ],
              "ref_id": "119"
            }
          ],
          "define_name": "Hospitalization"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospitalization Locations\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "123"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "( "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "singleton from "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "( "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "[\"Encounter, Performed\": "
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "\"Emergency Department Visit\""
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "]"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Retrieve",
                                                              "ref_id": "124"
                                                            }
                                                          ],
                                                          "node_type": "Retrieve",
                                                          "ref_id": "124"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " EDVisit"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "125"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\n      "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "where "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "EDVisit"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "ref_id": "126"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "."
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "relevantPeriod"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Property",
                                                              "ref_id": "127"
                                                            }
                                                          ],
                                                          "node_type": "Property",
                                                          "ref_id": "127"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "ends "
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "1 hour"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Quantity",
                                                              "ref_id": "131"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": " or less on or before"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "132"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "start of "
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "Encounter"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "ref_id": "128"
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "."
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "relevantPeriod"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "node_type": "Property",
                                                                  "ref_id": "129"
                                                                }
                                                              ],
                                                              "node_type": "Property",
                                                              "ref_id": "129"
                                                            }
                                                          ],
                                                          "node_type": "Start",
                                                          "ref_id": "130"
                                                        }
                                                      ],
                                                      "ref_id": "132"
                                                    }
                                                  ],
                                                  "ref_id": "132"
                                                }
                                              ],
                                              "node_type": "Query",
                                              "ref_id": "133"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n  )"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Query",
                                          "ref_id": "133"
                                        }
                                      ],
                                      "node_type": "SingletonFrom",
                                      "ref_id": "134"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " )"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "SingletonFrom",
                                  "ref_id": "134"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " EDEncounter"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "135"
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "return "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "if "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "EDEncounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "AliasRef",
                                      "ref_id": "136"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " is null"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "IsNull",
                                  "ref_id": "137"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " then "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Encounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "138"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "facilityLocations"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "139"
                                    }
                                  ],
                                  "ref_id": "139"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " else "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "flatten "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "{ "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "EDEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "140"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "facilityLocations"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "141"
                                            }
                                          ],
                                          "ref_id": "141"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ", "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Encounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "142"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "facilityLocations"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "143"
                                            }
                                          ],
                                          "ref_id": "143"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " }"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "List",
                                      "ref_id": "144"
                                    }
                                  ],
                                  "ref_id": "145"
                                }
                              ],
                              "node_type": "If",
                              "ref_id": "146"
                            }
                          ],
                          "ref_id": "147"
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "148"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "148"
                }
              ],
              "ref_id": "149"
            }
          ],
          "define_name": "Hospitalization Locations"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospitalization Length of Stay\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "150"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "LengthInDays("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Hospitalization\"("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Encounter"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "151"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "152"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "FunctionRef",
                      "ref_id": "153"
                    }
                  ],
                  "node_type": "FunctionRef",
                  "ref_id": "153"
                }
              ],
              "ref_id": "154"
            }
          ],
          "define_name": "Hospitalization Length of Stay"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospital Admission Time\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "155"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "start of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Hospitalization\"("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Encounter"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "156"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "157"
                        }
                      ],
                      "node_type": "Start",
                      "ref_id": "158"
                    }
                  ],
                  "node_type": "Start",
                  "ref_id": "158"
                }
              ],
              "ref_id": "159"
            }
          ],
          "define_name": "Hospital Admission Time"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospital Discharge Time\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "160"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "end of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Encounter"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "161"
                            },
                            {
                              "children": [
                                {
                                  "text": "."
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "relevantPeriod"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "162"
                            }
                          ],
                          "node_type": "Property",
                          "ref_id": "162"
                        }
                      ],
                      "node_type": "End",
                      "ref_id": "163"
                    }
                  ],
                  "node_type": "End",
                  "ref_id": "163"
                }
              ],
              "ref_id": "164"
            }
          ],
          "define_name": "Hospital Discharge Time"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospital Arrival Time\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "165"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "start of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "First("
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "("
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Hospitalization Locations\"("
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "Encounter"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "OperandRef",
                                                      "ref_id": "166"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": ")"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "FunctionRef",
                                                  "ref_id": "167"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": ")"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "FunctionRef",
                                              "ref_id": "167"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "HospitalLocation"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "168"
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n      "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "sort by "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "start of "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "locationPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "IdentifierRef",
                                                  "ref_id": "169"
                                                }
                                              ],
                                              "node_type": "Start",
                                              "ref_id": "170"
                                            }
                                          ],
                                          "ref_id": "171"
                                        }
                                      ],
                                      "ref_id": "172"
                                    }
                                  ],
                                  "ref_id": "173"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n  )"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "174"
                            },
                            {
                              "children": [
                                {
                                  "text": "."
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "locationPeriod"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "175"
                            }
                          ],
                          "node_type": "Property",
                          "ref_id": "175"
                        }
                      ],
                      "node_type": "Start",
                      "ref_id": "176"
                    }
                  ],
                  "node_type": "Start",
                  "ref_id": "176"
                }
              ],
              "ref_id": "177"
            }
          ],
          "define_name": "Hospital Arrival Time"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospital Departure Time\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "178"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "end of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Last("
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "("
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Hospitalization Locations\"("
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "Encounter"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "OperandRef",
                                                      "ref_id": "179"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": ")"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "FunctionRef",
                                                  "ref_id": "180"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": ")"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "FunctionRef",
                                              "ref_id": "180"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "HospitalLocation"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "181"
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n      "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "sort by "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "start of "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "locationPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "IdentifierRef",
                                                  "ref_id": "182"
                                                }
                                              ],
                                              "node_type": "Start",
                                              "ref_id": "183"
                                            }
                                          ],
                                          "ref_id": "184"
                                        }
                                      ],
                                      "ref_id": "185"
                                    }
                                  ],
                                  "ref_id": "186"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n  )"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "187"
                            },
                            {
                              "children": [
                                {
                                  "text": "."
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "locationPeriod"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "188"
                            }
                          ],
                          "node_type": "Property",
                          "ref_id": "188"
                        }
                      ],
                      "node_type": "End",
                      "ref_id": "189"
                    }
                  ],
                  "node_type": "End",
                  "ref_id": "189"
                }
              ],
              "ref_id": "190"
            }
          ],
          "define_name": "Hospital Departure Time"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Emergency Department Arrival Time\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "191"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "start of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "( "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "singleton from "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "( "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "( "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "\"Hospitalization Locations\"("
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "Encounter"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "OperandRef",
                                                              "ref_id": "192"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": ")"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "node_type": "FunctionRef",
                                                          "ref_id": "193"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": ")"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "FunctionRef",
                                                      "ref_id": "193"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": " HospitalLocation"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "194"
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n        "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "where "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "HospitalLocation"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "195"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "."
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "code"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "196"
                                                        }
                                                      ],
                                                      "ref_id": "196"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": " in "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "\"Emergency Department Visit\""
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "197"
                                                    }
                                                  ],
                                                  "ref_id": "198"
                                                }
                                              ],
                                              "ref_id": "198"
                                            }
                                          ],
                                          "node_type": "Query",
                                          "ref_id": "199"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "\n    )"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Query",
                                      "ref_id": "199"
                                    }
                                  ],
                                  "ref_id": "200"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n  )"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "200"
                            },
                            {
                              "children": [
                                {
                                  "text": "."
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "locationPeriod"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "201"
                            }
                          ],
                          "node_type": "Property",
                          "ref_id": "201"
                        }
                      ],
                      "node_type": "Start",
                      "ref_id": "202"
                    }
                  ],
                  "node_type": "Start",
                  "ref_id": "202"
                }
              ],
              "ref_id": "203"
            }
          ],
          "define_name": "Emergency Department Arrival Time"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"First Inpatient Intensive Care Unit\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "204"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "First("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Encounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "205"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "facilityLocations"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "206"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "206"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "206"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "HospitalLocation"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "207"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "where "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "HospitalLocation"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "208"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "code"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "209"
                                            }
                                          ],
                                          "ref_id": "209"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " in "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Intensive Care Unit\""
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "210"
                                        }
                                      ],
                                      "node_type": "InValueSet",
                                      "ref_id": "211"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n        and "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "HospitalLocation"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "212"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "locationPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "213"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "213"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " during "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Encounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "214"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "215"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "215"
                                        }
                                      ],
                                      "node_type": "IncludedIn",
                                      "ref_id": "216"
                                    }
                                  ],
                                  "ref_id": "217"
                                }
                              ],
                              "ref_id": "217"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "sort by "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "locationPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "IdentifierRef",
                                          "ref_id": "218"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "219"
                                    }
                                  ],
                                  "ref_id": "220"
                                }
                              ],
                              "ref_id": "221"
                            }
                          ],
                          "ref_id": "222"
                        },
                        {
                          "children": [
                            {
                              "text": "\n  )"
                            }
                          ]
                        }
                      ],
                      "node_type": "First",
                      "ref_id": "223"
                    }
                  ],
                  "node_type": "First",
                  "ref_id": "223"
                }
              ],
              "ref_id": "224"
            }
          ],
          "define_name": "First Inpatient Intensive Care Unit"
        }
      ],
      "identifier": {
        "id": "MATGlobalCommonFunctions",
        "version": "2.0.000"
      }
    },
    "VTEICU": {
      "statements": [
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"ToDate\"(Value "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "12"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "DateTime("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "year from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "13"
                            }
                          ],
                          "ref_id": "14"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "month from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "15"
                            }
                          ],
                          "ref_id": "16"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "day from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "17"
                            }
                          ],
                          "ref_id": "18"
                        },
                        {
                          "children": [
                            {
                              "text": ", 0, 0, 0, 0, "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "timezone from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "23"
                            }
                          ],
                          "ref_id": "24"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "DateTime",
                      "ref_id": "25"
                    }
                  ],
                  "node_type": "DateTime",
                  "ref_id": "25"
                }
              ],
              "ref_id": "26"
            }
          ],
          "define_name": "ToDate"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarDayOfOrDayAfter\"(StartValue "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "27"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "Interval["
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "StartValue"
                                }
                              ]
                            }
                          ],
                          "ref_id": "28"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "StartValue"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "OperandRef",
                                  "ref_id": "29"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " + "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "2 days"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Quantity",
                                  "ref_id": "30"
                                }
                              ],
                              "node_type": "Add",
                              "ref_id": "31"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "ref_id": "32"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "Interval",
                      "ref_id": "33"
                    }
                  ],
                  "node_type": "Interval",
                  "ref_id": "33"
                }
              ],
              "ref_id": "34"
            }
          ],
          "define_name": "CalendarDayOfOrDayAfter"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"First Intensive Care Unit\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "37"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "First("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "Encounter.facilityLocations"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "38"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " L"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "39"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "where "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "L"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "40"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "code"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "41"
                                            }
                                          ],
                                          "ref_id": "41"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " in "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Intensive Care Unit\""
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "42"
                                        }
                                      ],
                                      "node_type": "InValueSet",
                                      "ref_id": "43"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n        and "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "L"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "44"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "locationPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "45"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "45"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " during "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Encounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "46"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "47"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "47"
                                        }
                                      ],
                                      "node_type": "IncludedIn",
                                      "ref_id": "48"
                                    }
                                  ],
                                  "ref_id": "49"
                                }
                              ],
                              "ref_id": "49"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "sort by "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "locationPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "IdentifierRef",
                                          "ref_id": "50"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "51"
                                    }
                                  ],
                                  "ref_id": "52"
                                }
                              ],
                              "ref_id": "53"
                            }
                          ],
                          "ref_id": "54"
                        },
                        {
                          "children": [
                            {
                              "text": "\n  )"
                            }
                          ]
                        }
                      ],
                      "node_type": "First",
                      "ref_id": "55"
                    }
                  ],
                  "node_type": "First",
                  "ref_id": "55"
                }
              ],
              "ref_id": "56"
            }
          ],
          "define_name": "First Intensive Care Unit"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Start of First ICU\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "35"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "start of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"First Intensive Care Unit\"("
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Encounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "OperandRef",
                                  "ref_id": "36"
                                },
                                {
                                  "children": [
                                    {
                                      "text": ")"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "57"
                            },
                            {
                              "children": [
                                {
                                  "text": "."
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "locationPeriod"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "58"
                            }
                          ],
                          "node_type": "Property",
                          "ref_id": "58"
                        }
                      ],
                      "node_type": "Start",
                      "ref_id": "59"
                    }
                  ],
                  "node_type": "Start",
                  "ref_id": "59"
                }
              ],
              "ref_id": "60"
            }
          ],
          "define_name": "Start of First ICU"
        }
      ],
      "identifier": {
        "id": "VTEICU",
        "version": "2.4.000"
      }
    }
  },
  "episode_ids": null,
  "episode_of_care": true,
  "hqmf_id": "40280382-6258-7581-0162-693C3D8A07C9",
  "hqmf_set_id": "38B0B5EC-0F63-466F-8FE3-2CD20DDD1622",
  "hqmf_version_number": 7,
  "id": "5abab066b848467bdfff9338",
  "main_cql_library": "VenousThromboembolismProphylaxis",
  "measure_attributes": [
    {
      "code": "OTH",
      "value": "108",
      "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": "108",
        "media_type": "text/plain"
      }
    },
    {
      "code": "OTH",
      "value": "0371",
      "name": "NQF Number",
      "code_obj": {
        "type": "CD",
        "null_flavor": "OTH",
        "original_text": "NQF Number"
      },
      "value_obj": {
        "type": "ED",
        "value": "0371",
        "media_type": "text/plain"
      }
    },
    {
      "code": "COPY",
      "value": "Measure specifications are in the Public Domain.\n\nLOINC(R) is a registered trademark of the Regenstrief Institute.\n\nThis material contains SNOMED Clinical Terms(R) (SNOMED CT(C)) copyright 2004-2017 International Health Terminology Standards Development Organization. All rights reserved.",
      "name": "Copyright",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "COPY",
        "title": "Copyright"
      },
      "value_obj": {
        "type": "ED",
        "value": "Measure specifications are in the Public Domain.\n\nLOINC(R) is a registered trademark of the Regenstrief Institute.\n\nThis material contains SNOMED Clinical Terms(R) (SNOMED CT(C)) copyright 2004-2017 International Health Terminology Standards Development Organization. All rights reserved.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DISC",
      "value": "These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty",
      "name": "Disclaimer",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DISC",
        "title": "Disclaimer"
      },
      "value_obj": {
        "type": "ED",
        "value": "These performance measures are not clinical guidelines and do not establish a standard of medical care, and have not been tested for all potential applications. The measures and specifications are provided without warranty",
        "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.1.11.20367",
        "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.1.11.20368",
        "code": "PROCESS",
        "title": "PROCESS"
      }
    },
    {
      "code": "STRAT",
      "value": "None",
      "name": "Stratification",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "STRAT",
        "title": "Stratification"
      },
      "value_obj": {
        "type": "ED",
        "value": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "MSRADJ",
      "value": "None",
      "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": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "MSRAGG",
      "value": "None",
      "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": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "RAT",
      "value": "Hospitalized patients at high-risk for VTE may develop an asymptomatic deep vein thrombosis (DVT), and die from pulmonary embolism (PE) even before the diagnosis is suspected. The majority of fatal events occur as sudden or abrupt death, underscoring the importance of prevention as the most critical action step for reducing death from PE (Geerts, et al, 2008).\n\nThe estimated annual incidence of deep-vein thrombosis (DVT) and pulmonary embolism (PE), known collectively as venous thromboembolism (VTE), is approximately 900,000 (Geerts, et al, 2008). Approximately two-thirds of cases of DVT or PE are associated with recent hospitalization. This is consistent with the 2001 report by The Agency for Healthcare Research and Quality (AHRQ). AHRQ indicates that \"the appropriate application of effective preventive measures in hospitals has major potential for improving patient safety by reducing the incidence of venous thromboembolism\" (Shojania, 2001).\n\nDespite its proven effectiveness, rates of appropriate thromboprophylaxis remain low in both medical and surgical patients. A recent analysis from the ENDORSE survey, which evaluated prophylaxis rates in 17,084 major surgery patients, found that more than one third of patients at risk for VTE (38%) did not receive prophylaxis and that rates varied by surgery type (Cohen, et al., 2008).\n\nIn a review of evidence-based patient safety practices, the Agency for Healthcare Research and Quality defined thromboprophylaxis against VTE as the \"number one patient safety practice\" for hospitalized patients (Shojania, 2001). Updated \"safe practices\" published by the National Quality Forum (NQF) recommend routine evaluation of hospitalized patients for risk of VTE and use of appropriate prophylaxis (National Quality Forum. National Voluntary Consensus Standards for Prevention and Care of Venous Thromboembolism, 2006).\n\nAs noted by the ACCP, a vast number of randomized clinical trials provide irrefutable evidence that thromboprophylaxis reduces VTE events, and there are studies that have also shown that fatal PE is prevented by thromboprophylaxis (Geerts, et al. 2008).\n\nSome select surgeries have previously been monitored in the Surgical Care Improvement Project; since performance on these surgeries has achieved very high levels, they are not included in this measure.",
      "name": "Rationale",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "RAT",
        "title": "Rationale"
      },
      "value_obj": {
        "type": "ED",
        "value": "Hospitalized patients at high-risk for VTE may develop an asymptomatic deep vein thrombosis (DVT), and die from pulmonary embolism (PE) even before the diagnosis is suspected. The majority of fatal events occur as sudden or abrupt death, underscoring the importance of prevention as the most critical action step for reducing death from PE (Geerts, et al, 2008).\n\nThe estimated annual incidence of deep-vein thrombosis (DVT) and pulmonary embolism (PE), known collectively as venous thromboembolism (VTE), is approximately 900,000 (Geerts, et al, 2008). Approximately two-thirds of cases of DVT or PE are associated with recent hospitalization. This is consistent with the 2001 report by The Agency for Healthcare Research and Quality (AHRQ). AHRQ indicates that \"the appropriate application of effective preventive measures in hospitals has major potential for improving patient safety by reducing the incidence of venous thromboembolism\" (Shojania, 2001).\n\nDespite its proven effectiveness, rates of appropriate thromboprophylaxis remain low in both medical and surgical patients. A recent analysis from the ENDORSE survey, which evaluated prophylaxis rates in 17,084 major surgery patients, found that more than one third of patients at risk for VTE (38%) did not receive prophylaxis and that rates varied by surgery type (Cohen, et al., 2008).\n\nIn a review of evidence-based patient safety practices, the Agency for Healthcare Research and Quality defined thromboprophylaxis against VTE as the \"number one patient safety practice\" for hospitalized patients (Shojania, 2001). Updated \"safe practices\" published by the National Quality Forum (NQF) recommend routine evaluation of hospitalized patients for risk of VTE and use of appropriate prophylaxis (National Quality Forum. National Voluntary Consensus Standards for Prevention and Care of Venous Thromboembolism, 2006).\n\nAs noted by the ACCP, a vast number of randomized clinical trials provide irrefutable evidence that thromboprophylaxis reduces VTE events, and there are studies that have also shown that fatal PE is prevented by thromboprophylaxis (Geerts, et al. 2008).\n\nSome select surgeries have previously been monitored in the Surgical Care Improvement Project; since performance on these surgeries has achieved very high levels, they are not included in this measure.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "CRS",
      "value": "Failure to recognize and protect patients at risk for venous thromboembolism (VTE) increases the chances for acutely ill hospitalized patients at high risk for developing a deep vein thrombosis or dying from a pulmonary emboli. Screening all patients is the only evidence based practice in reducing incidence of disease.  All hospitalized patients should be evaluated for primary VTE prophylaxis, and given appropriate prophylaxis when indicated.",
      "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": "Failure to recognize and protect patients at risk for venous thromboembolism (VTE) increases the chances for acutely ill hospitalized patients at high risk for developing a deep vein thrombosis or dying from a pulmonary emboli. Screening all patients is the only evidence based practice in reducing incidence of disease.  All hospitalized patients should be evaluated for primary VTE prophylaxis, and given appropriate prophylaxis when indicated.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "IDUR",
      "value": "Improvement noted as an increase in rate",
      "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": "Improvement noted as an increase in rate",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Cohen AT, Tapson VF, Bergmann JF, et al. Venous thromboembolism risk and prophylaxis in the acute hospital care setting (ENDORSE study): a multinational cross-sectional study. Lancet. 2008;371:387-394.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Cohen AT, Tapson VF, Bergmann JF, et al. Venous thromboembolism risk and prophylaxis in the acute hospital care setting (ENDORSE study): a multinational cross-sectional study. Lancet. 2008;371:387-394.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Geerts  WH, Bergqvist D, Pineo GF, Heit JA, Samama CM, Lassen MR, Colwell CW. Prevention of venous thromboembolism. The Eighth ACCP Conference on antithrombotic and thrombolytic therapy. Chest. 2008; 133:381S-453S",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Geerts  WH, Bergqvist D, Pineo GF, Heit JA, Samama CM, Lassen MR, Colwell CW. Prevention of venous thromboembolism. The Eighth ACCP Conference on antithrombotic and thrombolytic therapy. Chest. 2008; 133:381S-453S",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Guyatt, G.H., Akl, E.A., Crowther, M., Gutterman, D., Schunemann, H. Antithrombotic Therapy and Prevention of Thrombosis, 9th edition: American College of Chest Physicians Evidence-Based Clinical Practice Guidelines. CHEST 2012; 141(2)(Supp):7S-47S",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Guyatt, G.H., Akl, E.A., Crowther, M., Gutterman, D., Schunemann, H. Antithrombotic Therapy and Prevention of Thrombosis, 9th edition: American College of Chest Physicians Evidence-Based Clinical Practice Guidelines. CHEST 2012; 141(2)(Supp):7S-47S",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Kearon C, Akl EA, Comerota AJ, Prandoni P, Bounameaux H, Goldhaber SZ, Nelson ME, Wells PS, Gould MK, Dentali F, Crowther M, Kahn SR. Antithrombotic therapy for VTE disease: Antithrombotic Therapy and Prevention of Thrombosis, 9th Edition: American College of Chest Physicians Evidence-based Clinical Practice Guidelines. CHEST 2012 Feb; 141(2) (Supp):e419S-94S.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Kearon C, Akl EA, Comerota AJ, Prandoni P, Bounameaux H, Goldhaber SZ, Nelson ME, Wells PS, Gould MK, Dentali F, Crowther M, Kahn SR. Antithrombotic therapy for VTE disease: Antithrombotic Therapy and Prevention of Thrombosis, 9th Edition: American College of Chest Physicians Evidence-based Clinical Practice Guidelines. CHEST 2012 Feb; 141(2) (Supp):e419S-94S.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "National Quality Forum. National Voluntary Consensus Standards for Prevention and Care of Venous Thromboembolism: Policy, Preferred Practices, and Initial Performance Measures. A Consensus Report. Washington, DC. NQF; 2006",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "National Quality Forum. National Voluntary Consensus Standards for Prevention and Care of Venous Thromboembolism: Policy, Preferred Practices, and Initial Performance Measures. A Consensus Report. Washington, DC. NQF; 2006",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Shojania KG, Duncan BW, McDonald DM, et al. (Eds.). (2001). Making healthcare safer; A critical analysis of patient safety practices (Evidence Report/Technology Assessment No. 43). Prepared by the University of California at San Francisco-Stanford Evidenced-based Practice Center under Contract no. 290-97-0013 (AHRQ Publication NO.01-E058). Rockville, MD:Agency for Healthcare Research and Quality.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Shojania KG, Duncan BW, McDonald DM, et al. (Eds.). (2001). Making healthcare safer; A critical analysis of patient safety practices (Evidence Report/Technology Assessment No. 43). Prepared by the University of California at San Francisco-Stanford Evidenced-based Practice Center under Contract no. 290-97-0013 (AHRQ Publication NO.01-E058). Rockville, MD:Agency for Healthcare Research and Quality.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DEF",
      "value": "None",
      "name": "Definition",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DEF",
        "title": "Definition"
      },
      "value_obj": {
        "type": "ED",
        "value": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "GUIDE",
      "value": "When low dose unfractionated heparin is administered for VTE Prophylaxis, the intended administration route for low dose unfractionated heparin is subcutaneous.\n\nReasons for no pharmacological and no mechanical VTE prophylaxis must be explicitly documented by the MD/APN/PA or pharmacist and linked with VTE prophylaxis. Ambulation alone is not a sufficient reason for not administering VTE prophylaxis. In order for ambulation/patient ambulating to be considered as an acceptable reason, there needs to be explicit documentation, e.g., \"patient out of bed and ambulating in halls - no VTE prophylaxis needed.\"",
      "name": "Guidance",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "GUIDE",
        "title": "Guidance"
      },
      "value_obj": {
        "type": "ED",
        "value": "When low dose unfractionated heparin is administered for VTE Prophylaxis, the intended administration route for low dose unfractionated heparin is subcutaneous.\n\nReasons for no pharmacological and no mechanical VTE prophylaxis must be explicitly documented by the MD/APN/PA or pharmacist and linked with VTE prophylaxis. Ambulation alone is not a sufficient reason for not administering VTE prophylaxis. In order for ambulation/patient ambulating to be considered as an acceptable reason, there needs to be explicit documentation, e.g., \"patient out of bed and ambulating in halls - no VTE prophylaxis needed.\"",
        "media_type": "text/plain"
      }
    },
    {
      "code": "TRANF",
      "value": "TBD",
      "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": "TBD",
        "media_type": "text/plain"
      }
    },
    {
      "code": "IPOP",
      "value": "Patients age 18 and older discharged from hospital inpatient acute care without a diagnosis of venous thromboembolism (VTE) or obstetrics with a length of stay less than or equal to 120 days that ends during the measurement period",
      "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": "Patients age 18 and older discharged from hospital inpatient acute care without a diagnosis of venous thromboembolism (VTE) or obstetrics with a length of stay less than or equal to 120 days that ends during the measurement period",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENOM",
      "value": "All patients in the initial population",
      "name": "Denominator",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DENOM",
        "title": "Denominator"
      },
      "value_obj": {
        "type": "ED",
        "value": "All patients in the initial population",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENEX",
      "value": "* Patients who have a length of stay less than 2 days\n* Patients with comfort measures documented anytime between arrival and the day after hospital admission\n* Patients with comfort measures documented by the day after surgery end date for surgeries that start the day of or the day after hospital admission\n* Patients who are direct admits to intensive care unit (ICU), or transferred to ICU the day of or the day after hospital admission with ICU length of stay greater than or equal to one day\n* Patients with a principal diagnosis of mental disorders or stroke\n* Patients with a principal procedure of Surgical Care Improvement Project (SCIP) VTE selected surgeries",
      "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": "* Patients who have a length of stay less than 2 days\n* Patients with comfort measures documented anytime between arrival and the day after hospital admission\n* Patients with comfort measures documented by the day after surgery end date for surgeries that start the day of or the day after hospital admission\n* Patients who are direct admits to intensive care unit (ICU), or transferred to ICU the day of or the day after hospital admission with ICU length of stay greater than or equal to one day\n* Patients with a principal diagnosis of mental disorders or stroke\n* Patients with a principal procedure of Surgical Care Improvement Project (SCIP) VTE selected surgeries",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMER",
      "value": "Patients who received VTE prophylaxis:\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date for surgeries that end the day of or the day after hospital admission\n\nPatients who have documentation of a reason why no VTE prophylaxis was given:\n- between arrival and hospital admission\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date (for surgeries that end the day of or the day after hospital admission)",
      "name": "Numerator",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "NUMER",
        "title": "Numerator"
      },
      "value_obj": {
        "type": "ED",
        "value": "Patients who received VTE prophylaxis:\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date for surgeries that end the day of or the day after hospital admission\n\nPatients who have documentation of a reason why no VTE prophylaxis was given:\n- between arrival and hospital admission\n- the day of or the day after hospital admission\n- the day of or the day after surgery end date (for surgeries that end the day of or the day after hospital admission)",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMEX",
      "value": "Not Applicable",
      "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": "Not Applicable",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENEXCEP",
      "value": "None",
      "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": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "SDE",
      "value": "For every patient evaluated by this measure also identify payer, race, ethnicity and sex",
      "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": "For every patient evaluated by this measure also identify payer, race, ethnicity and sex",
        "media_type": "text/plain"
      }
    }
  ],
  "measure_id": "40280382-6258-7581-0162-693C3D8A07C9",
  "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
    }
  },
  "needs_finalize": false,
  "observations": [

  ],
  "population_criteria": {
    "IPP": {
      "conjunction?": true,
      "type": "IPP",
      "hqmf_id": "765CF691-B343-4AB4-8383-485A64987A93",
      "preconditions": [
        {
          "id": 2,
          "preconditions": [
            {
              "id": 1,
              "reference": "VenousThromboembolismProphylaxis__Initial_Population__DD8FE9C6_172A_4347_A7C5_78D731183F1D"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "09606A11-0379-443E-867A-F4AD06925A2A",
      "preconditions": [
        {
          "id": 4,
          "preconditions": [
            {
              "id": 3,
              "reference": "VenousThromboembolismProphylaxis__Denominator__DD8FE9C6_172A_4347_A7C5_78D731183F1D"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "C69FBE2B-1216-4862-BAD8-753B1B59677E",
      "preconditions": [
        {
          "id": 6,
          "preconditions": [
            {
              "id": 5,
              "reference": "VenousThromboembolismProphylaxis__Numerator__DD8FE9C6_172A_4347_A7C5_78D731183F1D"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENEX": {
      "conjunction?": true,
      "type": "DENEX",
      "hqmf_id": "F1F2E59E-7C86-4452-BDA0-F4780B9D5DB3",
      "preconditions": [
        {
          "id": 8,
          "preconditions": [
            {
              "id": 7,
              "reference": "VenousThromboembolismProphylaxis__Denominator_Exclusions__DD8FE9C6_172A_4347_A7C5_78D731183F1D"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    }
  },
  "populations": [
    {
      "IPP": "IPP",
      "DENOM": "DENOM",
      "NUMER": "NUMER",
      "DENEX": "DENEX",
      "id": "PopulationCriteria1",
      "title": "Population Criteria Section"
    }
  ],
  "populations_cql_map": {
    "IPP": [
      "Initial Population"
    ],
    "DENOM": [
      "Denominator"
    ],
    "DENEX": [
      "Denominator Exclusions"
    ],
    "NUMER": [
      "Numerator"
    ]
  },
  "publish_date": null,
  "published": null,
  "record_ids": [

  ],
  "source_data_criteria": {
    "Venousfootpumps_VFP__DeviceApplied_40280381_3d27_5493_013d_4be146945c82_source": {
      "title": "Venousfootpumps(VFP)",
      "description": "Device, Applied: Venousfootpumps(VFP)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.230",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Venousfootpumps_VFP__DeviceApplied_40280381_3d27_5493_013d_4be146945c82_source",
      "variable": false
    },
    "Venousfootpumps_VFP__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c82_source": {
      "title": "Venousfootpumps(VFP)",
      "description": "Device, Not Applied: Venousfootpumps(VFP)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.230",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Venousfootpumps_VFP__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c82_source",
      "variable": false
    },
    "Venousfootpumps_VFP__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c82_source": {
      "title": "Venousfootpumps(VFP)",
      "description": "Device, Ordered: Venousfootpumps(VFP)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.230",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Venousfootpumps_VFP__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c82_source",
      "variable": false
    },
    "ONCAdministrativeSex_PatientCharacteristicSex_6cd8f7f9_febb_412e_abe1_97f203452898_source": {
      "title": "ONCAdministrativeSex",
      "description": "Patient Characteristic Sex: ONCAdministrativeSex",
      "code_list_id": "2.16.840.1.113762.1.4.1",
      "property": "gender",
      "type": "characteristic",
      "definition": "patient_characteristic_gender",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "ONCAdministrativeSex_PatientCharacteristicSex_6cd8f7f9_febb_412e_abe1_97f203452898_source",
      "variable": false,
      "value": {
        "type": "CD",
        "system": "Administrative Sex",
        "code": "F"
      }
    },
    "DirectThrombinInhibitor_MedicationAdministered_40280381_3d27_5493_013d_4be146955c93_source": {
      "title": "DirectThrombinInhibitor",
      "description": "Medication, Administered: DirectThrombinInhibitor",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.205",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "DirectThrombinInhibitor_MedicationAdministered_40280381_3d27_5493_013d_4be146955c93_source",
      "variable": false
    },
    "GeneralorNeuraxialAnesthesia_ProcedurePerformed_6640ed6e_22d6_4c14_bbd2_19b08d67ca81_source": {
      "title": "GeneralorNeuraxialAnesthesia",
      "description": "Procedure, Performed: GeneralorNeuraxialAnesthesia",
      "code_list_id": "2.16.840.1.113883.3.666.5.1743",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "GeneralorNeuraxialAnesthesia_ProcedurePerformed_6640ed6e_22d6_4c14_bbd2_19b08d67ca81_source",
      "variable": false
    },
    "UnfractionatedHeparin_MedicationAdministered_40280381_3d27_5493_013d_4be146955c91_source": {
      "title": "UnfractionatedHeparin",
      "description": "Medication, Administered: UnfractionatedHeparin",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.218",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "UnfractionatedHeparin_MedicationAdministered_40280381_3d27_5493_013d_4be146955c91_source",
      "variable": false
    },
    "INR_LaboratoryTestPerformed_40280381_3d27_5493_013d_4be146945c86_source": {
      "title": "INR",
      "description": "Laboratory Test, Performed: INR",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.213",
      "type": "laboratory_tests",
      "definition": "laboratory_test",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "INR_LaboratoryTestPerformed_40280381_3d27_5493_013d_4be146945c86_source",
      "variable": false
    },
    "GeneralSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c72_source": {
      "title": "GeneralSurgery",
      "description": "Procedure, Performed: GeneralSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.255",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "GeneralSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c72_source",
      "variable": false
    },
    "OralFactorXaInhibitorforVTEProphylaxisorVTETreatment_MedicationAdministered_40280381_3d27_5493_013d_4be146935c5b_source": {
      "title": "OralFactorXaInhibitorforVTEProphylaxisorVTETreatment",
      "description": "Medication, Administered: OralFactorXaInhibitorforVTEProphylaxisorVTETreatment",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.134",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "OralFactorXaInhibitorforVTEProphylaxisorVTETreatment_MedicationAdministered_40280381_3d27_5493_013d_4be146935c5b_source",
      "variable": false
    },
    "VenousThromboembolism_Diagnosis_aa5f0e2a_d86e_4e34_9593_669a00f22e1b_source": {
      "title": "VenousThromboembolism",
      "description": "Diagnosis: VenousThromboembolism",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.279",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "VenousThromboembolism_Diagnosis_aa5f0e2a_d86e_4e34_9593_669a00f22e1b_source",
      "variable": false
    },
    "GynecologicalSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c74_source": {
      "title": "GynecologicalSurgery",
      "description": "Procedure, Performed: GynecologicalSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.257",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "GynecologicalSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c74_source",
      "variable": false
    },
    "HipReplacementSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c75_source": {
      "title": "HipReplacementSurgery",
      "description": "Procedure, Performed: HipReplacementSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.259",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "HipReplacementSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c75_source",
      "variable": false
    },
    "Race_PatientCharacteristicRace_e25cce2f_e723_4235_9cbd_04651ed33bff_source": {
      "title": "Race",
      "description": "Patient Characteristic Race: Race",
      "code_list_id": "2.16.840.1.114222.4.11.836",
      "property": "race",
      "type": "characteristic",
      "definition": "patient_characteristic_race",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Race_PatientCharacteristicRace_e25cce2f_e723_4235_9cbd_04651ed33bff_source",
      "variable": false,
      "inline_code_list": {
        "CDC Race": [
          "1002-5",
          "2028-9",
          "2054-5",
          "2076-8",
          "2106-3",
          "2131-1"
        ]
      }
    },
    "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationAdministered_40280381_3d27_5493_013d_4be146955c94_source": {
      "title": "InjectableFactorXaInhibitorforVTEProphylaxis",
      "description": "Medication, Administered: InjectableFactorXaInhibitorforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.211",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationAdministered_40280381_3d27_5493_013d_4be146955c94_source",
      "variable": false
    },
    "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c94_source": {
      "title": "InjectableFactorXaInhibitorforVTEProphylaxis",
      "description": "Medication, Not Administered: InjectableFactorXaInhibitorforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.211",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c94_source",
      "variable": false
    },
    "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c94_source": {
      "title": "InjectableFactorXaInhibitorforVTEProphylaxis",
      "description": "Medication, Ordered: InjectableFactorXaInhibitorforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.211",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c94_source",
      "variable": false
    },
    "AtrialFibrillation_Flutter_Diagnosis_76a1686e_adb3_4769_8eff_79d0a68bfbfc_source": {
      "title": "AtrialFibrillation/Flutter",
      "description": "Diagnosis: AtrialFibrillation/Flutter",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.202",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "AtrialFibrillation_Flutter_Diagnosis_76a1686e_adb3_4769_8eff_79d0a68bfbfc_source",
      "variable": false
    },
    "UrologicalSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c73_source": {
      "title": "UrologicalSurgery",
      "description": "Procedure, Performed: UrologicalSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.272",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "UrologicalSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c73_source",
      "variable": false
    },
    "ObstetricsVTE_Diagnosis_98661cc3_b760_46e8_89d5_4b145d344a9a_source": {
      "title": "ObstetricsVTE",
      "description": "Diagnosis: ObstetricsVTE",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.264",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "ObstetricsVTE_Diagnosis_98661cc3_b760_46e8_89d5_4b145d344a9a_source",
      "variable": false
    },
    "Payer_PatientCharacteristicPayer_8ff8d284_dff3_4a8e_95c5_d6131dd1aec6_source": {
      "title": "Payer",
      "description": "Patient Characteristic Payer: Payer",
      "code_list_id": "2.16.840.1.114222.4.11.3591",
      "property": "payer",
      "type": "characteristic",
      "definition": "patient_characteristic_payer",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Payer_PatientCharacteristicPayer_8ff8d284_dff3_4a8e_95c5_d6131dd1aec6_source",
      "variable": false,
      "inline_code_list": {
        "Source of Payment Typology": [
          "1",
          "11",
          "111",
          "112",
          "113",
          "119",
          "12",
          "121",
          "122",
          "123",
          "129",
          "13",
          "14",
          "19",
          "191",
          "2",
          "21",
          "211",
          "212",
          "213",
          "219",
          "22",
          "23",
          "24",
          "25",
          "26",
          "29",
          "291",
          "299",
          "3",
          "31",
          "311",
          "3111",
          "3112",
          "3113",
          "3114",
          "3115",
          "3116",
          "3119",
          "312",
          "3121",
          "3122",
          "3123",
          "313",
          "32",
          "321",
          "3211",
          "3212",
          "32121",
          "32122",
          "32123",
          "32124",
          "32125",
          "32126",
          "32127",
          "32128",
          "322",
          "3221",
          "3222",
          "3223",
          "3229",
          "33",
          "331",
          "332",
          "333",
          "334",
          "34",
          "341",
          "342",
          "343",
          "349",
          "35",
          "36",
          "361",
          "362",
          "369",
          "37",
          "371",
          "3711",
          "3712",
          "3713",
          "372",
          "379",
          "38",
          "381",
          "3811",
          "3812",
          "3813",
          "3819",
          "382",
          "389",
          "39",
          "391",
          "4",
          "41",
          "42",
          "43",
          "44",
          "5",
          "51",
          "511",
          "512",
          "513",
          "514",
          "515",
          "516",
          "517",
          "519",
          "52",
          "521",
          "522",
          "523",
          "524",
          "529",
          "53",
          "54",
          "55",
          "56",
          "561",
          "562",
          "59",
          "6",
          "61",
          "611",
          "612",
          "613",
          "614",
          "619",
          "62",
          "621",
          "622",
          "623",
          "629",
          "7",
          "71",
          "72",
          "73",
          "79",
          "8",
          "81",
          "82",
          "821",
          "822",
          "823",
          "83",
          "84",
          "85",
          "89",
          "9",
          "91",
          "92",
          "93",
          "94",
          "95",
          "951",
          "953",
          "954",
          "959",
          "96",
          "97",
          "98",
          "99",
          "9999"
        ]
      }
    },
    "IntracranialNeurosurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c71_source": {
      "title": "IntracranialNeurosurgery",
      "description": "Procedure, Performed: IntracranialNeurosurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.260",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "IntracranialNeurosurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c71_source",
      "variable": false
    },
    "ComfortMeasures_InterventionOrder_700ac933_507e_4e59_bec8_e2877c2a07da_source": {
      "title": "ComfortMeasures",
      "description": "Intervention, Order: ComfortMeasures",
      "code_list_id": "1.3.6.1.4.1.33895.1.3.0.45",
      "type": "interventions",
      "definition": "intervention",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "ComfortMeasures_InterventionOrder_700ac933_507e_4e59_bec8_e2877c2a07da_source",
      "variable": false
    },
    "ComfortMeasures_InterventionPerformed_700ac933_507e_4e59_bec8_e2877c2a07da_source": {
      "title": "ComfortMeasures",
      "description": "Intervention, Performed: ComfortMeasures",
      "code_list_id": "1.3.6.1.4.1.33895.1.3.0.45",
      "type": "interventions",
      "definition": "intervention",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "ComfortMeasures_InterventionPerformed_700ac933_507e_4e59_bec8_e2877c2a07da_source",
      "variable": false
    },
    "KneeReplacementSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c76_source": {
      "title": "KneeReplacementSurgery",
      "description": "Procedure, Performed: KneeReplacementSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.261",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "KneeReplacementSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c76_source",
      "variable": false
    },
    "Warfarin_MedicationAdministered_40280381_3d27_5493_013d_4be146955c95_source": {
      "title": "Warfarin",
      "description": "Medication, Administered: Warfarin",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.232",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Warfarin_MedicationAdministered_40280381_3d27_5493_013d_4be146955c95_source",
      "variable": false
    },
    "Warfarin_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c95_source": {
      "title": "Warfarin",
      "description": "Medication, Not Administered: Warfarin",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.232",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Warfarin_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c95_source",
      "variable": false
    },
    "Warfarin_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c95_source": {
      "title": "Warfarin",
      "description": "Medication, Ordered: Warfarin",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.232",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Warfarin_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c95_source",
      "variable": false
    },
    "EncounterInpatient_EncounterPerformed_c8060e96_dc7d_4780_a5cd_0aff93854cf3_source": {
      "title": "EncounterInpatient",
      "description": "Encounter, Performed: EncounterInpatient",
      "code_list_id": "2.16.840.1.113883.3.666.5.307",
      "type": "encounters",
      "definition": "encounter",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "EncounterInpatient_EncounterPerformed_c8060e96_dc7d_4780_a5cd_0aff93854cf3_source",
      "variable": false
    },
    "Graduatedcompressionstockings_GCS__DeviceApplied_40280381_3d27_5493_013d_4be146945c81_source": {
      "title": "Graduatedcompressionstockings(GCS)",
      "description": "Device, Applied: Graduatedcompressionstockings(GCS)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.256",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Graduatedcompressionstockings_GCS__DeviceApplied_40280381_3d27_5493_013d_4be146945c81_source",
      "variable": false
    },
    "Graduatedcompressionstockings_GCS__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c81_source": {
      "title": "Graduatedcompressionstockings(GCS)",
      "description": "Device, Not Applied: Graduatedcompressionstockings(GCS)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.256",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Graduatedcompressionstockings_GCS__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c81_source",
      "variable": false
    },
    "Graduatedcompressionstockings_GCS__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c81_source": {
      "title": "Graduatedcompressionstockings(GCS)",
      "description": "Device, Ordered: Graduatedcompressionstockings(GCS)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.256",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Graduatedcompressionstockings_GCS__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c81_source",
      "variable": false
    },
    "HipFractureSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c77_source": {
      "title": "HipFractureSurgery",
      "description": "Procedure, Performed: HipFractureSurgery",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.258",
      "type": "procedures",
      "definition": "procedure",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "HipFractureSurgery_ProcedurePerformed_40280381_3d27_5493_013d_4be146945c77_source",
      "variable": false
    },
    "Obstetrics_Diagnosis_3b12918d_be6b_4c11_be50_d64716776b76_source": {
      "title": "Obstetrics",
      "description": "Diagnosis: Obstetrics",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.263",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Obstetrics_Diagnosis_3b12918d_be6b_4c11_be50_d64716776b76_source",
      "variable": false
    },
    "GlycoproteinIIb_IIIaInhibitors_MedicationAdministered_255893d5_bf16_4b8f_93c2_7f5b708aa666_source": {
      "title": "GlycoproteinIIb/IIIaInhibitors",
      "description": "Medication, Administered: GlycoproteinIIb/IIIaInhibitors",
      "code_list_id": "2.16.840.1.113762.1.4.1045.41",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "GlycoproteinIIb_IIIaInhibitors_MedicationAdministered_255893d5_bf16_4b8f_93c2_7f5b708aa666_source",
      "variable": false
    },
    "Ethnicity_PatientCharacteristicEthnicity_10a958d1_c340_4d33_bbea_22a96ed10dcd_source": {
      "title": "Ethnicity",
      "description": "Patient Characteristic Ethnicity: Ethnicity",
      "code_list_id": "2.16.840.1.114222.4.11.837",
      "property": "ethnicity",
      "type": "characteristic",
      "definition": "patient_characteristic_ethnicity",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Ethnicity_PatientCharacteristicEthnicity_10a958d1_c340_4d33_bbea_22a96ed10dcd_source",
      "variable": false,
      "inline_code_list": {
        "CDC Race": [
          "2135-2",
          "2186-5"
        ]
      }
    },
    "EmergencyDepartmentVisit_EncounterPerformed_943fd468_a486_47eb_bcef_69bbc31a73a0_source": {
      "title": "EmergencyDepartmentVisit",
      "description": "Encounter, Performed: EmergencyDepartmentVisit",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.292",
      "type": "encounters",
      "definition": "encounter",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "EmergencyDepartmentVisit_EncounterPerformed_943fd468_a486_47eb_bcef_69bbc31a73a0_source",
      "variable": false
    },
    "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationAdministered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source": {
      "title": "LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "description": "Medication, Administered: LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113762.1.4.1045.39",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationAdministered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source",
      "variable": false
    },
    "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationNotAdministered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source": {
      "title": "LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "description": "Medication, Not Administered: LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113762.1.4.1045.39",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationNotAdministered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source",
      "variable": false
    },
    "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationNotOrdered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source": {
      "title": "LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "description": "Medication, Ordered: LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113762.1.4.1045.39",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationNotOrdered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source",
      "variable": false
    },
    "LowMolecularWeightHeparinforVTEProphylaxis_MedicationAdministered_40280381_3d27_5493_013d_4be146955c92_source": {
      "title": "LowMolecularWeightHeparinforVTEProphylaxis",
      "description": "Medication, Administered: LowMolecularWeightHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.219",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "LowMolecularWeightHeparinforVTEProphylaxis_MedicationAdministered_40280381_3d27_5493_013d_4be146955c92_source",
      "variable": false
    },
    "LowMolecularWeightHeparinforVTEProphylaxis_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c92_source": {
      "title": "LowMolecularWeightHeparinforVTEProphylaxis",
      "description": "Medication, Not Administered: LowMolecularWeightHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.219",
      "type": "medications",
      "definition": "medication",
      "status": "administered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "LowMolecularWeightHeparinforVTEProphylaxis_MedicationNotAdministered_40280381_3d27_5493_013d_4be146955c92_source",
      "variable": false
    },
    "LowMolecularWeightHeparinforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c92_source": {
      "title": "LowMolecularWeightHeparinforVTEProphylaxis",
      "description": "Medication, Ordered: LowMolecularWeightHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.219",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "LowMolecularWeightHeparinforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c92_source",
      "variable": false
    },
    "Intermittentpneumaticcompressiondevices_IPC__DeviceApplied_40280381_3d27_5493_013d_4be146945c83_source": {
      "title": "Intermittentpneumaticcompressiondevices(IPC)",
      "description": "Device, Applied: Intermittentpneumaticcompressiondevices(IPC)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.214",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Intermittentpneumaticcompressiondevices_IPC__DeviceApplied_40280381_3d27_5493_013d_4be146945c83_source",
      "variable": false
    },
    "Intermittentpneumaticcompressiondevices_IPC__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c83_source": {
      "title": "Intermittentpneumaticcompressiondevices(IPC)",
      "description": "Device, Not Applied: Intermittentpneumaticcompressiondevices(IPC)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.214",
      "type": "devices",
      "definition": "device",
      "status": "applied",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Intermittentpneumaticcompressiondevices_IPC__DeviceNotApplied_40280381_3d27_5493_013d_4be146945c83_source",
      "variable": false
    },
    "Intermittentpneumaticcompressiondevices_IPC__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c83_source": {
      "title": "Intermittentpneumaticcompressiondevices(IPC)",
      "description": "Device, Ordered: Intermittentpneumaticcompressiondevices(IPC)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.214",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": true,
      "source_data_criteria": "Intermittentpneumaticcompressiondevices_IPC__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c83_source",
      "variable": false
    },
    "prefix_72136_5_AssessmentPerformed_B7EF188A_B153_422B_8D67_C74436EAB826_source": {
      "title": "Assessment, Performed: Assessment, Performed",
      "description": "Assessment, Performed: Assessment, Performed",
      "type": "assessments",
      "definition": "assessment",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "prefix_72136_5_AssessmentPerformed_B7EF188A_B153_422B_8D67_C74436EAB826_source",
      "variable": false,
      "inline_code_list": {
        "LOINC": [
          "72136-5"
        ]
      },
      "code_list_id": "drc-522a38859e8337cb6214742610b449c149172dccc97f176b0b580b4d3f975004"
    },
    "Venousfootpumps_VFP__DeviceOrdered_40280381_3d27_5493_013d_4be146945c82_spoofed_source": {
      "title": "Venousfootpumps(VFP)",
      "description": "Device, Ordered: Venousfootpumps(VFP)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.230",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from Venousfootpumps_VFP__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c82_source",
      "variable": false
    },
    "InjectableFactorXaInhibitorforVTEProphylaxis_MedicationOrdered_40280381_3d27_5493_013d_4be146955c94_spoofed_source": {
      "title": "InjectableFactorXaInhibitorforVTEProphylaxis",
      "description": "Medication, Ordered: InjectableFactorXaInhibitorforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.211",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from InjectableFactorXaInhibitorforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c94_source",
      "variable": false
    },
    "Warfarin_MedicationOrdered_40280381_3d27_5493_013d_4be146955c95_spoofed_source": {
      "title": "Warfarin",
      "description": "Medication, Ordered: Warfarin",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.232",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from Warfarin_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c95_source",
      "variable": false
    },
    "Graduatedcompressionstockings_GCS__DeviceOrdered_40280381_3d27_5493_013d_4be146945c81_spoofed_source": {
      "title": "Graduatedcompressionstockings(GCS)",
      "description": "Device, Ordered: Graduatedcompressionstockings(GCS)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.256",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from Graduatedcompressionstockings_GCS__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c81_source",
      "variable": false
    },
    "LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationOrdered_389f98c4_53d0_4562_bfae_02b74a2f8c26_spoofed_source": {
      "title": "LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "description": "Medication, Ordered: LowDoseUnfractionatedHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113762.1.4.1045.39",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from LowDoseUnfractionatedHeparinforVTEProphylaxis_MedicationNotOrdered_389f98c4_53d0_4562_bfae_02b74a2f8c26_source",
      "variable": false
    },
    "LowMolecularWeightHeparinforVTEProphylaxis_MedicationOrdered_40280381_3d27_5493_013d_4be146955c92_spoofed_source": {
      "title": "LowMolecularWeightHeparinforVTEProphylaxis",
      "description": "Medication, Ordered: LowMolecularWeightHeparinforVTEProphylaxis",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.219",
      "type": "medications",
      "definition": "medication",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from LowMolecularWeightHeparinforVTEProphylaxis_MedicationNotOrdered_40280381_3d27_5493_013d_4be146955c92_source",
      "variable": false
    },
    "Intermittentpneumaticcompressiondevices_IPC__DeviceOrdered_40280381_3d27_5493_013d_4be146945c83_spoofed_source": {
      "title": "Intermittentpneumaticcompressiondevices(IPC)",
      "description": "Device, Ordered: Intermittentpneumaticcompressiondevices(IPC)",
      "code_list_id": "2.16.840.1.113883.3.117.1.7.1.214",
      "type": "devices",
      "definition": "device",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "Derived from Intermittentpneumaticcompressiondevices_IPC__DeviceNotOrdered_40280381_3d27_5493_013d_4be146945c83_source",
      "variable": false
    }
  },
  "title": "Venous Thromboembolism Prophylaxis",
  "type": "eh",
  "updated_at": "2018-03-27T20:58:14.701Z",
  "user_id": "501fdba3044a111b98000001",
  "value_set_oid_version_objects": [
    {
      "oid": "2.16.840.1.113762.1.4.1",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.114222.4.11.836",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.114222.4.11.837",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.114222.4.11.3591",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.202",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "1.3.6.1.4.1.33895.1.3.0.45",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.205",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.292",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.666.5.1743",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.255",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113762.1.4.1045.41",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.256",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.257",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.212",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.258",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.259",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.211",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.213",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.214",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.260",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.222",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.247",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.261",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113762.1.4.1045.39",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.219",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.400",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.473",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.464.1003.105.12.1004",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.263",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.264",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.134",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.93",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.14",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.223",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.218",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.272",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.230",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.279",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.232",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113762.1.4.1110.23",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "2.16.840.1.113883.3.666.5.307",
      "version": "Draft-38B0B5EC-0F63-466F-8FE3-2CD20DDD1622"
    },
    {
      "oid": "drc-522a38859e8337cb6214742610b449c149172dccc97f176b0b580b4d3f975004",
      "version": ""
    },
    {
      "oid": "drc-5e3dd7a2b908c12dc1dd525dd16ae9b969b86825d92d4b58d101ef476d44510b",
      "version": ""
    },
    {
      "oid": "drc-288b28533ea3e20c8bed70cf4e0a8d78afa536cf3be01339e67e189ef32d0b58",
      "version": ""
    }
  ],
  "value_set_oids": [
    "2.16.840.1.113762.1.4.1",
    "2.16.840.1.114222.4.11.836",
    "2.16.840.1.114222.4.11.837",
    "2.16.840.1.114222.4.11.3591",
    "2.16.840.1.113883.3.117.1.7.1.202",
    "1.3.6.1.4.1.33895.1.3.0.45",
    "2.16.840.1.113883.3.117.1.7.1.205",
    "2.16.840.1.113883.3.117.1.7.1.292",
    "2.16.840.1.113883.3.666.5.1743",
    "2.16.840.1.113883.3.117.1.7.1.255",
    "2.16.840.1.113762.1.4.1045.41",
    "2.16.840.1.113883.3.117.1.7.1.256",
    "2.16.840.1.113883.3.117.1.7.1.257",
    "2.16.840.1.113883.3.117.1.7.1.212",
    "2.16.840.1.113883.3.117.1.7.1.258",
    "2.16.840.1.113883.3.117.1.7.1.259",
    "2.16.840.1.113883.3.117.1.7.1.211",
    "2.16.840.1.113883.3.117.1.7.1.213",
    "2.16.840.1.113883.3.117.1.7.1.214",
    "2.16.840.1.113883.3.117.1.7.1.260",
    "2.16.840.1.113883.3.117.1.7.1.222",
    "2.16.840.1.113883.3.117.1.7.1.247",
    "2.16.840.1.113883.3.117.1.7.1.261",
    "2.16.840.1.113762.1.4.1045.39",
    "2.16.840.1.113883.3.117.1.7.1.219",
    "2.16.840.1.113883.3.117.1.7.1.400",
    "2.16.840.1.113883.3.117.1.7.1.473",
    "2.16.840.1.113883.3.464.1003.105.12.1004",
    "2.16.840.1.113883.3.117.1.7.1.263",
    "2.16.840.1.113883.3.117.1.7.1.264",
    "2.16.840.1.113883.3.117.1.7.1.134",
    "2.16.840.1.113883.3.117.1.7.1.93",
    "2.16.840.1.113883.3.117.1.7.1.14",
    "2.16.840.1.113883.3.117.1.7.1.223",
    "2.16.840.1.113883.3.117.1.7.1.218",
    "2.16.840.1.113883.3.117.1.7.1.272",
    "2.16.840.1.113883.3.117.1.7.1.230",
    "2.16.840.1.113883.3.117.1.7.1.279",
    "2.16.840.1.113883.3.117.1.7.1.232",
    "2.16.840.1.113762.1.4.1110.23",
    "2.16.840.1.113883.3.666.5.307",
    "drc-522a38859e8337cb6214742610b449c149172dccc97f176b0b580b4d3f975004",
    "drc-5e3dd7a2b908c12dc1dd525dd16ae9b969b86825d92d4b58d101ef476d44510b",
    "drc-288b28533ea3e20c8bed70cf4e0a8d78afa536cf3be01339e67e189ef32d0b58"
  ],
  "version": null
}