{
  "calculate_sdes": null,
  "calculation_method": "PATIENT",
  "cms_id": "CMS13v2",
  "component": false,
  "component_hqmf_set_ids": [

  ],
  "composite": false,
  "composite_hqmf_set_id": null,
  "cql_libraries": [
    {
      "cql": "library Test104 version '2.0.004'\r\n\r\nusing QDM version '5.3'\r\n\r\ninclude MATGlobalCommonFunctions version '2.0.000' called global\r\ninclude TJC_Overall version '7.0.000' called TJC\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 \"Comfort Measures\": 'urn:oid:1.3.6.1.4.1.33895.1.3.0.45'\r\nvalueset \"Antithrombotic Therapy\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.201'\r\nvalueset \"Patient Expired\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.309'\r\nvalueset \"Left Against Medical Advice\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.308'\r\nvalueset \"Discharged to Health Care Facility for Hospice Care\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.207'\r\nvalueset \"Discharge To Acute Care Facility\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.87'\r\nvalueset \"Discharged to Home for Hospice Care\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.209'\r\nvalueset \"Medical Reason\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.473'\r\nvalueset \"Patient Refusal\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.93'\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 \"Antithrombotic Not Given at Discharge\":\r\n\t[\"Medication, Not Discharged\": \"Antithrombotic Therapy\"] Antithrombotic\r\n\t\twhere Antithrombotic.negationRationale in \"Medical Reason\"\r\n\t\t\tor Antithrombotic.negationRationale in \"Patient Refusal\"\r\n\r\ndefine \"Antithrombotic Therapy at Discharge\":\r\n\t[\"Medication, Discharge\": \"Antithrombotic Therapy\"] Antithrombotic\n\n/*testing hospitalization function*/\r\n\r\ndefine \"Comfort Measures during Hospitalization\":\r\n\tTJC.\"Encounter with Principal Diagnosis of Ischemic Stroke\" NonElectiveEncounter\r\n\t\twith \"Intervention Comfort Measures\" ComfortMeasure\r\n\t\t\tsuch that Coalesce(start of ComfortMeasure.relevantPeriod, ComfortMeasure.authorDatetime)during global.\"Hospitalization\"(NonElectiveEncounter)\r\n\r\ndefine \"Denominator\":\r\n\tTJC.\"Encounter with Principal Diagnosis of Ischemic Stroke\"\r\n\r\ndefine \"Denominator Exceptions\":\r\n\tTJC.\"Encounter with Principal Diagnosis of Ischemic Stroke\" Encounter\r\n\t\twith \"Antithrombotic Not Given at Discharge\" Antithrombotic\r\n\t\t\tsuch that Antithrombotic.authorDatetime during Encounter.relevantPeriod\r\n\r\ndefine \"Denominator Exclusions\":\r\n\tdistinct((TJC.\"Encounter with Principal Diagnosis of Ischemic Stroke\" Encounter\r\n\t\t\t\twhere Encounter.dischargeDisposition in \"Discharge To Acute Care Facility\"\r\n\t\t\t\t\tor Encounter.dischargeDisposition in \"Left Against Medical Advice\"\r\n\t\t\t\t\tor Encounter.dischargeDisposition in \"Patient Expired\"\r\n\t\t\t\t\tor Encounter.dischargeDisposition in \"Discharged to Home for Hospice Care\"\r\n\t\t\t\t\tor Encounter.dischargeDisposition in \"Discharged to Health Care Facility for Hospice Care\"\r\n\t\t)\r\n\t\t\tunion \"Comfort Measures during Hospitalization\"\r\n\t)\r\n\r\ndefine \"Initial Population\":\r\n\tTJC.\"Encounter with Principal Diagnosis and Age\"\r\n\r\ndefine \"Intervention Comfort Measures\":\r\n\t[\"Intervention, Performed\": \"Comfort Measures\"]\r\n\t\tunion [\"Intervention, Order\": \"Comfort Measures\"]\r\n\r\ndefine \"Numerator\":\r\n\tTJC.\"Encounter with Principal Diagnosis of Ischemic Stroke\" Encounter\r\n\t\twith \"Antithrombotic Therapy at Discharge\" Antithrombotic\r\n\t\t\tsuch that Antithrombotic.authorDatetime during Encounter.relevantPeriod\r\n",
      "elm": {
        "library": {
          "identifier": {
            "id": "Test104",
            "version": "2.0.004"
          },
          "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:48",
                "localIdentifier": "TJC",
                "path": "TJC_Overall",
                "version": "7.0.000"
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "4",
                "locator": "10:1-10:68",
                "name": "ONC Administrative Sex",
                "id": "2.16.840.1.113762.1.4.1",
                "accessLevel": "Public"
              },
              {
                "localId": "5",
                "locator": "11:1-11:53",
                "name": "Race",
                "id": "2.16.840.1.114222.4.11.836",
                "accessLevel": "Public"
              },
              {
                "localId": "6",
                "locator": "12:1-12:58",
                "name": "Ethnicity",
                "id": "2.16.840.1.114222.4.11.837",
                "accessLevel": "Public"
              },
              {
                "localId": "7",
                "locator": "13:1-13:55",
                "name": "Payer",
                "id": "2.16.840.1.114222.4.11.3591",
                "accessLevel": "Public"
              },
              {
                "localId": "8",
                "locator": "14:1-14:65",
                "name": "Comfort Measures",
                "id": "1.3.6.1.4.1.33895.1.3.0.45",
                "accessLevel": "Public"
              },
              {
                "localId": "9",
                "locator": "15:1-15:78",
                "name": "Antithrombotic Therapy",
                "id": "2.16.840.1.113883.3.117.1.7.1.201",
                "accessLevel": "Public"
              },
              {
                "localId": "10",
                "locator": "16:1-16:71",
                "name": "Patient Expired",
                "id": "2.16.840.1.113883.3.117.1.7.1.309",
                "accessLevel": "Public"
              },
              {
                "localId": "11",
                "locator": "17:1-17:83",
                "name": "Left Against Medical Advice",
                "id": "2.16.840.1.113883.3.117.1.7.1.308",
                "accessLevel": "Public"
              },
              {
                "localId": "12",
                "locator": "18:1-18:107",
                "name": "Discharged to Health Care Facility for Hospice Care",
                "id": "2.16.840.1.113883.3.117.1.7.1.207",
                "accessLevel": "Public"
              },
              {
                "localId": "13",
                "locator": "19:1-19:87",
                "name": "Discharge To Acute Care Facility",
                "id": "2.16.840.1.113883.3.117.1.7.1.87",
                "accessLevel": "Public"
              },
              {
                "localId": "14",
                "locator": "20:1-20:91",
                "name": "Discharged to Home for Hospice Care",
                "id": "2.16.840.1.113883.3.117.1.7.1.209",
                "accessLevel": "Public"
              },
              {
                "localId": "15",
                "locator": "21:1-21:70",
                "name": "Medical Reason",
                "id": "2.16.840.1.113883.3.117.1.7.1.473",
                "accessLevel": "Public"
              },
              {
                "localId": "16",
                "locator": "22:1-22:70",
                "name": "Patient Refusal",
                "id": "2.16.840.1.113883.3.117.1.7.1.93",
                "accessLevel": "Public"
              }
            ]
          },
          "statements": {
            "def": [
              {
                "locator": "26:1-26:15",
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "locator": "26:1-26:15",
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "18",
                "locator": "28:1-29:50",
                "name": "SDE Ethnicity",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "18",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Ethnicity\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "17",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Ethnicity\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Ethnicity\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "17",
                  "locator": "29:2-29:50",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicEthnicity",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Ethnicity",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "20",
                "locator": "31:1-32:42",
                "name": "SDE Payer",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "20",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Payer\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "19",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Payer\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Payer\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "19",
                  "locator": "32:2-32:42",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicPayer",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Payer",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "22",
                "locator": "34:1-35:40",
                "name": "SDE Race",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "22",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Race\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "21",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Race\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Race\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "21",
                  "locator": "35:2-35:40",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicRace",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Race",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "24",
                "locator": "37:1-38:57",
                "name": "SDE Sex",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "24",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Sex\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "23",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Sex\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"ONC Administrative Sex\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "23",
                  "locator": "38:2-38:57",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicSex",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "ONC Administrative Sex",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "37",
                "locator": "40:1-43:59",
                "name": "Antithrombotic Not Given at Discharge",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "37",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Antithrombotic Not Given at Discharge\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "36",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "26",
                                  "s": [
                                    {
                                      "r": "25",
                                      "s": [
                                        {
                                          "r": "25",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Medication, Not Discharged\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Antithrombotic Therapy\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Antithrombotic"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "35",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "35",
                                  "s": [
                                    {
                                      "r": "30",
                                      "s": [
                                        {
                                          "r": "28",
                                          "s": [
                                            {
                                              "r": "27",
                                              "s": [
                                                {
                                                  "value": [
                                                    "Antithrombotic"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "28",
                                              "s": [
                                                {
                                                  "value": [
                                                    "negationRationale"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " in "
                                          ]
                                        },
                                        {
                                          "r": "29",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Medical Reason\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\tor "
                                      ]
                                    },
                                    {
                                      "r": "34",
                                      "s": [
                                        {
                                          "r": "32",
                                          "s": [
                                            {
                                              "r": "31",
                                              "s": [
                                                {
                                                  "value": [
                                                    "Antithrombotic"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "32",
                                              "s": [
                                                {
                                                  "value": [
                                                    "negationRationale"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " in "
                                          ]
                                        },
                                        {
                                          "r": "33",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Patient Refusal\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "36",
                  "locator": "41:2-43:59",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "26",
                      "locator": "41:2-41:72",
                      "alias": "Antithrombotic",
                      "expression": {
                        "localId": "25",
                        "locator": "41:2-41:57",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeMedicationDischarge",
                        "templateId": "NegativeMedicationDischarge",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Antithrombotic Therapy",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "35",
                    "locator": "42:3-43:59",
                    "type": "Or",
                    "operand": [
                      {
                        "localId": "30",
                        "locator": "42:9-42:60",
                        "type": "InValueSet",
                        "code": {
                          "localId": "28",
                          "locator": "42:9-42:40",
                          "path": "negationRationale",
                          "scope": "Antithrombotic",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "29",
                          "locator": "42:45-42:60",
                          "name": "Medical Reason"
                        }
                      },
                      {
                        "localId": "34",
                        "locator": "43:7-43:59",
                        "type": "InValueSet",
                        "code": {
                          "localId": "32",
                          "locator": "43:7-43:38",
                          "path": "negationRationale",
                          "scope": "Antithrombotic",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "33",
                          "locator": "43:43-43:59",
                          "name": "Patient Refusal"
                        }
                      }
                    ]
                  }
                }
              },
              {
                "localId": "41",
                "locator": "45:1-46:67",
                "name": "Antithrombotic Therapy at Discharge",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "41",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Antithrombotic Therapy at Discharge\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "40",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "39",
                                  "s": [
                                    {
                                      "r": "38",
                                      "s": [
                                        {
                                          "r": "38",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Medication, Discharge\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Antithrombotic Therapy\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Antithrombotic"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "40",
                  "locator": "46:2-46:67",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "39",
                      "locator": "46:2-46:67",
                      "alias": "Antithrombotic",
                      "expression": {
                        "localId": "38",
                        "locator": "46:2-46:52",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveMedicationDischarge",
                        "templateId": "PositiveMedicationDischarge",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Antithrombotic Therapy",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ]
                }
              },
              {
                "localId": "47",
                "locator": "76:1-78:51",
                "name": "Intervention Comfort Measures",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "47",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Intervention Comfort Measures\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "46",
                          "s": [
                            {
                              "r": "44",
                              "s": [
                                {
                                  "value": [
                                    "[",
                                    "\"Intervention, Performed\"",
                                    ": "
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "\"Comfort Measures\""
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "]"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\tunion "
                              ]
                            },
                            {
                              "r": "45",
                              "s": [
                                {
                                  "value": [
                                    "[",
                                    "\"Intervention, Order\"",
                                    ": "
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "\"Comfort Measures\""
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "]"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "46",
                  "locator": "77:2-78:51",
                  "type": "Union",
                  "operand": [
                    {
                      "locator": "77:2-77:48",
                      "type": "As",
                      "operand": {
                        "localId": "44",
                        "locator": "77:2-77:48",
                        "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"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "locator": "78:9-78:51",
                      "type": "As",
                      "operand": {
                        "localId": "45",
                        "locator": "78:9-78:51",
                        "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"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              },
              {
                "localId": "62",
                "locator": "49:1-52:145",
                "name": "Comfort Measures during Hospitalization",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "62",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Comfort Measures during Hospitalization\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "61",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "43",
                                  "s": [
                                    {
                                      "r": "42",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "TJC",
                                                ".",
                                                "\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NonElectiveEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "60",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "49",
                                  "s": [
                                    {
                                      "r": "48",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Intervention Comfort Measures\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "ComfortMeasure"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "59",
                                  "s": [
                                    {
                                      "r": "55",
                                      "s": [
                                        {
                                          "value": [
                                            "Coalesce",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "52",
                                          "s": [
                                            {
                                              "value": [
                                                "start of "
                                              ]
                                            },
                                            {
                                              "r": "51",
                                              "s": [
                                                {
                                                  "r": "50",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "ComfortMeasure"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "51",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ", "
                                          ]
                                        },
                                        {
                                          "r": "54",
                                          "s": [
                                            {
                                              "r": "53",
                                              "s": [
                                                {
                                                  "value": [
                                                    "ComfortMeasure"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "54",
                                              "s": [
                                                {
                                                  "value": [
                                                    "authorDatetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ")"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "r": "59",
                                      "value": [
                                        "during",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "58",
                                      "s": [
                                        {
                                          "r": "56",
                                          "s": [
                                            {
                                              "value": [
                                                "global"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "58",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Hospitalization\"",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "57",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NonElectiveEncounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "61",
                  "locator": "50:2-52:145",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "43",
                      "locator": "50:2-50:81",
                      "alias": "NonElectiveEncounter",
                      "expression": {
                        "localId": "42",
                        "locator": "50:2-50:60",
                        "name": "Encounter with Principal Diagnosis of Ischemic Stroke",
                        "libraryName": "TJC",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "60",
                      "locator": "51:3-52:145",
                      "alias": "ComfortMeasure",
                      "type": "With",
                      "expression": {
                        "localId": "48",
                        "locator": "51:8-51:38",
                        "name": "Intervention Comfort Measures",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "59",
                        "locator": "52:14-52:145",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "55",
                            "locator": "52:14-52:92",
                            "type": "Coalesce",
                            "operand": [
                              {
                                "localId": "52",
                                "locator": "52:23-52:60",
                                "type": "Start",
                                "operand": {
                                  "localId": "51",
                                  "locator": "52:32-52:60",
                                  "path": "relevantPeriod",
                                  "scope": "ComfortMeasure",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "54",
                                "locator": "52:63-52:91",
                                "path": "authorDatetime",
                                "scope": "ComfortMeasure",
                                "type": "Property"
                              }
                            ]
                          },
                          {
                            "localId": "58",
                            "locator": "52:100-52:145",
                            "name": "Hospitalization",
                            "libraryName": "global",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "57",
                                "locator": "52:125-52:144",
                                "name": "NonElectiveEncounter",
                                "type": "AliasRef"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "65",
                "locator": "54:1-55:60",
                "name": "Denominator",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "65",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "64",
                          "s": [
                            {
                              "r": "63",
                              "s": [
                                {
                                  "value": [
                                    "TJC"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "."
                              ]
                            },
                            {
                              "r": "64",
                              "s": [
                                {
                                  "value": [
                                    "\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "64",
                  "locator": "55:2-55:60",
                  "name": "Encounter with Principal Diagnosis of Ischemic Stroke",
                  "libraryName": "TJC",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "77",
                "locator": "57:1-60:74",
                "name": "Denominator Exceptions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "77",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator Exceptions\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "76",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "67",
                                  "s": [
                                    {
                                      "r": "66",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "TJC",
                                                ".",
                                                "\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Encounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "75",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "69",
                                  "s": [
                                    {
                                      "r": "68",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Antithrombotic Not Given at Discharge\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Antithrombotic"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "74",
                                  "s": [
                                    {
                                      "r": "71",
                                      "s": [
                                        {
                                          "r": "70",
                                          "s": [
                                            {
                                              "value": [
                                                "Antithrombotic"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "71",
                                          "s": [
                                            {
                                              "value": [
                                                "authorDatetime"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "during",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "73",
                                      "s": [
                                        {
                                          "r": "72",
                                          "s": [
                                            {
                                              "value": [
                                                "Encounter"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "73",
                                          "s": [
                                            {
                                              "value": [
                                                "relevantPeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "76",
                  "locator": "58:2-60:74",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "67",
                      "locator": "58:2-58:70",
                      "alias": "Encounter",
                      "expression": {
                        "localId": "66",
                        "locator": "58:2-58:60",
                        "name": "Encounter with Principal Diagnosis of Ischemic Stroke",
                        "libraryName": "TJC",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "75",
                      "locator": "59:3-60:74",
                      "alias": "Antithrombotic",
                      "type": "With",
                      "expression": {
                        "localId": "68",
                        "locator": "59:8-59:46",
                        "name": "Antithrombotic Not Given at Discharge",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "74",
                        "locator": "60:14-60:74",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "71",
                            "locator": "60:14-60:42",
                            "path": "authorDatetime",
                            "scope": "Antithrombotic",
                            "type": "Property"
                          },
                          {
                            "localId": "73",
                            "locator": "60:51-60:74",
                            "path": "relevantPeriod",
                            "scope": "Encounter",
                            "type": "Property"
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "108",
                "locator": "62:1-71:2",
                "name": "Denominator Exclusions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "108",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator Exclusions\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "107",
                          "s": [
                            {
                              "value": [
                                "distinct",
                                "("
                              ]
                            },
                            {
                              "r": "106",
                              "s": [
                                {
                                  "r": "104",
                                  "s": [
                                    {
                                      "value": [
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "104",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "r": "79",
                                              "s": [
                                                {
                                                  "r": "78",
                                                  "s": [
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "TJC",
                                                            ".",
                                                            "\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "Encounter"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\t\t"
                                          ]
                                        },
                                        {
                                          "r": "103",
                                          "s": [
                                            {
                                              "value": [
                                                "where "
                                              ]
                                            },
                                            {
                                              "r": "103",
                                              "s": [
                                                {
                                                  "r": "98",
                                                  "s": [
                                                    {
                                                      "r": "93",
                                                      "s": [
                                                        {
                                                          "r": "88",
                                                          "s": [
                                                            {
                                                              "r": "83",
                                                              "s": [
                                                                {
                                                                  "r": "81",
                                                                  "s": [
                                                                    {
                                                                      "r": "80",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "Encounter"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "."
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "81",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "dischargeDisposition"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " in "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "82",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Discharge To Acute Care Facility\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\n\t\t\t\t\tor "
                                                              ]
                                                            },
                                                            {
                                                              "r": "87",
                                                              "s": [
                                                                {
                                                                  "r": "85",
                                                                  "s": [
                                                                    {
                                                                      "r": "84",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "Encounter"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "."
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "85",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "dischargeDisposition"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " in "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "86",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Left Against Medical Advice\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n\t\t\t\t\tor "
                                                          ]
                                                        },
                                                        {
                                                          "r": "92",
                                                          "s": [
                                                            {
                                                              "r": "90",
                                                              "s": [
                                                                {
                                                                  "r": "89",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "Encounter"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "90",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "dischargeDisposition"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " in "
                                                              ]
                                                            },
                                                            {
                                                              "r": "91",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Patient Expired\""
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n\t\t\t\t\tor "
                                                      ]
                                                    },
                                                    {
                                                      "r": "97",
                                                      "s": [
                                                        {
                                                          "r": "95",
                                                          "s": [
                                                            {
                                                              "r": "94",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "Encounter"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "95",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "dischargeDisposition"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " in "
                                                          ]
                                                        },
                                                        {
                                                          "r": "96",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Discharged to Home for Hospice Care\""
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\t\t\t\tor "
                                                  ]
                                                },
                                                {
                                                  "r": "102",
                                                  "s": [
                                                    {
                                                      "r": "100",
                                                      "s": [
                                                        {
                                                          "r": "99",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "Encounter"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "100",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "dischargeDisposition"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " in "
                                                      ]
                                                    },
                                                    {
                                                      "r": "101",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Discharged to Health Care Facility for Hospice Care\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t)"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tunion "
                                  ]
                                },
                                {
                                  "r": "105",
                                  "s": [
                                    {
                                      "value": [
                                        "\"Comfort Measures during Hospitalization\""
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t)"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "107",
                  "locator": "63:2-71:2",
                  "type": "Distinct",
                  "operand": {
                    "localId": "106",
                    "locator": "63:11-70:50",
                    "type": "Union",
                    "operand": [
                      {
                        "localId": "104",
                        "locator": "63:11-69:3",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "79",
                            "locator": "63:12-63:80",
                            "alias": "Encounter",
                            "expression": {
                              "localId": "78",
                              "locator": "63:12-63:70",
                              "name": "Encounter with Principal Diagnosis of Ischemic Stroke",
                              "libraryName": "TJC",
                              "type": "ExpressionRef"
                            }
                          }
                        ],
                        "relationship": [

                        ],
                        "where": {
                          "localId": "103",
                          "locator": "64:5-68:95",
                          "type": "Or",
                          "operand": [
                            {
                              "localId": "98",
                              "locator": "64:11-67:79",
                              "type": "Or",
                              "operand": [
                                {
                                  "localId": "93",
                                  "locator": "64:11-66:59",
                                  "type": "Or",
                                  "operand": [
                                    {
                                      "localId": "88",
                                      "locator": "64:11-65:71",
                                      "type": "Or",
                                      "operand": [
                                        {
                                          "localId": "83",
                                          "locator": "64:11-64:78",
                                          "type": "InValueSet",
                                          "code": {
                                            "localId": "81",
                                            "locator": "64:11-64:40",
                                            "path": "dischargeDisposition",
                                            "scope": "Encounter",
                                            "type": "Property"
                                          },
                                          "valueset": {
                                            "localId": "82",
                                            "locator": "64:45-64:78",
                                            "name": "Discharge To Acute Care Facility"
                                          }
                                        },
                                        {
                                          "localId": "87",
                                          "locator": "65:9-65:71",
                                          "type": "InValueSet",
                                          "code": {
                                            "localId": "85",
                                            "locator": "65:9-65:38",
                                            "path": "dischargeDisposition",
                                            "scope": "Encounter",
                                            "type": "Property"
                                          },
                                          "valueset": {
                                            "localId": "86",
                                            "locator": "65:43-65:71",
                                            "name": "Left Against Medical Advice"
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "localId": "92",
                                      "locator": "66:9-66:59",
                                      "type": "InValueSet",
                                      "code": {
                                        "localId": "90",
                                        "locator": "66:9-66:38",
                                        "path": "dischargeDisposition",
                                        "scope": "Encounter",
                                        "type": "Property"
                                      },
                                      "valueset": {
                                        "localId": "91",
                                        "locator": "66:43-66:59",
                                        "name": "Patient Expired"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "localId": "97",
                                  "locator": "67:9-67:79",
                                  "type": "InValueSet",
                                  "code": {
                                    "localId": "95",
                                    "locator": "67:9-67:38",
                                    "path": "dischargeDisposition",
                                    "scope": "Encounter",
                                    "type": "Property"
                                  },
                                  "valueset": {
                                    "localId": "96",
                                    "locator": "67:43-67:79",
                                    "name": "Discharged to Home for Hospice Care"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "102",
                              "locator": "68:9-68:95",
                              "type": "InValueSet",
                              "code": {
                                "localId": "100",
                                "locator": "68:9-68:38",
                                "path": "dischargeDisposition",
                                "scope": "Encounter",
                                "type": "Property"
                              },
                              "valueset": {
                                "localId": "101",
                                "locator": "68:43-68:95",
                                "name": "Discharged to Health Care Facility for Hospice Care"
                              }
                            }
                          ]
                        }
                      },
                      {
                        "localId": "105",
                        "locator": "70:10-70:50",
                        "name": "Comfort Measures during Hospitalization",
                        "type": "ExpressionRef"
                      }
                    ]
                  }
                }
              },
              {
                "localId": "111",
                "locator": "73:1-74:49",
                "name": "Initial Population",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "111",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Initial Population\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "110",
                          "s": [
                            {
                              "r": "109",
                              "s": [
                                {
                                  "value": [
                                    "TJC"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "."
                              ]
                            },
                            {
                              "r": "110",
                              "s": [
                                {
                                  "value": [
                                    "\"Encounter with Principal Diagnosis and Age\""
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "110",
                  "locator": "74:2-74:49",
                  "name": "Encounter with Principal Diagnosis and Age",
                  "libraryName": "TJC",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "123",
                "locator": "80:1-83:74",
                "name": "Numerator",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "123",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Numerator\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "122",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "113",
                                  "s": [
                                    {
                                      "r": "112",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "TJC",
                                                ".",
                                                "\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Encounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "121",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "115",
                                  "s": [
                                    {
                                      "r": "114",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Antithrombotic Therapy at Discharge\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Antithrombotic"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "120",
                                  "s": [
                                    {
                                      "r": "117",
                                      "s": [
                                        {
                                          "r": "116",
                                          "s": [
                                            {
                                              "value": [
                                                "Antithrombotic"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "117",
                                          "s": [
                                            {
                                              "value": [
                                                "authorDatetime"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "during",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "119",
                                      "s": [
                                        {
                                          "r": "118",
                                          "s": [
                                            {
                                              "value": [
                                                "Encounter"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "119",
                                          "s": [
                                            {
                                              "value": [
                                                "relevantPeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "122",
                  "locator": "81:2-83:74",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "113",
                      "locator": "81:2-81:70",
                      "alias": "Encounter",
                      "expression": {
                        "localId": "112",
                        "locator": "81:2-81:60",
                        "name": "Encounter with Principal Diagnosis of Ischemic Stroke",
                        "libraryName": "TJC",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "121",
                      "locator": "82:3-83:74",
                      "alias": "Antithrombotic",
                      "type": "With",
                      "expression": {
                        "localId": "114",
                        "locator": "82:8-82:44",
                        "name": "Antithrombotic Therapy at Discharge",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "120",
                        "locator": "83:14-83:74",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "117",
                            "locator": "83:14-83:42",
                            "path": "authorDatetime",
                            "scope": "Antithrombotic",
                            "type": "Property"
                          },
                          {
                            "localId": "119",
                            "locator": "83:51-83:74",
                            "path": "relevantPeriod",
                            "scope": "Encounter",
                            "type": "Property"
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "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": "17"
                  }
                ],
                "ref_id": "18"
              }
            ],
            "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": "19"
                  }
                ],
                "ref_id": "20"
              }
            ],
            "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": "21"
                  }
                ],
                "ref_id": "22"
              }
            ],
            "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": "23"
                  }
                ],
                "ref_id": "24"
              }
            ],
            "define_name": "SDE Sex"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Antithrombotic Not Given at Discharge\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Medication, Not Discharged\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Antithrombotic Therapy\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "25"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "25"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Antithrombotic"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "26"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "Antithrombotic"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "27"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "negationRationale"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "28"
                                      }
                                    ],
                                    "ref_id": "28"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " in "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Medical Reason\""
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "29"
                                  }
                                ],
                                "node_type": "InValueSet",
                                "ref_id": "30"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      or "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "Antithrombotic"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "31"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "negationRationale"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "32"
                                      }
                                    ],
                                    "ref_id": "32"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " in "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Patient Refusal\""
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "33"
                                  }
                                ],
                                "node_type": "InValueSet",
                                "ref_id": "34"
                              }
                            ],
                            "ref_id": "35"
                          }
                        ],
                        "ref_id": "35"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "36"
                  }
                ],
                "ref_id": "37"
              }
            ],
            "define_name": "Antithrombotic Not Given at Discharge"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Antithrombotic Therapy at Discharge\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Medication, Discharge\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Antithrombotic Therapy\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "38"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "38"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Antithrombotic"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "39"
                          }
                        ]
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "40"
                  }
                ],
                "ref_id": "41"
              }
            ],
            "define_name": "Antithrombotic Therapy at Discharge"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Intervention Comfort Measures\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "[\"Intervention, Performed\": "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Comfort Measures\""
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "]"
                              }
                            ]
                          }
                        ],
                        "node_type": "Retrieve",
                        "ref_id": "44"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "[\"Intervention, Order\": "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Comfort Measures\""
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "]"
                              }
                            ]
                          }
                        ],
                        "node_type": "Retrieve",
                        "ref_id": "45"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "46"
                  }
                ],
                "ref_id": "47"
              }
            ],
            "define_name": "Intervention Comfort Measures"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Comfort Measures during Hospitalization\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "TJC.\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "42"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NonElectiveEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "43"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Intervention Comfort Measures\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "48"
                              },
                              {
                                "children": [
                                  {
                                    "text": " ComfortMeasure"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "49"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Coalesce("
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "start of "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "ComfortMeasure"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "50"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "51"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "51"
                                      }
                                    ],
                                    "node_type": "Start",
                                    "ref_id": "52"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": ", "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "ComfortMeasure"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "53"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "authorDatetime"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "54"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "54"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": ")"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Coalesce",
                                "ref_id": "55"
                              },
                              {
                                "children": [
                                  {
                                    "text": "during "
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "59"
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "global"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "56"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Hospitalization\"("
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NonElectiveEncounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "AliasRef",
                                        "ref_id": "57"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": ")"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "58"
                                  }
                                ],
                                "node_type": "FunctionRef",
                                "ref_id": "58"
                              }
                            ],
                            "node_type": "In",
                            "ref_id": "59"
                          }
                        ],
                        "ref_id": "60"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "61"
                  }
                ],
                "ref_id": "62"
              }
            ],
            "define_name": "Comfort Measures during Hospitalization"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "TJC"
                              }
                            ]
                          }
                        ],
                        "ref_id": "63"
                      },
                      {
                        "children": [
                          {
                            "text": "."
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "64"
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "64"
                  }
                ],
                "ref_id": "65"
              }
            ],
            "define_name": "Denominator"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator Exceptions\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "TJC.\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "66"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Encounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "67"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Antithrombotic Not Given at Discharge\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "68"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Antithrombotic"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "69"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Antithrombotic"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "70"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "authorDatetime"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "71"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "71"
                              },
                              {
                                "children": [
                                  {
                                    "text": " during "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Encounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "72"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "relevantPeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "73"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "73"
                              }
                            ],
                            "node_type": "In",
                            "ref_id": "74"
                          }
                        ],
                        "ref_id": "75"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "76"
                  }
                ],
                "ref_id": "77"
              }
            ],
            "define_name": "Denominator Exceptions"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator Exclusions\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "distinct("
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "TJC.\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "78"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " Encounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "79"
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "where "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "Encounter"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "80"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "."
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "dischargeDisposition"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "81"
                                                              }
                                                            ],
                                                            "ref_id": "81"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " in "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Discharge To Acute Care Facility\""
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "82"
                                                          }
                                                        ],
                                                        "node_type": "InValueSet",
                                                        "ref_id": "83"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\n          or "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "Encounter"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "84"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "."
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "dischargeDisposition"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "85"
                                                              }
                                                            ],
                                                            "ref_id": "85"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " in "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Left Against Medical Advice\""
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "86"
                                                          }
                                                        ],
                                                        "node_type": "InValueSet",
                                                        "ref_id": "87"
                                                      }
                                                    ],
                                                    "node_type": "Or",
                                                    "ref_id": "88"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n          or "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "Encounter"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "89"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "."
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "dischargeDisposition"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "90"
                                                          }
                                                        ],
                                                        "ref_id": "90"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " in "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Patient Expired\""
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "91"
                                                      }
                                                    ],
                                                    "node_type": "InValueSet",
                                                    "ref_id": "92"
                                                  }
                                                ],
                                                "node_type": "Or",
                                                "ref_id": "93"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n          or "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "Encounter"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "94"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "."
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "dischargeDisposition"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "95"
                                                      }
                                                    ],
                                                    "ref_id": "95"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": " in "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Discharged to Home for Hospice Care\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "96"
                                                  }
                                                ],
                                                "node_type": "InValueSet",
                                                "ref_id": "97"
                                              }
                                            ],
                                            "node_type": "Or",
                                            "ref_id": "98"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n          or "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "Encounter"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "99"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "dischargeDisposition"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "100"
                                                  }
                                                ],
                                                "ref_id": "100"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " in "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Discharged to Health Care Facility for Hospice Care\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "101"
                                              }
                                            ],
                                            "node_type": "InValueSet",
                                            "ref_id": "102"
                                          }
                                        ],
                                        "ref_id": "103"
                                      }
                                    ],
                                    "ref_id": "103"
                                  }
                                ],
                                "node_type": "Query",
                                "ref_id": "104"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n    )"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "104"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      union "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Comfort Measures during Hospitalization\""
                                  }
                                ]
                              }
                            ],
                            "node_type": "ExpressionRef",
                            "ref_id": "105"
                          }
                        ],
                        "node_type": "Union",
                        "ref_id": "106"
                      },
                      {
                        "children": [
                          {
                            "text": "\n  )"
                          }
                        ]
                      }
                    ],
                    "node_type": "Distinct",
                    "ref_id": "107"
                  }
                ],
                "ref_id": "108"
              }
            ],
            "define_name": "Denominator Exclusions"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Initial Population\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "TJC"
                              }
                            ]
                          }
                        ],
                        "ref_id": "109"
                      },
                      {
                        "children": [
                          {
                            "text": "."
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Encounter with Principal Diagnosis and Age\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "110"
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "110"
                  }
                ],
                "ref_id": "111"
              }
            ],
            "define_name": "Initial Population"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Numerator\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "TJC.\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "112"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Encounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "113"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Antithrombotic Therapy at Discharge\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "114"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Antithrombotic"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "115"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Antithrombotic"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "116"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "authorDatetime"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "117"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "117"
                              },
                              {
                                "children": [
                                  {
                                    "text": " during "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Encounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "118"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "relevantPeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "119"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "119"
                              }
                            ],
                            "node_type": "In",
                            "ref_id": "120"
                          }
                        ],
                        "ref_id": "121"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "122"
                  }
                ],
                "ref_id": "123"
              }
            ],
            "define_name": "Numerator"
          }
        ],
        "identifier": {
          "id": "Test104",
          "version": "2.0.004"
        }
      },
      "is_main_library": true,
      "is_top_level": true,
      "library_name": "Test104",
      "library_version": "2.0.004",
      "statement_dependencies": [
        {
          "statement_name": "Patient"
        },
        {
          "statement_name": "SDE Ethnicity"
        },
        {
          "statement_name": "SDE Payer"
        },
        {
          "statement_name": "SDE Race"
        },
        {
          "statement_name": "SDE Sex"
        },
        {
          "statement_name": "Antithrombotic Not Given at Discharge"
        },
        {
          "statement_name": "Antithrombotic Therapy at Discharge"
        },
        {
          "statement_name": "Intervention Comfort Measures"
        },
        {
          "statement_name": "Comfort Measures during Hospitalization",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "TJC_Overall",
              "statement_name": "Encounter with Principal Diagnosis of Ischemic Stroke"
            },
            {
              "hqmf_id": null,
              "library_name": "Test104",
              "statement_name": "Intervention Comfort Measures"
            },
            {
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctions",
              "statement_name": "Hospitalization"
            }
          ]
        },
        {
          "statement_name": "Denominator",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "TJC_Overall",
              "statement_name": "Encounter with Principal Diagnosis of Ischemic Stroke"
            }
          ]
        },
        {
          "statement_name": "Denominator Exceptions",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "TJC_Overall",
              "statement_name": "Encounter with Principal Diagnosis of Ischemic Stroke"
            },
            {
              "hqmf_id": null,
              "library_name": "Test104",
              "statement_name": "Antithrombotic Not Given at Discharge"
            }
          ]
        },
        {
          "statement_name": "Denominator Exclusions",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "TJC_Overall",
              "statement_name": "Encounter with Principal Diagnosis of Ischemic Stroke"
            },
            {
              "hqmf_id": null,
              "library_name": "Test104",
              "statement_name": "Comfort Measures during Hospitalization"
            }
          ]
        },
        {
          "statement_name": "Initial Population",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "TJC_Overall",
              "statement_name": "Encounter with Principal Diagnosis and Age"
            }
          ]
        },
        {
          "statement_name": "Numerator",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "TJC_Overall",
              "statement_name": "Encounter with Principal Diagnosis of Ischemic Stroke"
            },
            {
              "hqmf_id": null,
              "library_name": "Test104",
              "statement_name": "Antithrombotic Therapy at Discharge"
            }
          ]
        }
      ]
    },
    {
      "cql": "library TJC_Overall version '7.0.000'\r\n\r\nusing QDM version '5.3'\r\n\r\ninclude MATGlobalCommonFunctions version '2.0.000' called global\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 \"Encounter Inpatient\": 'urn:oid:2.16.840.1.113883.3.666.5.307'\r\nvalueset \"Non-Elective Inpatient Encounter\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.424'\r\nvalueset \"Ischemic Stroke\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.247'\r\nvalueset \"Hemorrhagic Stroke\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.212'\r\nvalueset \"Comfort Measures\": 'urn:oid:1.3.6.1.4.1.33895.1.3.0.45'\r\nvalueset \"Emergency Department Visit\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.292'\r\nvalueset \"Left Against Medical Advice\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.308'\r\nvalueset \"Discharged to Health Care Facility for Hospice Care\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.207'\r\nvalueset \"Patient Expired\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.309'\r\nvalueset \"Discharge To Acute Care Facility\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.87'\r\nvalueset \"Discharged to Home for Hospice Care\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.209'\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 with Principal Diagnosis and Age\":\r\n\t\"Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke\" NonElectiveEncounter\r\n\t\twith [\"Patient Characteristic Birthdate\"] P\r\n\t\t\tsuch that global.\"CalendarAgeInYearsAt\"(P.birthDatetime, start of NonElectiveEncounter.relevantPeriod)>= 18\r\n\r\ndefine \"Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke\":\r\n\t\"Non Elective Inpatient Encounter\" NonElectiveEncounter\r\n\t\twhere NonElectiveEncounter.principalDiagnosis in \"Hemorrhagic Stroke\"\r\n\t\t\tor NonElectiveEncounter.principalDiagnosis in \"Ischemic Stroke\"\r\n\r\ndefine \"Encounter with Principal Diagnosis of Ischemic Stroke\":\r\n\t\"Encounter with Principal Diagnosis and Age\" NonElectiveEncounter\r\n\t\twhere NonElectiveEncounter.principalDiagnosis in \"Ischemic Stroke\"\r\n\r\ndefine \"Inpatient Encounter\":\r\n\t[\"Encounter, Performed\": \"Encounter Inpatient\"] Encounter\r\n\t\twhere Encounter.lengthOfStay <= 120 days\r\n\t\t\tand Encounter.relevantPeriod ends during \"Measurement Period\"\r\n\r\ndefine \"Ischemic Stroke Encounters with Discharge Status and Comfort Measure Exclusions\":\r\n\tdistinct((\"Encounter with Principal Diagnosis of Ischemic Stroke\" Encounter\r\n\t\t\t\twhere Encounter.dischargeDisposition in \"Discharge To Acute Care Facility\"\r\n\t\t\t\t\tor Encounter.dischargeDisposition in \"Left Against Medical Advice\"\r\n\t\t\t\t\tor Encounter.dischargeDisposition in \"Patient Expired\"\r\n\t\t\t\t\tor Encounter.dischargeDisposition in \"Discharged to Home for Hospice Care\"\r\n\t\t\t\t\tor Encounter.dischargeDisposition in \"Discharged to Health Care Facility for Hospice Care\"\r\n\t\t)\r\n\t)\r\n\r\ndefine \"Non Elective Inpatient Encounter\":\r\n\t[\"Encounter, Performed\": \"Non-Elective Inpatient Encounter\"] NonElectiveEncounter\r\n\t\twhere NonElectiveEncounter.lengthOfStay <= 120 days\r\n\t\t\tand NonElectiveEncounter.relevantPeriod ends during \"Measurement Period\"\r\n",
      "elm": {
        "library": {
          "identifier": {
            "id": "TJC_Overall",
            "version": "7.0.000"
          },
          "schemaIdentifier": {
            "id": "urn:hl7-org:elm",
            "version": "r1"
          },
          "usings": {
            "def": [
              {
                "localIdentifier": "System",
                "uri": "urn:hl7-org:elm-types:r1"
              },
              {
                "localId": "1",
                "locator": "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"
              }
            ]
          },
          "parameters": {
            "def": [
              {
                "localId": "22",
                "locator": "25:1-25:49",
                "name": "Measurement Period",
                "accessLevel": "Public",
                "parameterTypeSpecifier": {
                  "localId": "21",
                  "locator": "25:32-25:49",
                  "type": "IntervalTypeSpecifier",
                  "pointType": {
                    "localId": "20",
                    "locator": "25:41-25:48",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              }
            ]
          },
          "codeSystems": {
            "def": [
              {
                "localId": "3",
                "locator": "7:1-7:87",
                "name": "LOINC:2.46",
                "id": "2.16.840.1.113883.6.1",
                "version": "urn:hl7:version:2.46",
                "accessLevel": "Public"
              },
              {
                "localId": "4",
                "locator": "8:1-8:97",
                "name": "SNOMEDCT:2016-03",
                "id": "2.16.840.1.113883.6.96",
                "version": "urn:hl7:version:2016-03",
                "accessLevel": "Public"
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "5",
                "locator": "10:1-10:71",
                "name": "Encounter Inpatient",
                "id": "2.16.840.1.113883.3.666.5.307",
                "accessLevel": "Public"
              },
              {
                "localId": "6",
                "locator": "11:1-11:88",
                "name": "Non-Elective Inpatient Encounter",
                "id": "2.16.840.1.113883.3.117.1.7.1.424",
                "accessLevel": "Public"
              },
              {
                "localId": "7",
                "locator": "12:1-12:71",
                "name": "Ischemic Stroke",
                "id": "2.16.840.1.113883.3.117.1.7.1.247",
                "accessLevel": "Public"
              },
              {
                "localId": "8",
                "locator": "13:1-13:74",
                "name": "Hemorrhagic Stroke",
                "id": "2.16.840.1.113883.3.117.1.7.1.212",
                "accessLevel": "Public"
              },
              {
                "localId": "9",
                "locator": "14:1-14:65",
                "name": "Comfort Measures",
                "id": "1.3.6.1.4.1.33895.1.3.0.45",
                "accessLevel": "Public"
              },
              {
                "localId": "10",
                "locator": "15:1-15:82",
                "name": "Emergency Department Visit",
                "id": "2.16.840.1.113883.3.117.1.7.1.292",
                "accessLevel": "Public"
              },
              {
                "localId": "11",
                "locator": "16:1-16:83",
                "name": "Left Against Medical Advice",
                "id": "2.16.840.1.113883.3.117.1.7.1.308",
                "accessLevel": "Public"
              },
              {
                "localId": "12",
                "locator": "17:1-17:107",
                "name": "Discharged to Health Care Facility for Hospice Care",
                "id": "2.16.840.1.113883.3.117.1.7.1.207",
                "accessLevel": "Public"
              },
              {
                "localId": "13",
                "locator": "18:1-18:71",
                "name": "Patient Expired",
                "id": "2.16.840.1.113883.3.117.1.7.1.309",
                "accessLevel": "Public"
              },
              {
                "localId": "14",
                "locator": "19:1-19:87",
                "name": "Discharge To Acute Care Facility",
                "id": "2.16.840.1.113883.3.117.1.7.1.87",
                "accessLevel": "Public"
              },
              {
                "localId": "15",
                "locator": "20:1-20:91",
                "name": "Discharged to Home for Hospice Care",
                "id": "2.16.840.1.113883.3.117.1.7.1.209",
                "accessLevel": "Public"
              }
            ]
          },
          "codes": {
            "def": [
              {
                "localId": "17",
                "locator": "22:1-22:66",
                "name": "Birthdate",
                "id": "21112-8",
                "display": "Birth date",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "16",
                  "locator": "22:34-22:45",
                  "name": "LOINC:2.46"
                }
              },
              {
                "localId": "19",
                "locator": "23:1-23:63",
                "name": "Dead",
                "id": "419099009",
                "display": "Dead",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "18",
                  "locator": "23:31-23:48",
                  "name": "SNOMEDCT:2016-03"
                }
              }
            ]
          },
          "statements": {
            "def": [
              {
                "locator": "27:1-27:15",
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "locator": "27:1-27:15",
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "35",
                "locator": "58:1-61:75",
                "name": "Non Elective Inpatient Encounter",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "35",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Non Elective Inpatient Encounter\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "34",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "24",
                                  "s": [
                                    {
                                      "r": "23",
                                      "s": [
                                        {
                                          "r": "23",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Non-Elective Inpatient Encounter\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NonElectiveEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "33",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "33",
                                  "s": [
                                    {
                                      "r": "28",
                                      "s": [
                                        {
                                          "r": "26",
                                          "s": [
                                            {
                                              "r": "25",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NonElectiveEncounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "26",
                                              "s": [
                                                {
                                                  "value": [
                                                    "lengthOfStay"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "27",
                                          "s": [
                                            {
                                              "value": [
                                                "120 ",
                                                "days"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "32",
                                      "s": [
                                        {
                                          "r": "30",
                                          "s": [
                                            {
                                              "r": "29",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NonElectiveEncounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "30",
                                              "s": [
                                                {
                                                  "value": [
                                                    "relevantPeriod"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "ends during",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "31",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "34",
                  "locator": "59:2-61:75",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "24",
                      "locator": "59:2-59:82",
                      "alias": "NonElectiveEncounter",
                      "expression": {
                        "localId": "23",
                        "locator": "59:2-59:61",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Non-Elective Inpatient Encounter",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "33",
                    "locator": "60:3-61:75",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "28",
                        "locator": "60:9-60:53",
                        "type": "LessOrEqual",
                        "operand": [
                          {
                            "localId": "26",
                            "locator": "60:9-60:41",
                            "path": "lengthOfStay",
                            "scope": "NonElectiveEncounter",
                            "type": "Property"
                          },
                          {
                            "localId": "27",
                            "locator": "60:46-60:53",
                            "value": 120,
                            "unit": "days",
                            "type": "Quantity"
                          }
                        ]
                      },
                      {
                        "localId": "32",
                        "locator": "61:8-61:75",
                        "type": "In",
                        "operand": [
                          {
                            "locator": "61:44-61:47",
                            "type": "End",
                            "operand": {
                              "localId": "30",
                              "locator": "61:8-61:42",
                              "path": "relevantPeriod",
                              "scope": "NonElectiveEncounter",
                              "type": "Property"
                            }
                          },
                          {
                            "localId": "31",
                            "locator": "61:56-61:75",
                            "name": "Measurement Period",
                            "type": "ParameterRef"
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              {
                "localId": "48",
                "locator": "34:1-37:66",
                "name": "Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "48",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "47",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "37",
                                  "s": [
                                    {
                                      "r": "36",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Non Elective Inpatient Encounter\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NonElectiveEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "46",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "46",
                                  "s": [
                                    {
                                      "r": "41",
                                      "s": [
                                        {
                                          "r": "39",
                                          "s": [
                                            {
                                              "r": "38",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NonElectiveEncounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "39",
                                              "s": [
                                                {
                                                  "value": [
                                                    "principalDiagnosis"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " in "
                                          ]
                                        },
                                        {
                                          "r": "40",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Hemorrhagic Stroke\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\tor "
                                      ]
                                    },
                                    {
                                      "r": "45",
                                      "s": [
                                        {
                                          "r": "43",
                                          "s": [
                                            {
                                              "r": "42",
                                              "s": [
                                                {
                                                  "value": [
                                                    "NonElectiveEncounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "43",
                                              "s": [
                                                {
                                                  "value": [
                                                    "principalDiagnosis"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " in "
                                          ]
                                        },
                                        {
                                          "r": "44",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Ischemic Stroke\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "47",
                  "locator": "35:2-37:66",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "37",
                      "locator": "35:2-35:56",
                      "alias": "NonElectiveEncounter",
                      "expression": {
                        "localId": "36",
                        "locator": "35:2-35:35",
                        "name": "Non Elective Inpatient Encounter",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "46",
                    "locator": "36:3-37:66",
                    "type": "Or",
                    "operand": [
                      {
                        "localId": "41",
                        "locator": "36:9-36:71",
                        "type": "InValueSet",
                        "code": {
                          "localId": "39",
                          "locator": "36:9-36:47",
                          "path": "principalDiagnosis",
                          "scope": "NonElectiveEncounter",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "40",
                          "locator": "36:52-36:71",
                          "name": "Hemorrhagic Stroke"
                        }
                      },
                      {
                        "localId": "45",
                        "locator": "37:7-37:66",
                        "type": "InValueSet",
                        "code": {
                          "localId": "43",
                          "locator": "37:7-37:45",
                          "path": "principalDiagnosis",
                          "scope": "NonElectiveEncounter",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "44",
                          "locator": "37:50-37:66",
                          "name": "Ischemic Stroke"
                        }
                      }
                    ]
                  }
                }
              },
              {
                "localId": "64",
                "locator": "29:1-32:110",
                "name": "Encounter with Principal Diagnosis and Age",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "64",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Encounter with Principal Diagnosis and Age\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "63",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "50",
                                  "s": [
                                    {
                                      "r": "49",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NonElectiveEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "62",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "52",
                                  "s": [
                                    {
                                      "r": "51",
                                      "s": [
                                        {
                                          "r": "51",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Patient Characteristic Birthdate\"",
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "P"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "61",
                                  "s": [
                                    {
                                      "r": "59",
                                      "s": [
                                        {
                                          "r": "53",
                                          "s": [
                                            {
                                              "value": [
                                                "global"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "59",
                                          "s": [
                                            {
                                              "value": [
                                                "\"CalendarAgeInYearsAt\"",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "55",
                                              "s": [
                                                {
                                                  "r": "54",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "P"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "55",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "birthDatetime"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ", "
                                              ]
                                            },
                                            {
                                              "r": "58",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "57",
                                                  "s": [
                                                    {
                                                      "r": "56",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "NonElectiveEncounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "57",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ">=",
                                        " ",
                                        "18"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "63",
                  "locator": "30:2-32:110",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "50",
                      "locator": "30:2-30:92",
                      "alias": "NonElectiveEncounter",
                      "expression": {
                        "localId": "49",
                        "locator": "30:2-30:71",
                        "name": "Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "62",
                      "locator": "31:3-32:110",
                      "alias": "P",
                      "type": "With",
                      "expression": {
                        "localId": "51",
                        "locator": "31:8-31:43",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                        "type": "Retrieve"
                      },
                      "suchThat": {
                        "localId": "61",
                        "locator": "32:14-32:110",
                        "type": "GreaterOrEqual",
                        "operand": [
                          {
                            "localId": "59",
                            "locator": "32:14-32:105",
                            "name": "CalendarAgeInYearsAt",
                            "libraryName": "global",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "55",
                                "locator": "32:44-32:58",
                                "path": "birthDatetime",
                                "scope": "P",
                                "type": "Property"
                              },
                              {
                                "localId": "58",
                                "locator": "32:61-32:104",
                                "type": "Start",
                                "operand": {
                                  "localId": "57",
                                  "locator": "32:70-32:104",
                                  "path": "relevantPeriod",
                                  "scope": "NonElectiveEncounter",
                                  "type": "Property"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "60",
                            "locator": "32:109-32:110",
                            "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                            "value": "18",
                            "type": "Literal"
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "72",
                "locator": "39:1-41:68",
                "name": "Encounter with Principal Diagnosis of Ischemic Stroke",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "72",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Encounter with Principal Diagnosis of Ischemic Stroke\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "71",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "66",
                                  "s": [
                                    {
                                      "r": "65",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter with Principal Diagnosis and Age\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NonElectiveEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "70",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "70",
                                  "s": [
                                    {
                                      "r": "68",
                                      "s": [
                                        {
                                          "r": "67",
                                          "s": [
                                            {
                                              "value": [
                                                "NonElectiveEncounter"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "68",
                                          "s": [
                                            {
                                              "value": [
                                                "principalDiagnosis"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " in "
                                      ]
                                    },
                                    {
                                      "r": "69",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Ischemic Stroke\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "71",
                  "locator": "40:2-41:68",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "66",
                      "locator": "40:2-40:66",
                      "alias": "NonElectiveEncounter",
                      "expression": {
                        "localId": "65",
                        "locator": "40:2-40:45",
                        "name": "Encounter with Principal Diagnosis and Age",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "70",
                    "locator": "41:3-41:68",
                    "type": "InValueSet",
                    "code": {
                      "localId": "68",
                      "locator": "41:9-41:47",
                      "path": "principalDiagnosis",
                      "scope": "NonElectiveEncounter",
                      "type": "Property"
                    },
                    "valueset": {
                      "localId": "69",
                      "locator": "41:52-41:68",
                      "name": "Ischemic Stroke"
                    }
                  }
                }
              },
              {
                "localId": "85",
                "locator": "43:1-46:64",
                "name": "Inpatient Encounter",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "85",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Inpatient Encounter\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "84",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "74",
                                  "s": [
                                    {
                                      "r": "73",
                                      "s": [
                                        {
                                          "r": "73",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Encounter Inpatient\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Encounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "83",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "83",
                                  "s": [
                                    {
                                      "r": "78",
                                      "s": [
                                        {
                                          "r": "76",
                                          "s": [
                                            {
                                              "r": "75",
                                              "s": [
                                                {
                                                  "value": [
                                                    "Encounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "76",
                                              "s": [
                                                {
                                                  "value": [
                                                    "lengthOfStay"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "77",
                                          "s": [
                                            {
                                              "value": [
                                                "120 ",
                                                "days"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "82",
                                      "s": [
                                        {
                                          "r": "80",
                                          "s": [
                                            {
                                              "r": "79",
                                              "s": [
                                                {
                                                  "value": [
                                                    "Encounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "80",
                                              "s": [
                                                {
                                                  "value": [
                                                    "relevantPeriod"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "ends during",
                                            " "
                                          ]
                                        },
                                        {
                                          "r": "81",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "84",
                  "locator": "44:2-46:64",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "74",
                      "locator": "44:2-44:58",
                      "alias": "Encounter",
                      "expression": {
                        "localId": "73",
                        "locator": "44:2-44:48",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Encounter Inpatient",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "83",
                    "locator": "45:3-46:64",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "78",
                        "locator": "45:9-45:42",
                        "type": "LessOrEqual",
                        "operand": [
                          {
                            "localId": "76",
                            "locator": "45:9-45:30",
                            "path": "lengthOfStay",
                            "scope": "Encounter",
                            "type": "Property"
                          },
                          {
                            "localId": "77",
                            "locator": "45:35-45:42",
                            "value": 120,
                            "unit": "days",
                            "type": "Quantity"
                          }
                        ]
                      },
                      {
                        "localId": "82",
                        "locator": "46:8-46:64",
                        "type": "In",
                        "operand": [
                          {
                            "locator": "46:33-46:36",
                            "type": "End",
                            "operand": {
                              "localId": "80",
                              "locator": "46:8-46:31",
                              "path": "relevantPeriod",
                              "scope": "Encounter",
                              "type": "Property"
                            }
                          },
                          {
                            "localId": "81",
                            "locator": "46:45-46:64",
                            "name": "Measurement Period",
                            "type": "ParameterRef"
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              {
                "localId": "114",
                "locator": "48:1-56:2",
                "name": "Ischemic Stroke Encounters with Discharge Status and Comfort Measure Exclusions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "114",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Ischemic Stroke Encounters with Discharge Status and Comfort Measure Exclusions\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "113",
                          "s": [
                            {
                              "value": [
                                "distinct",
                                "("
                              ]
                            },
                            {
                              "r": "112",
                              "s": [
                                {
                                  "value": [
                                    "("
                                  ]
                                },
                                {
                                  "r": "112",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "87",
                                          "s": [
                                            {
                                              "r": "86",
                                              "s": [
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "Encounter"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\t\t"
                                      ]
                                    },
                                    {
                                      "r": "111",
                                      "s": [
                                        {
                                          "value": [
                                            "where "
                                          ]
                                        },
                                        {
                                          "r": "111",
                                          "s": [
                                            {
                                              "r": "106",
                                              "s": [
                                                {
                                                  "r": "101",
                                                  "s": [
                                                    {
                                                      "r": "96",
                                                      "s": [
                                                        {
                                                          "r": "91",
                                                          "s": [
                                                            {
                                                              "r": "89",
                                                              "s": [
                                                                {
                                                                  "r": "88",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "Encounter"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "89",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "dischargeDisposition"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " in "
                                                              ]
                                                            },
                                                            {
                                                              "r": "90",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Discharge To Acute Care Facility\""
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n\t\t\t\t\tor "
                                                          ]
                                                        },
                                                        {
                                                          "r": "95",
                                                          "s": [
                                                            {
                                                              "r": "93",
                                                              "s": [
                                                                {
                                                                  "r": "92",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "Encounter"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "93",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "dischargeDisposition"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " in "
                                                              ]
                                                            },
                                                            {
                                                              "r": "94",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Left Against Medical Advice\""
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n\t\t\t\t\tor "
                                                      ]
                                                    },
                                                    {
                                                      "r": "100",
                                                      "s": [
                                                        {
                                                          "r": "98",
                                                          "s": [
                                                            {
                                                              "r": "97",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "Encounter"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "98",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "dischargeDisposition"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " in "
                                                          ]
                                                        },
                                                        {
                                                          "r": "99",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Patient Expired\""
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\t\t\t\tor "
                                                  ]
                                                },
                                                {
                                                  "r": "105",
                                                  "s": [
                                                    {
                                                      "r": "103",
                                                      "s": [
                                                        {
                                                          "r": "102",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "Encounter"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "103",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "dischargeDisposition"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " in "
                                                      ]
                                                    },
                                                    {
                                                      "r": "104",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Discharged to Home for Hospice Care\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\t\t\t\tor "
                                              ]
                                            },
                                            {
                                              "r": "110",
                                              "s": [
                                                {
                                                  "r": "108",
                                                  "s": [
                                                    {
                                                      "r": "107",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Encounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "108",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "dischargeDisposition"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " in "
                                                  ]
                                                },
                                                {
                                                  "r": "109",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Discharged to Health Care Facility for Hospice Care\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t)"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t)"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "113",
                  "locator": "49:2-56:2",
                  "type": "Distinct",
                  "operand": {
                    "localId": "112",
                    "locator": "49:11-55:3",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "87",
                        "locator": "49:12-49:76",
                        "alias": "Encounter",
                        "expression": {
                          "localId": "86",
                          "locator": "49:12-49:66",
                          "name": "Encounter with Principal Diagnosis of Ischemic Stroke",
                          "type": "ExpressionRef"
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "111",
                      "locator": "50:5-54:95",
                      "type": "Or",
                      "operand": [
                        {
                          "localId": "106",
                          "locator": "50:11-53:79",
                          "type": "Or",
                          "operand": [
                            {
                              "localId": "101",
                              "locator": "50:11-52:59",
                              "type": "Or",
                              "operand": [
                                {
                                  "localId": "96",
                                  "locator": "50:11-51:71",
                                  "type": "Or",
                                  "operand": [
                                    {
                                      "localId": "91",
                                      "locator": "50:11-50:78",
                                      "type": "InValueSet",
                                      "code": {
                                        "localId": "89",
                                        "locator": "50:11-50:40",
                                        "path": "dischargeDisposition",
                                        "scope": "Encounter",
                                        "type": "Property"
                                      },
                                      "valueset": {
                                        "localId": "90",
                                        "locator": "50:45-50:78",
                                        "name": "Discharge To Acute Care Facility"
                                      }
                                    },
                                    {
                                      "localId": "95",
                                      "locator": "51:9-51:71",
                                      "type": "InValueSet",
                                      "code": {
                                        "localId": "93",
                                        "locator": "51:9-51:38",
                                        "path": "dischargeDisposition",
                                        "scope": "Encounter",
                                        "type": "Property"
                                      },
                                      "valueset": {
                                        "localId": "94",
                                        "locator": "51:43-51:71",
                                        "name": "Left Against Medical Advice"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "localId": "100",
                                  "locator": "52:9-52:59",
                                  "type": "InValueSet",
                                  "code": {
                                    "localId": "98",
                                    "locator": "52:9-52:38",
                                    "path": "dischargeDisposition",
                                    "scope": "Encounter",
                                    "type": "Property"
                                  },
                                  "valueset": {
                                    "localId": "99",
                                    "locator": "52:43-52:59",
                                    "name": "Patient Expired"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "105",
                              "locator": "53:9-53:79",
                              "type": "InValueSet",
                              "code": {
                                "localId": "103",
                                "locator": "53:9-53:38",
                                "path": "dischargeDisposition",
                                "scope": "Encounter",
                                "type": "Property"
                              },
                              "valueset": {
                                "localId": "104",
                                "locator": "53:43-53:79",
                                "name": "Discharged to Home for Hospice Care"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "110",
                          "locator": "54:9-54:95",
                          "type": "InValueSet",
                          "code": {
                            "localId": "108",
                            "locator": "54:9-54:38",
                            "path": "dischargeDisposition",
                            "scope": "Encounter",
                            "type": "Property"
                          },
                          "valueset": {
                            "localId": "109",
                            "locator": "54:43-54:95",
                            "name": "Discharged to Health Care Facility for Hospice Care"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "statements": [
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Non Elective Inpatient Encounter\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Non-Elective Inpatient Encounter\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "23"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "23"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NonElectiveEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "24"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NonElectiveEncounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "25"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "lengthOfStay"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "26"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "26"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "120 days"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Quantity",
                                    "ref_id": "27"
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "28"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NonElectiveEncounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "29"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "relevantPeriod"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "30"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "30"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " ends during "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "31"
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "32"
                              }
                            ],
                            "ref_id": "33"
                          }
                        ],
                        "ref_id": "33"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "34"
                  }
                ],
                "ref_id": "35"
              }
            ],
            "define_name": "Non Elective Inpatient Encounter"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Non Elective Inpatient Encounter\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "36"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NonElectiveEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "37"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NonElectiveEncounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "38"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "principalDiagnosis"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "39"
                                      }
                                    ],
                                    "ref_id": "39"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " in "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Hemorrhagic Stroke\""
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "40"
                                  }
                                ],
                                "node_type": "InValueSet",
                                "ref_id": "41"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      or "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "NonElectiveEncounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "42"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "principalDiagnosis"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "43"
                                      }
                                    ],
                                    "ref_id": "43"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " in "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Ischemic Stroke\""
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "44"
                                  }
                                ],
                                "node_type": "InValueSet",
                                "ref_id": "45"
                              }
                            ],
                            "ref_id": "46"
                          }
                        ],
                        "ref_id": "46"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "47"
                  }
                ],
                "ref_id": "48"
              }
            ],
            "define_name": "Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter with Principal Diagnosis and Age\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "49"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NonElectiveEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "50"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Patient Characteristic Birthdate\"]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "51"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "51"
                              },
                              {
                                "children": [
                                  {
                                    "text": " P"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "52"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "global"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "53"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"CalendarAgeInYearsAt\"("
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "P"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "54"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "birthDatetime"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "55"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "55"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": ", "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "NonElectiveEncounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "56"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "57"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "57"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "58"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": ")"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "59"
                                  }
                                ],
                                "node_type": "FunctionRef",
                                "ref_id": "59"
                              },
                              {
                                "children": [
                                  {
                                    "text": "&gt;= 18"
                                  }
                                ]
                              }
                            ],
                            "node_type": "GreaterOrEqual",
                            "ref_id": "61"
                          }
                        ],
                        "ref_id": "62"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "63"
                  }
                ],
                "ref_id": "64"
              }
            ],
            "define_name": "Encounter with Principal Diagnosis and Age"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter with Principal Diagnosis of Ischemic Stroke\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter with Principal Diagnosis and Age\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "65"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NonElectiveEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "66"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "NonElectiveEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "67"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "principalDiagnosis"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "68"
                                  }
                                ],
                                "ref_id": "68"
                              },
                              {
                                "children": [
                                  {
                                    "text": " in "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Ischemic Stroke\""
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "69"
                              }
                            ],
                            "ref_id": "70"
                          }
                        ],
                        "ref_id": "70"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "71"
                  }
                ],
                "ref_id": "72"
              }
            ],
            "define_name": "Encounter with Principal Diagnosis of Ischemic Stroke"
          },
          {
            "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": "73"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "73"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Encounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "74"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "Encounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "75"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "lengthOfStay"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "76"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "76"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "120 days"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Quantity",
                                    "ref_id": "77"
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "78"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "Encounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "79"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "relevantPeriod"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "80"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "80"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " ends during "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "81"
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "82"
                              }
                            ],
                            "ref_id": "83"
                          }
                        ],
                        "ref_id": "83"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "84"
                  }
                ],
                "ref_id": "85"
              }
            ],
            "define_name": "Inpatient Encounter"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Ischemic Stroke Encounters with Discharge Status and Comfort Measure Exclusions\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "distinct("
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Encounter with Principal Diagnosis of Ischemic Stroke\""
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "86"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " Encounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "87"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "where "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "Encounter"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "88"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "."
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "dischargeDisposition"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "89"
                                                          }
                                                        ],
                                                        "ref_id": "89"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " in "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Discharge To Acute Care Facility\""
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "90"
                                                      }
                                                    ],
                                                    "node_type": "InValueSet",
                                                    "ref_id": "91"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n          or "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "Encounter"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "92"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "."
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "dischargeDisposition"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "93"
                                                          }
                                                        ],
                                                        "ref_id": "93"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " in "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Left Against Medical Advice\""
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "94"
                                                      }
                                                    ],
                                                    "node_type": "InValueSet",
                                                    "ref_id": "95"
                                                  }
                                                ],
                                                "node_type": "Or",
                                                "ref_id": "96"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n          or "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "Encounter"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "97"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "."
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "dischargeDisposition"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "98"
                                                      }
                                                    ],
                                                    "ref_id": "98"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": " in "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Patient Expired\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "99"
                                                  }
                                                ],
                                                "node_type": "InValueSet",
                                                "ref_id": "100"
                                              }
                                            ],
                                            "node_type": "Or",
                                            "ref_id": "101"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n          or "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "Encounter"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "102"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "dischargeDisposition"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "103"
                                                  }
                                                ],
                                                "ref_id": "103"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " in "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Discharged to Home for Hospice Care\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "104"
                                              }
                                            ],
                                            "node_type": "InValueSet",
                                            "ref_id": "105"
                                          }
                                        ],
                                        "node_type": "Or",
                                        "ref_id": "106"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n          or "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "Encounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "107"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "dischargeDisposition"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "108"
                                              }
                                            ],
                                            "ref_id": "108"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " in "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Discharged to Health Care Facility for Hospice Care\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "109"
                                          }
                                        ],
                                        "node_type": "InValueSet",
                                        "ref_id": "110"
                                      }
                                    ],
                                    "ref_id": "111"
                                  }
                                ],
                                "ref_id": "111"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "112"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "112"
                      },
                      {
                        "children": [
                          {
                            "text": "\n  )"
                          }
                        ]
                      }
                    ],
                    "node_type": "Distinct",
                    "ref_id": "113"
                  }
                ],
                "ref_id": "114"
              }
            ],
            "define_name": "Ischemic Stroke Encounters with Discharge Status and Comfort Measure Exclusions"
          }
        ],
        "identifier": {
          "id": "TJC_Overall",
          "version": "7.0.000"
        }
      },
      "is_main_library": false,
      "is_top_level": true,
      "library_name": "TJC_Overall",
      "library_version": "7.0.000",
      "statement_dependencies": [
        {
          "statement_name": "Encounter with Principal Diagnosis of Ischemic Stroke",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "TJC_Overall",
              "statement_name": "Encounter with Principal Diagnosis and Age"
            }
          ]
        },
        {
          "statement_name": "Encounter with Principal Diagnosis and Age",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "TJC_Overall",
              "statement_name": "Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke"
            },
            {
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctions",
              "statement_name": "CalendarAgeInYearsAt"
            }
          ]
        },
        {
          "statement_name": "Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "TJC_Overall",
              "statement_name": "Non Elective Inpatient Encounter"
            }
          ]
        },
        {
          "statement_name": "Non Elective Inpatient Encounter"
        }
      ]
    },
    {
      "cql": "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\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\n\n/*CalendarAgeInYearsAt calculates the calendar age (meaning the age without\nconsidering 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/*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/*CalendarAgeInDaysAt calculates the calendar age (meaning the age without\nconsidering 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/*CalendarAgeInYears calculates the calendar age (meaning the age without\nconsidering time components) in years as of today.*/\r\n\r\ndefine function \"CalendarAgeInYears\"(BirthDateTime DateTime):\r\n\tCalendarAgeInYearsAt(BirthDateTime, Today())\n\n/*CalendarAgeInMonths calculates the calendar age (meaning the age without\nconsidering time components) in months as of today.*/\r\n\r\ndefine function \"CalendarAgeInMonths\"(BirthDateTime DateTime):\r\n\tCalendarAgeInMonthsAt(BirthDateTime, Today())\n\n/*CalendarAgeInDays calculates the calendar age (meaning the age without\nconsidering time components) in days as of today.*/\r\n\r\ndefine function \"CalendarAgeInDays\"(BirthDateTime DateTime):\r\n\tCalendarAgeInDaysAt(BirthDateTime, Today())\n\n/*TotalLengthOfStay calculates the difference in calendar days between the\nstart and end of the given stay interval.*/\r\n\r\ndefine function \"TotalLengthOfStay\"(Stay Interval<DateTime>):\r\n\tdifference in days between start of Stay and end of Stay\n\n/*Hospitalization returns the total interval for admission to discharge for\nthe given encounter, or for the admission of any immediately prior emergency \ndepartment 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/*ToDate takes a given DateTime value and returns a DateTime with the time components \"zeroed\", and the timezone of the input value. For example,\ngiven the DateTime @2012-01-01T06:30:00.0Z, this function will return\n@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/*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\r\n",
      "elm": {
        "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": "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": "2.16.840.1.113883.6.1",
                "version": "urn:hl7:version:2.46",
                "accessLevel": "Public"
              },
              {
                "localId": "3",
                "locator": "6:1-6:97",
                "name": "SNOMEDCT:2016-03",
                "id": "2.16.840.1.113883.6.96",
                "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"
              }
            ]
          },
          "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": "29",
                "locator": "67:1-68:93",
                "name": "ToDate",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "29",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"ToDate\"",
                            "(",
                            "Value",
                            " "
                          ]
                        },
                        {
                          "r": "15",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "28",
                          "s": [
                            {
                              "r": "28",
                              "s": [
                                {
                                  "value": [
                                    "DateTime",
                                    "("
                                  ]
                                },
                                {
                                  "r": "17",
                                  "s": [
                                    {
                                      "value": [
                                        "year from "
                                      ]
                                    },
                                    {
                                      "r": "16",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "19",
                                  "s": [
                                    {
                                      "value": [
                                        "month from "
                                      ]
                                    },
                                    {
                                      "r": "18",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "21",
                                  "s": [
                                    {
                                      "value": [
                                        "day from "
                                      ]
                                    },
                                    {
                                      "r": "20",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", ",
                                    "0",
                                    ", ",
                                    "0",
                                    ", ",
                                    "0",
                                    ", ",
                                    "0",
                                    ", "
                                  ]
                                },
                                {
                                  "r": "27",
                                  "s": [
                                    {
                                      "value": [
                                        "timezone from "
                                      ]
                                    },
                                    {
                                      "r": "26",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "28",
                  "locator": "68:2-68:93",
                  "type": "DateTime",
                  "year": {
                    "localId": "17",
                    "locator": "68:11-68:25",
                    "precision": "Year",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "16",
                      "locator": "68:21-68:25",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "month": {
                    "localId": "19",
                    "locator": "68:28-68:43",
                    "precision": "Month",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "18",
                      "locator": "68:39-68:43",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "day": {
                    "localId": "21",
                    "locator": "68:46-68:59",
                    "precision": "Day",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "20",
                      "locator": "68:55-68:59",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "hour": {
                    "localId": "22",
                    "locator": "68:62",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "minute": {
                    "localId": "23",
                    "locator": "68:65",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "second": {
                    "localId": "24",
                    "locator": "68:68",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "millisecond": {
                    "localId": "25",
                    "locator": "68:71",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "timezoneOffset": {
                    "localId": "27",
                    "locator": "68:74-68:92",
                    "type": "TimezoneFrom",
                    "operand": {
                      "localId": "26",
                      "locator": "68:88-68:92",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Value",
                    "operandTypeSpecifier": {
                      "localId": "15",
                      "locator": "67:32-67:39",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "34",
                "locator": "19:1-20:53",
                "name": "CalendarAgeInYearsAt",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "34",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInYearsAt\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "12",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "AsOf",
                            " "
                          ]
                        },
                        {
                          "r": "13",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "33",
                          "s": [
                            {
                              "r": "33",
                              "s": [
                                {
                                  "value": [
                                    "years between "
                                  ]
                                },
                                {
                                  "r": "30",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "14",
                                      "s": [
                                        {
                                          "value": [
                                            "BirthDateTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " and "
                                  ]
                                },
                                {
                                  "r": "32",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "31",
                                      "s": [
                                        {
                                          "value": [
                                            "AsOf"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "33",
                  "locator": "20:2-20:53",
                  "precision": "Year",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "30",
                      "locator": "20:16-20:36",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "14",
                          "locator": "20:23-20:35",
                          "name": "BirthDateTime",
                          "type": "OperandRef"
                        }
                      ]
                    },
                    {
                      "localId": "32",
                      "locator": "20:42-20:53",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "31",
                          "locator": "20:49-20:52",
                          "name": "AsOf",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "12",
                      "locator": "19:54-19:61",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "13",
                      "locator": "19:69-19:76",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "42",
                "locator": "23:1-24:54",
                "name": "CalendarAgeInMonthsAt",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "42",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInMonthsAt\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "35",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "AsOf",
                            " "
                          ]
                        },
                        {
                          "r": "36",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "41",
                          "s": [
                            {
                              "r": "41",
                              "s": [
                                {
                                  "value": [
                                    "months between "
                                  ]
                                },
                                {
                                  "r": "38",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "37",
                                      "s": [
                                        {
                                          "value": [
                                            "BirthDateTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " and "
                                  ]
                                },
                                {
                                  "r": "40",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "39",
                                      "s": [
                                        {
                                          "value": [
                                            "AsOf"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "41",
                  "locator": "24:2-24:54",
                  "precision": "Month",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "38",
                      "locator": "24:17-24:37",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "37",
                          "locator": "24:24-24:36",
                          "name": "BirthDateTime",
                          "type": "OperandRef"
                        }
                      ]
                    },
                    {
                      "localId": "40",
                      "locator": "24:43-24:54",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "39",
                          "locator": "24:50-24:53",
                          "name": "AsOf",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "35",
                      "locator": "23:55-23:62",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "36",
                      "locator": "23:70-23:77",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "50",
                "locator": "28:1-29:52",
                "name": "CalendarAgeInDaysAt",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "50",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInDaysAt\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "43",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "AsOf",
                            " "
                          ]
                        },
                        {
                          "r": "44",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "49",
                          "s": [
                            {
                              "r": "49",
                              "s": [
                                {
                                  "value": [
                                    "days between "
                                  ]
                                },
                                {
                                  "r": "46",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "45",
                                      "s": [
                                        {
                                          "value": [
                                            "BirthDateTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " and "
                                  ]
                                },
                                {
                                  "r": "48",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "47",
                                      "s": [
                                        {
                                          "value": [
                                            "AsOf"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "49",
                  "locator": "29:2-29:52",
                  "precision": "Day",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "46",
                      "locator": "29:15-29:35",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "45",
                          "locator": "29:22-29:34",
                          "name": "BirthDateTime",
                          "type": "OperandRef"
                        }
                      ]
                    },
                    {
                      "localId": "48",
                      "locator": "29:41-29:52",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "47",
                          "locator": "29:48-29:51",
                          "name": "AsOf",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "43",
                      "locator": "28:53-28:60",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "44",
                      "locator": "28:68-28:75",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "55",
                "locator": "33:1-34:45",
                "name": "CalendarAgeInYears",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "55",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInYears\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "51",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "54",
                          "s": [
                            {
                              "r": "54",
                              "s": [
                                {
                                  "value": [
                                    "CalendarAgeInYearsAt",
                                    "("
                                  ]
                                },
                                {
                                  "r": "52",
                                  "s": [
                                    {
                                      "value": [
                                        "BirthDateTime"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "53",
                                  "s": [
                                    {
                                      "value": [
                                        "Today",
                                        "()"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "54",
                  "locator": "34:2-34:45",
                  "name": "CalendarAgeInYearsAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "52",
                      "locator": "34:23-34:35",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "localId": "53",
                      "locator": "34:38-34:44",
                      "type": "Today"
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "51",
                      "locator": "33:52-33:59",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "60",
                "locator": "38:1-39:46",
                "name": "CalendarAgeInMonths",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "60",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInMonths\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "56",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "59",
                          "s": [
                            {
                              "r": "59",
                              "s": [
                                {
                                  "value": [
                                    "CalendarAgeInMonthsAt",
                                    "("
                                  ]
                                },
                                {
                                  "r": "57",
                                  "s": [
                                    {
                                      "value": [
                                        "BirthDateTime"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "58",
                                  "s": [
                                    {
                                      "value": [
                                        "Today",
                                        "()"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "59",
                  "locator": "39:2-39:46",
                  "name": "CalendarAgeInMonthsAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "57",
                      "locator": "39:24-39:36",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "localId": "58",
                      "locator": "39:39-39:45",
                      "type": "Today"
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "56",
                      "locator": "38:53-38:60",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "65",
                "locator": "43:1-44: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": "44:2-44:44",
                  "name": "CalendarAgeInDaysAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "62",
                      "locator": "44:22-44:34",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "localId": "63",
                      "locator": "44:37-44:43",
                      "type": "Today"
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "61",
                      "locator": "43:51-43:58",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "73",
                "locator": "48:1-49:57",
                "name": "TotalLengthOfStay",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "73",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"TotalLengthOfStay\"",
                            "(",
                            "Stay",
                            " "
                          ]
                        },
                        {
                          "r": "67",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "66",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "72",
                          "s": [
                            {
                              "r": "72",
                              "s": [
                                {
                                  "value": [
                                    "difference in days between "
                                  ]
                                },
                                {
                                  "r": "69",
                                  "s": [
                                    {
                                      "value": [
                                        "start of "
                                      ]
                                    },
                                    {
                                      "r": "68",
                                      "s": [
                                        {
                                          "value": [
                                            "Stay"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " and "
                                  ]
                                },
                                {
                                  "r": "71",
                                  "s": [
                                    {
                                      "value": [
                                        "end of "
                                      ]
                                    },
                                    {
                                      "r": "70",
                                      "s": [
                                        {
                                          "value": [
                                            "Stay"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "72",
                  "locator": "49:2-49:57",
                  "precision": "Day",
                  "type": "DifferenceBetween",
                  "operand": [
                    {
                      "localId": "69",
                      "locator": "49:29-49:41",
                      "type": "Start",
                      "operand": {
                        "localId": "68",
                        "locator": "49:38-49:41",
                        "name": "Stay",
                        "type": "OperandRef"
                      }
                    },
                    {
                      "localId": "71",
                      "locator": "49:47-49:57",
                      "type": "End",
                      "operand": {
                        "localId": "70",
                        "locator": "49:54-49:57",
                        "name": "Stay",
                        "type": "OperandRef"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "Stay",
                    "operandTypeSpecifier": {
                      "localId": "67",
                      "locator": "48:42-48:59",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "66",
                        "locator": "48:51-48:58",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              },
              {
                "localId": "101",
                "locator": "54:1-62:80",
                "name": "Hospitalization",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "101",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"Hospitalization\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "74",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "100",
                          "s": [
                            {
                              "r": "100",
                              "s": [
                                {
                                  "s": [
                                    {
                                      "r": "86",
                                      "s": [
                                        {
                                          "r": "85",
                                          "s": [
                                            {
                                              "value": [
                                                "(\r\n\t    "
                                              ]
                                            },
                                            {
                                              "r": "85",
                                              "s": [
                                                {
                                                  "value": [
                                                    "singleton from "
                                                  ]
                                                },
                                                {
                                                  "r": "84",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "(\r\n\t      "
                                                      ]
                                                    },
                                                    {
                                                      "r": "84",
                                                      "s": [
                                                        {
                                                          "s": [
                                                            {
                                                              "r": "76",
                                                              "s": [
                                                                {
                                                                  "r": "75",
                                                                  "s": [
                                                                    {
                                                                      "r": "75",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "[",
                                                                            "\"Encounter, Performed\"",
                                                                            ": "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "\"Emergency Department Visit\""
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "]"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " ",
                                                                    "EDVisit"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\r\n\t        "
                                                          ]
                                                        },
                                                        {
                                                          "r": "83",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "where "
                                                              ]
                                                            },
                                                            {
                                                              "r": "83",
                                                              "s": [
                                                                {
                                                                  "r": "78",
                                                                  "s": [
                                                                    {
                                                                      "r": "77",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "EDVisit"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "."
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "78",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "relevantPeriod"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "83",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "ends "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "82",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "1 ",
                                                                            "hour"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " or less on or before"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "81",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "start of "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "80",
                                                                      "s": [
                                                                        {
                                                                          "r": "79",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "Encounter"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "."
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "80",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "relevantPeriod"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\r\n\t    )"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\r\n\t  )"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "X"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\r\n\t    "
                                  ]
                                },
                                {
                                  "r": "99",
                                  "s": [
                                    {
                                      "value": [
                                        "return "
                                      ]
                                    },
                                    {
                                      "r": "98",
                                      "s": [
                                        {
                                          "value": [
                                            "if "
                                          ]
                                        },
                                        {
                                          "r": "88",
                                          "s": [
                                            {
                                              "r": "87",
                                              "s": [
                                                {
                                                  "value": [
                                                    "X"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " is null"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " then "
                                          ]
                                        },
                                        {
                                          "r": "90",
                                          "s": [
                                            {
                                              "r": "89",
                                              "s": [
                                                {
                                                  "value": [
                                                    "Encounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "90",
                                              "s": [
                                                {
                                                  "value": [
                                                    "relevantPeriod"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\r\n\t      else "
                                          ]
                                        },
                                        {
                                          "r": "97",
                                          "s": [
                                            {
                                              "value": [
                                                "Interval["
                                              ]
                                            },
                                            {
                                              "r": "93",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "92",
                                                  "s": [
                                                    {
                                                      "r": "91",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "X"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "92",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ", "
                                              ]
                                            },
                                            {
                                              "r": "96",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "95",
                                                  "s": [
                                                    {
                                                      "r": "94",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Encounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "95",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "100",
                  "locator": "55:2-62:80",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "86",
                      "locator": "55:2-60:6",
                      "alias": "X",
                      "expression": {
                        "localId": "85",
                        "locator": "55:2-60:4",
                        "type": "SingletonFrom",
                        "operand": {
                          "localId": "84",
                          "locator": "56:21-59:6",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "76",
                              "locator": "57:8-57:69",
                              "alias": "EDVisit",
                              "expression": {
                                "localId": "75",
                                "locator": "57:8-57:61",
                                "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                "templateId": "PositiveEncounterPerformed",
                                "codeProperty": "code",
                                "type": "Retrieve",
                                "codes": {
                                  "name": "Emergency Department Visit",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [

                          ],
                          "where": {
                            "localId": "83",
                            "locator": "58:10-58:104",
                            "type": "In",
                            "operand": [
                              {
                                "locator": "58:39-58:42",
                                "type": "End",
                                "operand": {
                                  "localId": "78",
                                  "locator": "58:16-58:37",
                                  "path": "relevantPeriod",
                                  "scope": "EDVisit",
                                  "type": "Property"
                                }
                              },
                              {
                                "locator": "58:44-58:57",
                                "lowClosed": true,
                                "highClosed": true,
                                "type": "Interval",
                                "low": {
                                  "locator": "58:72-58:104",
                                  "type": "Subtract",
                                  "operand": [
                                    {
                                      "localId": "81",
                                      "locator": "58:72-58:104",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "80",
                                        "locator": "58:81-58:104",
                                        "path": "relevantPeriod",
                                        "type": "Property",
                                        "source": {
                                          "localId": "79",
                                          "locator": "58:81-58:89",
                                          "name": "Encounter",
                                          "type": "OperandRef"
                                        }
                                      }
                                    },
                                    {
                                      "localId": "82",
                                      "locator": "58:44-58:49",
                                      "value": 1,
                                      "unit": "hour",
                                      "type": "Quantity"
                                    }
                                  ]
                                },
                                "high": {
                                  "localId": "81",
                                  "locator": "58:72-58:104",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "80",
                                    "locator": "58:81-58:104",
                                    "path": "relevantPeriod",
                                    "type": "Property",
                                    "source": {
                                      "localId": "79",
                                      "locator": "58:81-58:89",
                                      "name": "Encounter",
                                      "type": "OperandRef"
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "return": {
                    "localId": "99",
                    "locator": "61:6-62:80",
                    "expression": {
                      "localId": "98",
                      "locator": "61:13-62:80",
                      "type": "If",
                      "condition": {
                        "asType": "{urn:hl7-org:elm-types:r1}Boolean",
                        "type": "As",
                        "operand": {
                          "localId": "88",
                          "locator": "61:16-61:24",
                          "type": "IsNull",
                          "operand": {
                            "localId": "87",
                            "locator": "61:16",
                            "name": "X",
                            "type": "AliasRef"
                          }
                        },
                        "asTypeSpecifier": {
                          "name": "{urn:hl7-org:elm-types:r1}Boolean",
                          "type": "NamedTypeSpecifier"
                        }
                      },
                      "then": {
                        "localId": "90",
                        "locator": "61:31-61:54",
                        "path": "relevantPeriod",
                        "type": "Property",
                        "source": {
                          "localId": "89",
                          "locator": "61:31-61:39",
                          "name": "Encounter",
                          "type": "OperandRef"
                        }
                      },
                      "else": {
                        "localId": "97",
                        "locator": "62:13-62:80",
                        "lowClosed": true,
                        "highClosed": true,
                        "type": "Interval",
                        "low": {
                          "localId": "93",
                          "locator": "62:22-62:46",
                          "type": "Start",
                          "operand": {
                            "localId": "92",
                            "locator": "62:31-62:46",
                            "path": "relevantPeriod",
                            "scope": "X",
                            "type": "Property"
                          }
                        },
                        "high": {
                          "localId": "96",
                          "locator": "62:49-62:79",
                          "type": "End",
                          "operand": {
                            "localId": "95",
                            "locator": "62:56-62:79",
                            "path": "relevantPeriod",
                            "type": "Property",
                            "source": {
                              "localId": "94",
                              "locator": "62:56-62:64",
                              "name": "Encounter",
                              "type": "OperandRef"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "74",
                      "locator": "54:45-54:66",
                      "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "111",
                "locator": "71:1-72:59",
                "name": "LengthInDays",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "111",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"LengthInDays\"",
                            "(",
                            "Value",
                            " "
                          ]
                        },
                        {
                          "r": "105",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "104",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "110",
                          "s": [
                            {
                              "r": "110",
                              "s": [
                                {
                                  "value": [
                                    "difference in days between "
                                  ]
                                },
                                {
                                  "r": "107",
                                  "s": [
                                    {
                                      "value": [
                                        "start of "
                                      ]
                                    },
                                    {
                                      "r": "106",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " and "
                                  ]
                                },
                                {
                                  "r": "109",
                                  "s": [
                                    {
                                      "value": [
                                        "end of "
                                      ]
                                    },
                                    {
                                      "r": "108",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "110",
                  "locator": "72:2-72:59",
                  "precision": "Day",
                  "type": "DifferenceBetween",
                  "operand": [
                    {
                      "localId": "107",
                      "locator": "72:29-72:42",
                      "type": "Start",
                      "operand": {
                        "localId": "106",
                        "locator": "72:38-72:42",
                        "name": "Value",
                        "type": "OperandRef"
                      }
                    },
                    {
                      "localId": "109",
                      "locator": "72:48-72:59",
                      "type": "End",
                      "operand": {
                        "localId": "108",
                        "locator": "72:55-72:59",
                        "name": "Value",
                        "type": "OperandRef"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "Value",
                    "operandTypeSpecifier": {
                      "localId": "105",
                      "locator": "71:38-71:55",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "104",
                        "locator": "71:47-71:54",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "statements": [
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"ToDate\"(Value "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "15"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "DateTime("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "year from "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "16"
                              }
                            ],
                            "ref_id": "17"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "month from "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "18"
                              }
                            ],
                            "ref_id": "19"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "day from "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "20"
                              }
                            ],
                            "ref_id": "21"
                          },
                          {
                            "children": [
                              {
                                "text": ", 0, 0, 0, 0, "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "timezone from "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "26"
                              }
                            ],
                            "ref_id": "27"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "DateTime",
                        "ref_id": "28"
                      }
                    ],
                    "node_type": "DateTime",
                    "ref_id": "28"
                  }
                ],
                "ref_id": "29"
              }
            ],
            "define_name": "ToDate"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInYearsAt\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "12"
                  },
                  {
                    "children": [
                      {
                        "text": ", AsOf "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "13"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "years between "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "BirthDateTime"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "14"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "30"
                          },
                          {
                            "children": [
                              {
                                "text": " and "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "AsOf"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "31"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "32"
                          }
                        ],
                        "node_type": "DurationBetween",
                        "ref_id": "33"
                      }
                    ],
                    "node_type": "DurationBetween",
                    "ref_id": "33"
                  }
                ],
                "ref_id": "34"
              }
            ],
            "define_name": "CalendarAgeInYearsAt"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInMonthsAt\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "35"
                  },
                  {
                    "children": [
                      {
                        "text": ", AsOf "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "36"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "months between "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "BirthDateTime"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "37"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "38"
                          },
                          {
                            "children": [
                              {
                                "text": " and "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "AsOf"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "39"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "40"
                          }
                        ],
                        "node_type": "DurationBetween",
                        "ref_id": "41"
                      }
                    ],
                    "node_type": "DurationBetween",
                    "ref_id": "41"
                  }
                ],
                "ref_id": "42"
              }
            ],
            "define_name": "CalendarAgeInMonthsAt"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInDaysAt\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "43"
                  },
                  {
                    "children": [
                      {
                        "text": ", AsOf "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "44"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "days between "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "BirthDateTime"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "45"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "46"
                          },
                          {
                            "children": [
                              {
                                "text": " and "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "AsOf"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "47"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "48"
                          }
                        ],
                        "node_type": "DurationBetween",
                        "ref_id": "49"
                      }
                    ],
                    "node_type": "DurationBetween",
                    "ref_id": "49"
                  }
                ],
                "ref_id": "50"
              }
            ],
            "define_name": "CalendarAgeInDaysAt"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInYears\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "51"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "CalendarAgeInYearsAt("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "BirthDateTime"
                                  }
                                ]
                              }
                            ],
                            "node_type": "OperandRef",
                            "ref_id": "52"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "Today()"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Today",
                            "ref_id": "53"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "FunctionRef",
                        "ref_id": "54"
                      }
                    ],
                    "node_type": "FunctionRef",
                    "ref_id": "54"
                  }
                ],
                "ref_id": "55"
              }
            ],
            "define_name": "CalendarAgeInYears"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInMonths\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "56"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "CalendarAgeInMonthsAt("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "BirthDateTime"
                                  }
                                ]
                              }
                            ],
                            "node_type": "OperandRef",
                            "ref_id": "57"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "Today()"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Today",
                            "ref_id": "58"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "FunctionRef",
                        "ref_id": "59"
                      }
                    ],
                    "node_type": "FunctionRef",
                    "ref_id": "59"
                  }
                ],
                "ref_id": "60"
              }
            ],
            "define_name": "CalendarAgeInMonths"
          },
          {
            "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 \"TotalLengthOfStay\"(Stay "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "Interval&lt;"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "DateTime"
                              }
                            ]
                          }
                        ],
                        "ref_id": "66"
                      },
                      {
                        "children": [
                          {
                            "text": "&gt;"
                          }
                        ]
                      }
                    ],
                    "ref_id": "67"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "difference in days between "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "start of "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Stay"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "68"
                              }
                            ],
                            "node_type": "Start",
                            "ref_id": "69"
                          },
                          {
                            "children": [
                              {
                                "text": " and "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "end of "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Stay"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "70"
                              }
                            ],
                            "node_type": "End",
                            "ref_id": "71"
                          }
                        ],
                        "node_type": "DifferenceBetween",
                        "ref_id": "72"
                      }
                    ],
                    "node_type": "DifferenceBetween",
                    "ref_id": "72"
                  }
                ],
                "ref_id": "73"
              }
            ],
            "define_name": "TotalLengthOfStay"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"Hospitalization\"(Encounter "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Encounter, Performed\""
                          }
                        ]
                      }
                    ],
                    "ref_id": "74"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "(&#13;\n      "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "singleton from "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "(&#13;\n        "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "[\"Encounter, Performed\": "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "\"Emergency Department Visit\""
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "]"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "Retrieve",
                                                                "ref_id": "75"
                                                              }
                                                            ],
                                                            "node_type": "Retrieve",
                                                            "ref_id": "75"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " EDVisit"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "76"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "&#13;\n          "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "where "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "EDVisit"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "77"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "."
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "relevantPeriod"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "Property",
                                                                "ref_id": "78"
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "78"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "ends "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "1 hour"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "Quantity",
                                                                "ref_id": "82"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " or less on or before"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "83"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "start of "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "Encounter"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "79"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "."
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "relevantPeriod"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "node_type": "Property",
                                                                    "ref_id": "80"
                                                                  }
                                                                ],
                                                                "node_type": "Property",
                                                                "ref_id": "80"
                                                              }
                                                            ],
                                                            "node_type": "Start",
                                                            "ref_id": "81"
                                                          }
                                                        ],
                                                        "ref_id": "83"
                                                      }
                                                    ],
                                                    "ref_id": "83"
                                                  }
                                                ],
                                                "node_type": "Query",
                                                "ref_id": "84"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "&#13;\n      )"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Query",
                                            "ref_id": "84"
                                          }
                                        ],
                                        "node_type": "SingletonFrom",
                                        "ref_id": "85"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "&#13;\n    )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "SingletonFrom",
                                    "ref_id": "85"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " X"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "86"
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "&#13;\n      "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "return "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "if "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "X"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "AliasRef",
                                        "ref_id": "87"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " is null"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "IsNull",
                                    "ref_id": "88"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " then "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "Encounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "89"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "relevantPeriod"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "90"
                                      }
                                    ],
                                    "ref_id": "90"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "&#13;\n        else "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Interval["
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "X"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "91"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "92"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "92"
                                          }
                                        ],
                                        "ref_id": "93"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": ", "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "Encounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "94"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "95"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "95"
                                          }
                                        ],
                                        "ref_id": "96"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "97"
                                  }
                                ],
                                "node_type": "If",
                                "ref_id": "98"
                              }
                            ],
                            "ref_id": "99"
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "100"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "100"
                  }
                ],
                "ref_id": "101"
              }
            ],
            "define_name": "Hospitalization"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"LengthInDays\"(Value "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "Interval&lt;"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "DateTime"
                              }
                            ]
                          }
                        ],
                        "ref_id": "104"
                      },
                      {
                        "children": [
                          {
                            "text": "&gt;"
                          }
                        ]
                      }
                    ],
                    "ref_id": "105"
                  },
                  {
                    "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": "106"
                              }
                            ],
                            "node_type": "Start",
                            "ref_id": "107"
                          },
                          {
                            "children": [
                              {
                                "text": " and "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "end of "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "108"
                              }
                            ],
                            "node_type": "End",
                            "ref_id": "109"
                          }
                        ],
                        "node_type": "DifferenceBetween",
                        "ref_id": "110"
                      }
                    ],
                    "node_type": "DifferenceBetween",
                    "ref_id": "110"
                  }
                ],
                "ref_id": "111"
              }
            ],
            "define_name": "LengthInDays"
          }
        ],
        "identifier": {
          "id": "MATGlobalCommonFunctions",
          "version": "2.0.000"
        }
      },
      "is_main_library": false,
      "is_top_level": true,
      "library_name": "MATGlobalCommonFunctions",
      "library_version": "2.0.000",
      "statement_dependencies": [
        {
          "statement_name": "CalendarAgeInYearsAt",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctions",
              "statement_name": "ToDate"
            }
          ]
        },
        {
          "statement_name": "ToDate"
        },
        {
          "statement_name": "Hospitalization"
        }
      ]
    }
  ],
  "created_at": null,
  "description": "Ischemic stroke patients prescribed or continuing to take antithrombotic therapy at hospital discharge",
  "hqmf_id": "40280582-5DD7-3595-015E-29268F9D0B02",
  "hqmf_set_id": "155445E1-6CEE-4F81-98E4-669957369D57",
  "hqmf_version_number": "0",
  "main_cql_library": "Test104",
  "measure_attributes": [
    {
      "code": "OTH",
      "value": "13",
      "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": "13",
        "media_type": "text/plain"
      }
    },
    {
      "code": "OTH",
      "value": "Not Applicable",
      "name": "NQF Number",
      "code_obj": {
        "type": "CD",
        "null_flavor": "OTH",
        "original_text": "NQF Number"
      },
      "value_obj": {
        "type": "ED",
        "value": "Not Applicable",
        "media_type": "text/plain"
      }
    },
    {
      "code": "COPY",
      "value": "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-2016 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-2016 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": "The effectiveness of antithrombotic agents in reducing stroke mortality, stroke-related morbidity and recurrence rates has been studied in several large clinical trials. While the use of these agents for patients with acute ischemic stroke and transient ischemic attacks continues to be the subject of study, substantial evidence is available from completed studies. Data at this time suggest that antithrombotic therapy should be prescribed at discharge following acute ischemic stroke to reduce stroke mortality and morbidity as long as no contraindications exist.\n\nFor patients with a stroke due to a cardioembolic source (eg atrial fibrillation, mechanical heart valve), warfarin is recommended unless contraindicated. In recent years, novel oral anticoagulant agents (NOACs) have been developed and approved by the U.S. Food and Drug Administration (FDA) for stroke prevention, and may be considered as an alternative to warfarin for select patients. Anticoagulation therapy is not generally recommended for secondary stroke prevention in patients presumed to have a non-cardioembolic stroke.\nAnticoagulants at doses to prevent venous thromboembolism are insufficient antithrombotic therapy to prevent recurrent ischemic stroke or TIA.",
      "name": "Rationale",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "RAT",
        "title": "Rationale"
      },
      "value_obj": {
        "type": "ED",
        "value": "The effectiveness of antithrombotic agents in reducing stroke mortality, stroke-related morbidity and recurrence rates has been studied in several large clinical trials. While the use of these agents for patients with acute ischemic stroke and transient ischemic attacks continues to be the subject of study, substantial evidence is available from completed studies. Data at this time suggest that antithrombotic therapy should be prescribed at discharge following acute ischemic stroke to reduce stroke mortality and morbidity as long as no contraindications exist.\n\nFor patients with a stroke due to a cardioembolic source (eg atrial fibrillation, mechanical heart valve), warfarin is recommended unless contraindicated. In recent years, novel oral anticoagulant agents (NOACs) have been developed and approved by the U.S. Food and Drug Administration (FDA) for stroke prevention, and may be considered as an alternative to warfarin for select patients. Anticoagulation therapy is not generally recommended for secondary stroke prevention in patients presumed to have a non-cardioembolic stroke.\nAnticoagulants at doses to prevent venous thromboembolism are insufficient antithrombotic therapy to prevent recurrent ischemic stroke or TIA.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "CRS",
      "value": "Clinical trial results suggest that antithrombotic therapy should be prescribed at discharge following acute ischemic stroke to reduce stroke mortality and morbidity as long as no contraindications exist",
      "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": "Clinical trial results suggest that antithrombotic therapy should be prescribed at discharge following acute ischemic stroke to reduce stroke mortality and morbidity as long as no contraindications exist",
        "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": "Adams HP, del Zoppo G, Alberts MJ, Bhatt DL, Brass L, Furlan A, Grubb RL, Higashida RT, Jauch EC, Kidwell C, Lyden PD, Morgenstern LB, Qureshi AI, Rosenwasser RH, Scott PA, Wijdicks E. Guidelines for the Early Management of Adults with Ischemic Stroke: A Guideline From the American Heart Association/American Stroke Association Stroke Council, Clinical CardiologyCouncil, Cardiovascular Radiology and Intervention Council, and the Atherosclerotic Peripheral Vascular Disease and Quality of Care Outcomes in Research Interdisciplinary Working Groups. Stroke. 2007;38:1655-1711.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Adams HP, del Zoppo G, Alberts MJ, Bhatt DL, Brass L, Furlan A, Grubb RL, Higashida RT, Jauch EC, Kidwell C, Lyden PD, Morgenstern LB, Qureshi AI, Rosenwasser RH, Scott PA, Wijdicks E. Guidelines for the Early Management of Adults with Ischemic Stroke: A Guideline From the American Heart Association/American Stroke Association Stroke Council, Clinical CardiologyCouncil, Cardiovascular Radiology and Intervention Council, and the Atherosclerotic Peripheral Vascular Disease and Quality of Care Outcomes in Research Interdisciplinary Working Groups. Stroke. 2007;38:1655-1711.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Adams H, Adams R, Del Zoppo G, Goldstein LB. Guidelines for the Early Management of Patients With Ischemic Stroke: Guidelines Update A Scientific Statement From the Stroke Council of the American Heart Association/American Stroke Association. Stroke Vol. 36, 2005: 916:923.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Adams H, Adams R, Del Zoppo G, Goldstein LB. Guidelines for the Early Management of Patients With Ischemic Stroke: Guidelines Update A Scientific Statement From the Stroke Council of the American Heart Association/American Stroke Association. Stroke Vol. 36, 2005: 916:923.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Albers GW, Amarenco P, Easton JD, Sacco RL, Teal P. Antithrombotic and Thrombolytic Therapy for Ischemic Stroke. Chest Vol. 119, 2001: 300-320.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Albers GW, Amarenco P, Easton JD, Sacco RL, Teal P. Antithrombotic and Thrombolytic Therapy for Ischemic Stroke. Chest Vol. 119, 2001: 300-320.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Brott TG, Clark WM, Grotta JC, et al. Stroke the first hours. Guidelines for acute treatment. Consensus Statement. National Stroke Association. 2000.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Brott TG, Clark WM, Grotta JC, et al. Stroke the first hours. Guidelines for acute treatment. Consensus Statement. National Stroke Association. 2000.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Chen ZM, Sandercock P, Pan HC, et al. Indications for early aspirin use in acute ischemic stroke: a combined analysis of 40,000 randomized patients from the Chinese acute stroke trial and the international stroke trial. On behalf of the CAST and IST collaborative groups, Stroke 2000;31:1240-1249.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Chen ZM, Sandercock P, Pan HC, et al. Indications for early aspirin use in acute ischemic stroke: a combined analysis of 40,000 randomized patients from the Chinese acute stroke trial and the international stroke trial. On behalf of the CAST and IST collaborative groups, Stroke 2000;31:1240-1249.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Coull BM, Williams LS, Goldstein LB, et al. Anticoagulants and Antiplatelet Agents in Acute Ischemic Stroke. Report of the Joint Stroke Guideline Development Committee of the American Academy of Neurology and the American Stroke Association (a Division of the American Heart Association) Stroke. 2002;33:1934 - 1942.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Coull BM, Williams LS, Goldstein LB, et al. Anticoagulants and Antiplatelet Agents in Acute Ischemic Stroke. Report of the Joint Stroke Guideline Development Committee of the American Academy of Neurology and the American Stroke Association (a Division of the American Heart Association) Stroke. 2002;33:1934 - 1942.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Guideline on the Use of Aspirin as Secondary Prophylaxis for Vascular Disease in Primary Care, Centre for Health Services Research University of Newcastle upon Tyne, & Centre for Health Economics of York, 1998.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Guideline on the Use of Aspirin as Secondary Prophylaxis for Vascular Disease in Primary Care, Centre for Health Services Research University of Newcastle upon Tyne, & Centre for Health Economics of York, 1998.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Kernan, W.N., B. Ovbiagele, H. R. Black, D. M. Bravata, M. I. Chimowitz, M. D. Ezekowitz, M. C. Fang, M. Fisher, K. L. Furie, D. V. Heck, S. C. Johnston, S. E. Kasner, S. J. Kittner, P. H. Mitchell, M. W. Rich, D. Richardson, L. H. Schwamm, J. A. Wilson. \"Guidelines for the Prevention of Stroke in Patients with Stroke and Transient Ischemic Attack: A Guideline for Healthcare Professionals from the American Heart Association/American Stroke Association.\" [in eng.]  Stroke 45, no. 7 (May 2014): 2160-223.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Kernan, W.N., B. Ovbiagele, H. R. Black, D. M. Bravata, M. I. Chimowitz, M. D. Ezekowitz, M. C. Fang, M. Fisher, K. L. Furie, D. V. Heck, S. C. Johnston, S. E. Kasner, S. J. Kittner, P. H. Mitchell, M. W. Rich, D. Richardson, L. H. Schwamm, J. A. Wilson. \"Guidelines for the Prevention of Stroke in Patients with Stroke and Transient Ischemic Attack: A Guideline for Healthcare Professionals from the American Heart Association/American Stroke Association.\" [in eng.]  Stroke 45, no. 7 (May 2014): 2160-223.",
        "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": "The \"Non-elective Inpatient Encounter\" value set intends to capture all non-scheduled hospitalizations. This value set is a subset of the \"Inpatient encounter\" value set, excluding concepts that specifically refer to elective hospital admissions. Non-elective admissions include emergency, urgent and unplanned admissions.\n\nThe \"Medication, Discharge\" datatype refers to the discharge medication list and is intended to express medications ordered for post-discharge use.",
      "name": "Guidance",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "GUIDE",
        "title": "Guidance"
      },
      "value_obj": {
        "type": "ED",
        "value": "The \"Non-elective Inpatient Encounter\" value set intends to capture all non-scheduled hospitalizations. This value set is a subset of the \"Inpatient encounter\" value set, excluding concepts that specifically refer to elective hospital admissions. Non-elective admissions include emergency, urgent and unplanned admissions.\n\nThe \"Medication, Discharge\" datatype refers to the discharge medication list and is intended to express medications ordered for post-discharge use.",
        "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 inpatient care (non-elective admissions) with a principal diagnosis of ischemic or hemorrhagic stroke and 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 inpatient care (non-elective admissions) with a principal diagnosis of ischemic or hemorrhagic stroke and a length of stay less than or equal to 120 days that ends during the measurement period",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENOM",
      "value": "Patients with a principal diagnosis of Ischemic stroke",
      "name": "Denominator",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DENOM",
        "title": "Denominator"
      },
      "value_obj": {
        "type": "ED",
        "value": "Patients with a principal diagnosis of Ischemic stroke",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENEX",
      "value": "*Patients with comfort measures documented\n*Patients admitted for elective carotid intervention. This exclusion is implicitly modeled by only including non-elective hospitalizations.\n*Patients discharged to another hospital\n*Patients who left against medical advice\n*Patients who expired\n*Patients discharged to home for hospice care\n*Patients discharged to a health care facility for hospice care",
      "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 with comfort measures documented\n*Patients admitted for elective carotid intervention. This exclusion is implicitly modeled by only including non-elective hospitalizations.\n*Patients discharged to another hospital\n*Patients who left against medical advice\n*Patients who expired\n*Patients discharged to home for hospice care\n*Patients discharged to a health care facility for hospice care",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMER",
      "value": "Patients prescribed or continuing to take antithrombotic therapy at hospital discharge",
      "name": "Numerator",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "NUMER",
        "title": "Numerator"
      },
      "value_obj": {
        "type": "ED",
        "value": "Patients prescribed or continuing to take antithrombotic therapy at hospital discharge",
        "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": "Patients with a documented reason for not prescribing antithrombotic therapy at discharge",
      "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": "Patients with a documented reason for not prescribing antithrombotic therapy at discharge",
        "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_period": {
    "type": "IVL_TS",
    "low": {
      "type": "TS",
      "value": "201201010000",
      "inclusive?": true,
      "derived?": false
    },
    "high": {
      "type": "TS",
      "value": "201212312359",
      "inclusive?": true,
      "derived?": false
    },
    "width": {
      "type": "PQ",
      "unit": "a",
      "value": "1",
      "inclusive?": true,
      "derived?": false
    }
  },
  "measure_scoring": "PROPORTION",
  "population_criteria": {
    "IPP": {
      "conjunction?": true,
      "type": "IPP",
      "hqmf_id": "37E39C61-6AA1-43EB-B6C7-CAB240B113A6",
      "preconditions": [
        {
          "id": 2,
          "preconditions": [
            {
              "id": 1,
              "reference": "Test104__Initial_Population__CEA13D81_C3AB_4B19_8B93_137EBDB9DDA7"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "53675D1E-CEA8-49EE-A5BC-98BA1FA2EBDB",
      "preconditions": [
        {
          "id": 4,
          "preconditions": [
            {
              "id": 3,
              "reference": "Test104__Denominator__CEA13D81_C3AB_4B19_8B93_137EBDB9DDA7"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "6B816917-46C3-4439-A762-5539ADC1921D",
      "preconditions": [
        {
          "id": 6,
          "preconditions": [
            {
              "id": 5,
              "reference": "Test104__Numerator__CEA13D81_C3AB_4B19_8B93_137EBDB9DDA7"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENEXCEP": {
      "conjunction?": true,
      "type": "DENEXCEP",
      "hqmf_id": "83F6613E-3B28-4ED2-8261-FCA17A6FE055",
      "preconditions": [
        {
          "id": 8,
          "preconditions": [
            {
              "id": 7,
              "reference": "Test104__Denominator_Exceptions__CEA13D81_C3AB_4B19_8B93_137EBDB9DDA7"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    },
    "DENEX": {
      "conjunction?": true,
      "type": "DENEX",
      "hqmf_id": "F422F037-B79B-4BAE-A81E-D2398DFEE479",
      "preconditions": [
        {
          "id": 10,
          "preconditions": [
            {
              "id": 9,
              "reference": "Test104__Denominator_Exclusions__CEA13D81_C3AB_4B19_8B93_137EBDB9DDA7"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    }
  },
  "population_sets": [
    {
      "population_set_id": "PopulationCriteria1",
      "populations": {
        "DENEX": {
          "hqmf_id": "F422F037-B79B-4BAE-A81E-D2398DFEE479",
          "library_name": "Test104",
          "statement_name": "Denominator Exclusions"
        },
        "DENEXCEP": {
          "hqmf_id": "83F6613E-3B28-4ED2-8261-FCA17A6FE055",
          "library_name": "Test104",
          "statement_name": "Denominator Exceptions"
        },
        "DENOM": {
          "hqmf_id": "53675D1E-CEA8-49EE-A5BC-98BA1FA2EBDB",
          "library_name": "Test104",
          "statement_name": "Denominator"
        },
        "IPP": {
          "hqmf_id": "37E39C61-6AA1-43EB-B6C7-CAB240B113A6",
          "library_name": "Test104",
          "statement_name": "Initial Population"
        },
        "NUMER": {
          "hqmf_id": "6B816917-46C3-4439-A762-5539ADC1921D",
          "library_name": "Test104",
          "statement_name": "Numerator"
        },
        "_type": "CQM::ProportionPopulationMap"
      },
      "title": "Population Criteria Section"
    }
  ],
  "source_data_criteria": [
    {
      "codeListId": "2.16.840.1.114222.4.11.3591",
      "dataElementCodes": [

      ],
      "description": "Patient Characteristic Payer: Payer",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.58",
      "id": "5d289cc131fe5f8b5e9bc30f",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "payer",
      "qdmTitle": "Patient Characteristic Payer",
      "qdmVersion": "5.5",
      "relevantPeriod": null,
      "_type": "QDM::PatientCharacteristicPayer"
    },
    {
      "authorDatetime": null,
      "codeListId": "1.3.6.1.4.1.33895.1.3.0.45",
      "dataElementCodes": [

      ],
      "description": "Intervention, Performed: ComfortMeasures",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.36",
      "id": "5d289cc131fe5f8b5e9bc310",
      "negationRationale": null,
      "performer": null,
      "qdmCategory": "intervention",
      "qdmStatus": "performed",
      "qdmTitle": "Intervention, Performed",
      "qdmVersion": "5.5",
      "reason": null,
      "relevantDatetime": null,
      "relevantPeriod": null,
      "result": null,
      "status": null,
      "_type": "QDM::InterventionPerformed"
    },
    {
      "authorDatetime": null,
      "codeListId": "1.3.6.1.4.1.33895.1.3.0.45",
      "dataElementCodes": [

      ],
      "description": "Intervention, Order: ComfortMeasures",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.35",
      "id": "5d289cc131fe5f8b5e9bc311",
      "negationRationale": null,
      "qdmCategory": "intervention",
      "qdmStatus": "order",
      "qdmTitle": "Intervention, Order",
      "qdmVersion": "5.5",
      "reason": null,
      "requester": null,
      "_type": "QDM::InterventionOrder"
    },
    {
      "codeListId": "2.16.840.1.114222.4.11.837",
      "dataElementCodes": [

      ],
      "description": "Patient Characteristic Ethnicity: Ethnicity",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.56",
      "id": "5d289cc131fe5f8b5e9bc312",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "ethnicity",
      "qdmTitle": "Patient Characteristic Ethnicity",
      "qdmVersion": "5.5",
      "_type": "QDM::PatientCharacteristicEthnicity"
    },
    {
      "codeListId": "2.16.840.1.113762.1.4.1",
      "dataElementCodes": [

      ],
      "description": "Patient Characteristic Sex: ONCAdministrativeSex",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.55",
      "id": "5d289cc131fe5f8b5e9bc313",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "gender",
      "qdmTitle": "Patient Characteristic Sex",
      "qdmVersion": "5.5",
      "_type": "QDM::PatientCharacteristicSex"
    },
    {
      "admissionSource": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.424",
      "dataElementCodes": [

      ],
      "description": "Encounter, Performed: Non-ElectiveInpatientEncounter",
      "diagnoses": null,
      "dischargeDisposition": null,
      "facilityLocations": [

      ],
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "id": "5d289cc131fe5f8b5e9bc314",
      "lengthOfStay": null,
      "negationRationale": null,
      "participant": null,
      "priority": null,
      "qdmCategory": "encounter",
      "qdmStatus": "performed",
      "qdmTitle": "Encounter, Performed",
      "qdmVersion": "5.5",
      "relevantPeriod": null,
      "_type": "QDM::EncounterPerformed"
    },
    {
      "codeListId": "2.16.840.1.114222.4.11.836",
      "dataElementCodes": [

      ],
      "description": "Patient Characteristic Race: Race",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.59",
      "id": "5d289cc131fe5f8b5e9bc315",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "race",
      "qdmTitle": "Patient Characteristic Race",
      "qdmVersion": "5.5",
      "_type": "QDM::PatientCharacteristicRace"
    },
    {
      "admissionSource": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.292",
      "dataElementCodes": [

      ],
      "description": "Encounter, Performed: EmergencyDepartmentVisit",
      "diagnoses": null,
      "dischargeDisposition": null,
      "facilityLocations": [

      ],
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "id": "5d289cc131fe5f8b5e9bc316",
      "lengthOfStay": null,
      "negationRationale": null,
      "participant": null,
      "priority": null,
      "qdmCategory": "encounter",
      "qdmStatus": "performed",
      "qdmTitle": "Encounter, Performed",
      "qdmVersion": "5.5",
      "relevantPeriod": null,
      "_type": "QDM::EncounterPerformed"
    },
    {
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.201",
      "dataElementCodes": [

      ],
      "daysSupplied": null,
      "description": "Medication, Not Discharged: AntithromboticTherapy",
      "dosage": null,
      "frequency": null,
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.48",
      "id": "5d289cc131fe5f8b5e9bc317",
      "negationRationale": null,
      "prescriber": null,
      "qdmCategory": "medication",
      "qdmStatus": "discharge",
      "qdmTitle": "Medication, Discharge",
      "qdmVersion": "5.5",
      "recorder": null,
      "refills": null,
      "route": null,
      "supply": null,
      "_type": "QDM::MedicationDischarge"
    },
    {
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.201",
      "dataElementCodes": [

      ],
      "daysSupplied": null,
      "description": "Medication, Discharge: AntithromboticTherapy",
      "dosage": null,
      "frequency": null,
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.48",
      "id": "5d289cc131fe5f8b5e9bc318",
      "negationRationale": null,
      "prescriber": null,
      "qdmCategory": "medication",
      "qdmStatus": "discharge",
      "qdmTitle": "Medication, Discharge",
      "qdmVersion": "5.5",
      "recorder": null,
      "refills": null,
      "route": null,
      "supply": null,
      "_type": "QDM::MedicationDischarge"
    }
  ],
  "title": "Test104",
  "updated_at": null,
  "value_set_ids": [
    "5d289cc131fe5f8b5e9bc2f9",
    "5d289cc131fe5f8b5e9bc2fa",
    "5d289cc131fe5f8b5e9bc2fb",
    "5d289cc131fe5f8b5e9bc2fc",
    "5d289cc131fe5f8b5e9bc2fd",
    "5d289cc131fe5f8b5e9bc2fe",
    "5d289cc131fe5f8b5e9bc2ff",
    "5d289cc131fe5f8b5e9bc300",
    "5d289cc131fe5f8b5e9bc301",
    "5d289cc131fe5f8b5e9bc302",
    "5d289cc131fe5f8b5e9bc303",
    "5d289cc131fe5f8b5e9bc304",
    "5d289cc131fe5f8b5e9bc305",
    "5d289cc131fe5f8b5e9bc306",
    "5d289cc131fe5f8b5e9bc307",
    "5d289cc131fe5f8b5e9bc308",
    "5d289cc131fe5f8b5e9bc309",
    "5d289cc131fe5f8b5e9bc30a",
    "5d289cc131fe5f8b5e9bc30b",
    "5d289cc131fe5f8b5e9bc30c",
    "5d289cc131fe5f8b5e9bc30d",
    "5d289cc131fe5f8b5e9bc30e"
  ]
}