{
  "calculate_sdes": null,
  "calculation_method": "EPISODE_OF_CARE",
  "cms_id": "CMS107v6",
  "component": false,
  "component_hqmf_set_ids": [

  ],
  "composite": false,
  "composite_hqmf_set_id": null,
  "cql_libraries": [
    {
      "cql": "library StrokeEducation version '6.1.011'\r\n\r\nusing QDM version '5.3'\r\n\r\ninclude TJC_Overall version '7.0.000' called TJC\r\ninclude MATGlobalCommonFunctions version '2.0.000' called Global\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 \"Activation of Emergency Medical System Education\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.377'\r\nvalueset \"Comfort Measures\": 'urn:oid:1.3.6.1.4.1.33895.1.3.0.45'\r\nvalueset \"Discharge To Home Or Police Custody\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.82'\r\nvalueset \"Instructions for Follow Up After Discharge\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.378'\r\nvalueset \"Patient Refusal\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.93'\r\nvalueset \"Prescribed Medications Education\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.379'\r\nvalueset \"Risk Factors Education\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.380'\r\nvalueset \"Warning Signs and Symptoms Education\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.381'\r\nvalueset \"Written Information Given\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.415'\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 \"Comfort Measures During Hospitalization\":\r\n\t\"Encounter With Discharge Status of Discharge To Home Or Police Custody\" A\r\n\t\twith \"Intervention Comfort Measures\" B\r\n\t\t\tsuch that Coalesce(start of B.relevantPeriod, B.authorDatetime)during Global.\"Hospitalization\"(A)\r\n\r\ndefine \"Denominator\":\r\n\t\"Encounter With Discharge Status of Discharge To Home Or Police Custody\"\r\n\r\ndefine \"Denominator Exclusions\":\r\n\t\"Comfort Measures During Hospitalization\"\r\n\r\ndefine \"Encounter With Discharge Status of Discharge To Home Or Police Custody\":\r\n\tTJC.\"Encounter with Principal Diagnosis and Age\" A\r\n\t\twhere A.dischargeDisposition in \"Discharge To Home Or Police Custody\"\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, Order\": \"Comfort Measures\"]\r\n\t\tunion [\"Intervention, Performed\": \"Comfort Measures\"]\r\n\r\ndefine \"Numerator\":\r\n\tdistinct((((\"Encounter With Discharge Status of Discharge To Home Or Police Custody\" A\r\n\t\t\t\t\t\twith [\"Communication: From Provider To Patient\": \"Activation of Emergency Medical System Education\"] B\r\n\t\t\t\t\t\t\tsuch that B.authorDatetime during A.relevantPeriod\r\n\t\t\t\t)\r\n\t\t\t\t\tintersect(\"Encounter With Discharge Status of Discharge To Home Or Police Custody\" A\r\n\t\t\t\t\t\t\twith [\"Communication: From Provider To Patient\": \"Instructions for Follow Up After Discharge\"] C\r\n\t\t\t\t\t\t\t\tsuch that C.authorDatetime during A.relevantPeriod\r\n\t\t\t\t\t)\r\n\t\t\t\t\tintersect(\"Encounter With Discharge Status of Discharge To Home Or Police Custody\" A\r\n\t\t\t\t\t\t\twith [\"Communication: From Provider To Patient\": \"Prescribed Medications Education\"] D\r\n\t\t\t\t\t\t\t\tsuch that D.authorDatetime during A.relevantPeriod\r\n\t\t\t\t\t)\r\n\t\t\t\t\tintersect(\"Encounter With Discharge Status of Discharge To Home Or Police Custody\" A\r\n\t\t\t\t\t\t\twith [\"Communication: From Provider To Patient\": \"Risk Factors Education\"] E\r\n\t\t\t\t\t\t\t\tsuch that E.authorDatetime during A.relevantPeriod\r\n\t\t\t\t\t)\r\n\t\t\t\t\tintersect(\"Encounter With Discharge Status of Discharge To Home Or Police Custody\" A\r\n\t\t\t\t\t\t\twith [\"Communication: From Provider To Patient\": \"Warning Signs and Symptoms Education\"] F\r\n\t\t\t\t\t\t\t\tsuch that F.authorDatetime during A.relevantPeriod\r\n\t\t\t\t\t)\r\n\t\t\t\t\tintersect(\"Encounter With Discharge Status of Discharge To Home Or Police Custody\" A\r\n\t\t\t\t\t\t\twith [\"Communication: From Provider To Patient\": \"Written Information Given\"] G\r\n\t\t\t\t\t\t\t\tsuch that G.authorDatetime during A.relevantPeriod\r\n\t\t\t\t\t)\r\n\t\t\t\t\tunion(\"Written Information Not Done During IP\")\r\n\t\t\t)\r\n\t\t)\r\n\t)\r\n\r\ndefine \"Written Information Not Done During IP\":\r\n\t\"Encounter With Discharge Status of Discharge To Home Or Police Custody\" E\r\n\t\twith \"Written Information Not Given\" W\r\n\t\t\tsuch that W.authorDatetime during E.relevantPeriod\r\n\r\ndefine \"Written Information Not Given\":\r\n\t[\"Communication: From Provider To Patient, Not Done\": \"Written Information Given\"] W\r\n\t\twhere W.negationRationale in \"Patient Refusal\"\r\n",
      "elm": {
        "library": {
          "identifier": {
            "id": "StrokeEducation",
            "version": "6.1.011"
          },
          "schemaIdentifier": {
            "id": "urn:hl7-org:elm",
            "version": "r1"
          },
          "usings": {
            "def": [
              {
                "localIdentifier": "System",
                "uri": "urn:hl7-org:elm-types:r1"
              },
              {
                "localId": "1",
                "localIdentifier": "QDM",
                "uri": "urn:healthit-gov:qdm:v5_3",
                "version": "5.3"
              }
            ]
          },
          "includes": {
            "def": [
              {
                "localId": "2",
                "localIdentifier": "TJC",
                "path": "TJC_Overall",
                "version": "7.0.000"
              },
              {
                "localId": "3",
                "localIdentifier": "Global",
                "path": "MATGlobalCommonFunctions",
                "version": "2.0.000"
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "4",
                "name": "ONC Administrative Sex",
                "id": "2.16.840.1.113762.1.4.1",
                "accessLevel": "Public"
              },
              {
                "localId": "5",
                "name": "Race",
                "id": "2.16.840.1.114222.4.11.836",
                "accessLevel": "Public"
              },
              {
                "localId": "6",
                "name": "Ethnicity",
                "id": "2.16.840.1.114222.4.11.837",
                "accessLevel": "Public"
              },
              {
                "localId": "7",
                "name": "Payer",
                "id": "2.16.840.1.114222.4.11.3591",
                "accessLevel": "Public"
              },
              {
                "localId": "8",
                "name": "Activation of Emergency Medical System Education",
                "id": "2.16.840.1.113883.3.117.1.7.1.377",
                "accessLevel": "Public"
              },
              {
                "localId": "9",
                "name": "Comfort Measures",
                "id": "1.3.6.1.4.1.33895.1.3.0.45",
                "accessLevel": "Public"
              },
              {
                "localId": "10",
                "name": "Discharge To Home Or Police Custody",
                "id": "2.16.840.1.113883.3.117.1.7.1.82",
                "accessLevel": "Public"
              },
              {
                "localId": "11",
                "name": "Instructions for Follow Up After Discharge",
                "id": "2.16.840.1.113883.3.117.1.7.1.378",
                "accessLevel": "Public"
              },
              {
                "localId": "12",
                "name": "Patient Refusal",
                "id": "2.16.840.1.113883.3.117.1.7.1.93",
                "accessLevel": "Public"
              },
              {
                "localId": "13",
                "name": "Prescribed Medications Education",
                "id": "2.16.840.1.113883.3.117.1.7.1.379",
                "accessLevel": "Public"
              },
              {
                "localId": "14",
                "name": "Risk Factors Education",
                "id": "2.16.840.1.113883.3.117.1.7.1.380",
                "accessLevel": "Public"
              },
              {
                "localId": "15",
                "name": "Warning Signs and Symptoms Education",
                "id": "2.16.840.1.113883.3.117.1.7.1.381",
                "accessLevel": "Public"
              },
              {
                "localId": "16",
                "name": "Written Information Given",
                "id": "2.16.840.1.113883.3.117.1.7.1.415",
                "accessLevel": "Public"
              }
            ]
          },
          "statements": {
            "def": [
              {
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "18",
                "name": "SDE Ethnicity",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "18",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Ethnicity\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "17",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Ethnicity\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Ethnicity\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "17",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicEthnicity",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Ethnicity",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "20",
                "name": "SDE Payer",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "20",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Payer\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "19",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Payer\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Payer\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "19",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicPayer",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Payer",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "22",
                "name": "SDE Race",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "22",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Race\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "21",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Race\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Race\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "21",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicRace",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Race",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "24",
                "name": "SDE Sex",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "24",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Sex\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "23",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Sex\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"ONC Administrative Sex\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "23",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicSex",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "ONC Administrative Sex",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "32",
                "name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "32",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "31",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "26",
                                  "s": [
                                    {
                                      "r": "25",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "TJC",
                                                ".",
                                                "\"Encounter with Principal Diagnosis and Age\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "A"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\r\n\t\t"
                              ]
                            },
                            {
                              "r": "30",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "30",
                                  "s": [
                                    {
                                      "r": "28",
                                      "s": [
                                        {
                                          "r": "27",
                                          "s": [
                                            {
                                              "value": [
                                                "A"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "28",
                                          "s": [
                                            {
                                              "value": [
                                                "dischargeDisposition"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " in "
                                      ]
                                    },
                                    {
                                      "r": "29",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Discharge To Home Or Police Custody\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "31",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "26",
                      "alias": "A",
                      "expression": {
                        "localId": "25",
                        "name": "Encounter with Principal Diagnosis and Age",
                        "libraryName": "TJC",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "30",
                    "type": "InValueSet",
                    "code": {
                      "localId": "28",
                      "path": "dischargeDisposition",
                      "scope": "A",
                      "type": "Property"
                    },
                    "valueset": {
                      "localId": "29",
                      "name": "Discharge To Home Or Police Custody"
                    }
                  }
                }
              },
              {
                "localId": "38",
                "name": "Intervention Comfort Measures",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "38",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Intervention Comfort Measures\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "37",
                          "s": [
                            {
                              "r": "35",
                              "s": [
                                {
                                  "value": [
                                    "[",
                                    "\"Intervention, Order\"",
                                    ": "
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "\"Comfort Measures\""
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "]"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\r\n\t\tunion "
                              ]
                            },
                            {
                              "r": "36",
                              "s": [
                                {
                                  "value": [
                                    "[",
                                    "\"Intervention, Performed\"",
                                    ": "
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "\"Comfort Measures\""
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "]"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "37",
                  "type": "Union",
                  "operand": [
                    {
                      "type": "As",
                      "operand": {
                        "localId": "35",
                        "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"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "type": "As",
                      "operand": {
                        "localId": "36",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                        "templateId": "PositiveInterventionPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Comfort Measures",
                          "type": "ValueSetRef"
                        }
                      },
                      "asTypeSpecifier": {
                        "type": "ListTypeSpecifier",
                        "elementType": {
                          "type": [
                            {
                              "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                              "type": "NamedTypeSpecifier"
                            },
                            {
                              "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionOrder",
                              "type": "NamedTypeSpecifier"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              },
              {
                "localId": "53",
                "name": "Comfort Measures During Hospitalization",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "53",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Comfort Measures During Hospitalization\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "52",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "34",
                                  "s": [
                                    {
                                      "r": "33",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "A"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\r\n\t\t"
                              ]
                            },
                            {
                              "r": "51",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "40",
                                  "s": [
                                    {
                                      "r": "39",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Intervention Comfort Measures\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "B"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\r\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "50",
                                  "s": [
                                    {
                                      "r": "46",
                                      "s": [
                                        {
                                          "value": [
                                            "Coalesce",
                                            "("
                                          ]
                                        },
                                        {
                                          "r": "43",
                                          "s": [
                                            {
                                              "value": [
                                                "start of "
                                              ]
                                            },
                                            {
                                              "r": "42",
                                              "s": [
                                                {
                                                  "r": "41",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "B"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "42",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ", "
                                          ]
                                        },
                                        {
                                          "r": "45",
                                          "s": [
                                            {
                                              "r": "44",
                                              "s": [
                                                {
                                                  "value": [
                                                    "B"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "45",
                                              "s": [
                                                {
                                                  "value": [
                                                    "authorDatetime"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            ")"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "r": "50",
                                      "value": [
                                        "during",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "49",
                                      "s": [
                                        {
                                          "r": "47",
                                          "s": [
                                            {
                                              "value": [
                                                "Global"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "49",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Hospitalization\"",
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "48",
                                              "s": [
                                                {
                                                  "value": [
                                                    "A"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "52",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "34",
                      "alias": "A",
                      "expression": {
                        "localId": "33",
                        "name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "51",
                      "alias": "B",
                      "type": "With",
                      "expression": {
                        "localId": "39",
                        "name": "Intervention Comfort Measures",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "50",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "46",
                            "type": "Coalesce",
                            "operand": [
                              {
                                "localId": "43",
                                "type": "Start",
                                "operand": {
                                  "localId": "42",
                                  "path": "relevantPeriod",
                                  "scope": "B",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "45",
                                "path": "authorDatetime",
                                "scope": "B",
                                "type": "Property"
                              }
                            ]
                          },
                          {
                            "localId": "49",
                            "name": "Hospitalization",
                            "libraryName": "Global",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "48",
                                "name": "A",
                                "type": "AliasRef"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "55",
                "name": "Denominator",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "55",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "54",
                          "s": [
                            {
                              "value": [
                                "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "54",
                  "name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "57",
                "name": "Denominator Exclusions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "57",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator Exclusions\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "56",
                          "s": [
                            {
                              "value": [
                                "\"Comfort Measures During Hospitalization\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "56",
                  "name": "Comfort Measures During Hospitalization",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "60",
                "name": "Initial Population",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "60",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Initial Population\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "59",
                          "s": [
                            {
                              "r": "58",
                              "s": [
                                {
                                  "value": [
                                    "TJC"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "."
                              ]
                            },
                            {
                              "r": "59",
                              "s": [
                                {
                                  "value": [
                                    "\"Encounter with Principal Diagnosis and Age\""
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "59",
                  "name": "Encounter with Principal Diagnosis and Age",
                  "libraryName": "TJC",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "141",
                "name": "Written Information Not Given",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "141",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Written Information Not Given\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "140",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "135",
                                  "s": [
                                    {
                                      "r": "134",
                                      "s": [
                                        {
                                          "r": "134",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Communication: From Provider To Patient, Not Done\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Written Information Given\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "W"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\r\n\t\t"
                              ]
                            },
                            {
                              "r": "139",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "139",
                                  "s": [
                                    {
                                      "r": "137",
                                      "s": [
                                        {
                                          "r": "136",
                                          "s": [
                                            {
                                              "value": [
                                                "W"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "137",
                                          "s": [
                                            {
                                              "value": [
                                                "negationRationale"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " in "
                                      ]
                                    },
                                    {
                                      "r": "138",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Patient Refusal\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "140",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "135",
                      "alias": "W",
                      "expression": {
                        "localId": "134",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}NegativeCommunicationFromProviderToPatient",
                        "templateId": "NegativeCommunicationFromProviderToPatient",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Written Information Given",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "139",
                    "type": "InValueSet",
                    "code": {
                      "localId": "137",
                      "path": "negationRationale",
                      "scope": "W",
                      "type": "Property"
                    },
                    "valueset": {
                      "localId": "138",
                      "name": "Patient Refusal"
                    }
                  }
                }
              },
              {
                "localId": "151",
                "name": "Written Information Not Done During IP",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "151",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Written Information Not Done During IP\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "150",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "133",
                                  "s": [
                                    {
                                      "r": "132",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "E"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\r\n\t\t"
                              ]
                            },
                            {
                              "r": "149",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "143",
                                  "s": [
                                    {
                                      "r": "142",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Written Information Not Given\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "W"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\r\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "148",
                                  "s": [
                                    {
                                      "r": "145",
                                      "s": [
                                        {
                                          "r": "144",
                                          "s": [
                                            {
                                              "value": [
                                                "W"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "145",
                                          "s": [
                                            {
                                              "value": [
                                                "authorDatetime"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "during",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "147",
                                      "s": [
                                        {
                                          "r": "146",
                                          "s": [
                                            {
                                              "value": [
                                                "E"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "147",
                                          "s": [
                                            {
                                              "value": [
                                                "relevantPeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "150",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "133",
                      "alias": "E",
                      "expression": {
                        "localId": "132",
                        "name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "149",
                      "alias": "W",
                      "type": "With",
                      "expression": {
                        "localId": "142",
                        "name": "Written Information Not Given",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "148",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "145",
                            "path": "authorDatetime",
                            "scope": "W",
                            "type": "Property"
                          },
                          {
                            "localId": "147",
                            "path": "relevantPeriod",
                            "scope": "E",
                            "type": "Property"
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "155",
                "name": "Numerator",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "155",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Numerator\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "154",
                          "s": [
                            {
                              "value": [
                                "distinct",
                                "("
                              ]
                            },
                            {
                              "r": "153",
                              "s": [
                                {
                                  "value": [
                                    "("
                                  ]
                                },
                                {
                                  "r": "153",
                                  "s": [
                                    {
                                      "value": [
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "153",
                                      "s": [
                                        {
                                          "r": "131",
                                          "s": [
                                            {
                                              "r": "119",
                                              "s": [
                                                {
                                                  "r": "107",
                                                  "s": [
                                                    {
                                                      "r": "95",
                                                      "s": [
                                                        {
                                                          "r": "83",
                                                          "s": [
                                                            {
                                                              "r": "71",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "("
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "71",
                                                                  "s": [
                                                                    {
                                                                      "s": [
                                                                        {
                                                                          "r": "62",
                                                                          "s": [
                                                                            {
                                                                              "r": "61",
                                                                              "s": [
                                                                                {
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                " ",
                                                                                "A"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "\r\n\t\t\t\t\t\t"
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "70",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "with "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "64",
                                                                          "s": [
                                                                            {
                                                                              "r": "63",
                                                                              "s": [
                                                                                {
                                                                                  "r": "63",
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "[",
                                                                                        "\"Communication: From Provider To Patient\"",
                                                                                        ": "
                                                                                      ]
                                                                                    },
                                                                                    {
                                                                                      "s": [
                                                                                        {
                                                                                          "value": [
                                                                                            "\"Activation of Emergency Medical System Education\""
                                                                                          ]
                                                                                        }
                                                                                      ]
                                                                                    },
                                                                                    {
                                                                                      "value": [
                                                                                        "]"
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                " ",
                                                                                "B"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "\r\n\t\t\t\t\t\t\tsuch that "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "69",
                                                                          "s": [
                                                                            {
                                                                              "r": "66",
                                                                              "s": [
                                                                                {
                                                                                  "r": "65",
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "B"
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "value": [
                                                                                    "."
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "r": "66",
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "authorDatetime"
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                " ",
                                                                                "during",
                                                                                " "
                                                                              ]
                                                                            },
                                                                            {
                                                                              "r": "68",
                                                                              "s": [
                                                                                {
                                                                                  "r": "67",
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "A"
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "value": [
                                                                                    "."
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "r": "68",
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "relevantPeriod"
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "\r\n\t\t\t\t)"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\r\n\t\t\t\t\tintersect"
                                                              ]
                                                            },
                                                            {
                                                              "r": "82",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "("
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "82",
                                                                  "s": [
                                                                    {
                                                                      "s": [
                                                                        {
                                                                          "r": "73",
                                                                          "s": [
                                                                            {
                                                                              "r": "72",
                                                                              "s": [
                                                                                {
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                " ",
                                                                                "A"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "\r\n\t\t\t\t\t\t\t"
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "81",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "with "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "75",
                                                                          "s": [
                                                                            {
                                                                              "r": "74",
                                                                              "s": [
                                                                                {
                                                                                  "r": "74",
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "[",
                                                                                        "\"Communication: From Provider To Patient\"",
                                                                                        ": "
                                                                                      ]
                                                                                    },
                                                                                    {
                                                                                      "s": [
                                                                                        {
                                                                                          "value": [
                                                                                            "\"Instructions for Follow Up After Discharge\""
                                                                                          ]
                                                                                        }
                                                                                      ]
                                                                                    },
                                                                                    {
                                                                                      "value": [
                                                                                        "]"
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                " ",
                                                                                "C"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "\r\n\t\t\t\t\t\t\t\tsuch that "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "80",
                                                                          "s": [
                                                                            {
                                                                              "r": "77",
                                                                              "s": [
                                                                                {
                                                                                  "r": "76",
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "C"
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "value": [
                                                                                    "."
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "r": "77",
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "authorDatetime"
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                " ",
                                                                                "during",
                                                                                " "
                                                                              ]
                                                                            },
                                                                            {
                                                                              "r": "79",
                                                                              "s": [
                                                                                {
                                                                                  "r": "78",
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "A"
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "value": [
                                                                                    "."
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "r": "79",
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "relevantPeriod"
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "\r\n\t\t\t\t\t)"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\r\n\t\t\t\t\tintersect"
                                                          ]
                                                        },
                                                        {
                                                          "r": "94",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "("
                                                              ]
                                                            },
                                                            {
                                                              "r": "94",
                                                              "s": [
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "r": "85",
                                                                      "s": [
                                                                        {
                                                                          "r": "84",
                                                                          "s": [
                                                                            {
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            " ",
                                                                            "A"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "\r\n\t\t\t\t\t\t\t"
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "93",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "with "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "87",
                                                                      "s": [
                                                                        {
                                                                          "r": "86",
                                                                          "s": [
                                                                            {
                                                                              "r": "86",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "[",
                                                                                    "\"Communication: From Provider To Patient\"",
                                                                                    ": "
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "s": [
                                                                                    {
                                                                                      "value": [
                                                                                        "\"Prescribed Medications Education\""
                                                                                      ]
                                                                                    }
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "value": [
                                                                                    "]"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            " ",
                                                                            "D"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "\r\n\t\t\t\t\t\t\t\tsuch that "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "92",
                                                                      "s": [
                                                                        {
                                                                          "r": "89",
                                                                          "s": [
                                                                            {
                                                                              "r": "88",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "D"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                "."
                                                                              ]
                                                                            },
                                                                            {
                                                                              "r": "89",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "authorDatetime"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            " ",
                                                                            "during",
                                                                            " "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "91",
                                                                          "s": [
                                                                            {
                                                                              "r": "90",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "A"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                "."
                                                                              ]
                                                                            },
                                                                            {
                                                                              "r": "91",
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "relevantPeriod"
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\r\n\t\t\t\t\t)"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\r\n\t\t\t\t\tintersect"
                                                      ]
                                                    },
                                                    {
                                                      "r": "106",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "("
                                                          ]
                                                        },
                                                        {
                                                          "r": "106",
                                                          "s": [
                                                            {
                                                              "s": [
                                                                {
                                                                  "r": "97",
                                                                  "s": [
                                                                    {
                                                                      "r": "96",
                                                                      "s": [
                                                                        {
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " ",
                                                                        "A"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\r\n\t\t\t\t\t\t\t"
                                                              ]
                                                            },
                                                            {
                                                              "r": "105",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "with "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "99",
                                                                  "s": [
                                                                    {
                                                                      "r": "98",
                                                                      "s": [
                                                                        {
                                                                          "r": "98",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "[",
                                                                                "\"Communication: From Provider To Patient\"",
                                                                                ": "
                                                                              ]
                                                                            },
                                                                            {
                                                                              "s": [
                                                                                {
                                                                                  "value": [
                                                                                    "\"Risk Factors Education\""
                                                                                  ]
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "value": [
                                                                                "]"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " ",
                                                                        "E"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "\r\n\t\t\t\t\t\t\t\tsuch that "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "104",
                                                                  "s": [
                                                                    {
                                                                      "r": "101",
                                                                      "s": [
                                                                        {
                                                                          "r": "100",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "E"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "."
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "101",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "authorDatetime"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " ",
                                                                        "during",
                                                                        " "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "103",
                                                                      "s": [
                                                                        {
                                                                          "r": "102",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "A"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "."
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "103",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "relevantPeriod"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\r\n\t\t\t\t\t)"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\r\n\t\t\t\t\tintersect"
                                                  ]
                                                },
                                                {
                                                  "r": "118",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "("
                                                      ]
                                                    },
                                                    {
                                                      "r": "118",
                                                      "s": [
                                                        {
                                                          "s": [
                                                            {
                                                              "r": "109",
                                                              "s": [
                                                                {
                                                                  "r": "108",
                                                                  "s": [
                                                                    {
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " ",
                                                                    "A"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\r\n\t\t\t\t\t\t\t"
                                                          ]
                                                        },
                                                        {
                                                          "r": "117",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "with "
                                                              ]
                                                            },
                                                            {
                                                              "r": "111",
                                                              "s": [
                                                                {
                                                                  "r": "110",
                                                                  "s": [
                                                                    {
                                                                      "r": "110",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "[",
                                                                            "\"Communication: From Provider To Patient\"",
                                                                            ": "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "\"Warning Signs and Symptoms Education\""
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "]"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " ",
                                                                    "F"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\r\n\t\t\t\t\t\t\t\tsuch that "
                                                              ]
                                                            },
                                                            {
                                                              "r": "116",
                                                              "s": [
                                                                {
                                                                  "r": "113",
                                                                  "s": [
                                                                    {
                                                                      "r": "112",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "F"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "."
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "113",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "authorDatetime"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " ",
                                                                    "during",
                                                                    " "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "115",
                                                                  "s": [
                                                                    {
                                                                      "r": "114",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "A"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "."
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "115",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "relevantPeriod"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\r\n\t\t\t\t\t)"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\r\n\t\t\t\t\tintersect"
                                              ]
                                            },
                                            {
                                              "r": "130",
                                              "s": [
                                                {
                                                  "value": [
                                                    "("
                                                  ]
                                                },
                                                {
                                                  "r": "130",
                                                  "s": [
                                                    {
                                                      "s": [
                                                        {
                                                          "r": "121",
                                                          "s": [
                                                            {
                                                              "r": "120",
                                                              "s": [
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " ",
                                                                "A"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\r\n\t\t\t\t\t\t\t"
                                                      ]
                                                    },
                                                    {
                                                      "r": "129",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "with "
                                                          ]
                                                        },
                                                        {
                                                          "r": "123",
                                                          "s": [
                                                            {
                                                              "r": "122",
                                                              "s": [
                                                                {
                                                                  "r": "122",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "[",
                                                                        "\"Communication: From Provider To Patient\"",
                                                                        ": "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "\"Written Information Given\""
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "]"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " ",
                                                                "G"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\r\n\t\t\t\t\t\t\t\tsuch that "
                                                          ]
                                                        },
                                                        {
                                                          "r": "128",
                                                          "s": [
                                                            {
                                                              "r": "125",
                                                              "s": [
                                                                {
                                                                  "r": "124",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "G"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "125",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "authorDatetime"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " ",
                                                                "during",
                                                                " "
                                                              ]
                                                            },
                                                            {
                                                              "r": "127",
                                                              "s": [
                                                                {
                                                                  "r": "126",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "A"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "127",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "relevantPeriod"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\r\n\t\t\t\t\t)"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\r\n\t\t\t\t\tunion"
                                          ]
                                        },
                                        {
                                          "r": "152",
                                          "s": [
                                            {
                                              "value": [
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "152",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Written Information Not Done During IP\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\r\n\t\t\t)"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\r\n\t\t)"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\r\n\t)"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "154",
                  "type": "Distinct",
                  "operand": {
                    "localId": "153",
                    "type": "Union",
                    "operand": [
                      {
                        "localId": "131",
                        "type": "Intersect",
                        "operand": [
                          {
                            "localId": "119",
                            "type": "Intersect",
                            "operand": [
                              {
                                "localId": "107",
                                "type": "Intersect",
                                "operand": [
                                  {
                                    "localId": "95",
                                    "type": "Intersect",
                                    "operand": [
                                      {
                                        "localId": "83",
                                        "type": "Intersect",
                                        "operand": [
                                          {
                                            "localId": "71",
                                            "type": "Query",
                                            "source": [
                                              {
                                                "localId": "62",
                                                "alias": "A",
                                                "expression": {
                                                  "localId": "61",
                                                  "name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
                                                  "type": "ExpressionRef"
                                                }
                                              }
                                            ],
                                            "relationship": [
                                              {
                                                "localId": "70",
                                                "alias": "B",
                                                "type": "With",
                                                "expression": {
                                                  "localId": "63",
                                                  "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveCommunicationFromProviderToPatient",
                                                  "templateId": "PositiveCommunicationFromProviderToPatient",
                                                  "codeProperty": "code",
                                                  "type": "Retrieve",
                                                  "codes": {
                                                    "name": "Activation of Emergency Medical System Education",
                                                    "type": "ValueSetRef"
                                                  }
                                                },
                                                "suchThat": {
                                                  "localId": "69",
                                                  "type": "In",
                                                  "operand": [
                                                    {
                                                      "localId": "66",
                                                      "path": "authorDatetime",
                                                      "scope": "B",
                                                      "type": "Property"
                                                    },
                                                    {
                                                      "localId": "68",
                                                      "path": "relevantPeriod",
                                                      "scope": "A",
                                                      "type": "Property"
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "localId": "82",
                                            "type": "Query",
                                            "source": [
                                              {
                                                "localId": "73",
                                                "alias": "A",
                                                "expression": {
                                                  "localId": "72",
                                                  "name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
                                                  "type": "ExpressionRef"
                                                }
                                              }
                                            ],
                                            "relationship": [
                                              {
                                                "localId": "81",
                                                "alias": "C",
                                                "type": "With",
                                                "expression": {
                                                  "localId": "74",
                                                  "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveCommunicationFromProviderToPatient",
                                                  "templateId": "PositiveCommunicationFromProviderToPatient",
                                                  "codeProperty": "code",
                                                  "type": "Retrieve",
                                                  "codes": {
                                                    "name": "Instructions for Follow Up After Discharge",
                                                    "type": "ValueSetRef"
                                                  }
                                                },
                                                "suchThat": {
                                                  "localId": "80",
                                                  "type": "In",
                                                  "operand": [
                                                    {
                                                      "localId": "77",
                                                      "path": "authorDatetime",
                                                      "scope": "C",
                                                      "type": "Property"
                                                    },
                                                    {
                                                      "localId": "79",
                                                      "path": "relevantPeriod",
                                                      "scope": "A",
                                                      "type": "Property"
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "localId": "94",
                                        "type": "Query",
                                        "source": [
                                          {
                                            "localId": "85",
                                            "alias": "A",
                                            "expression": {
                                              "localId": "84",
                                              "name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
                                              "type": "ExpressionRef"
                                            }
                                          }
                                        ],
                                        "relationship": [
                                          {
                                            "localId": "93",
                                            "alias": "D",
                                            "type": "With",
                                            "expression": {
                                              "localId": "86",
                                              "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveCommunicationFromProviderToPatient",
                                              "templateId": "PositiveCommunicationFromProviderToPatient",
                                              "codeProperty": "code",
                                              "type": "Retrieve",
                                              "codes": {
                                                "name": "Prescribed Medications Education",
                                                "type": "ValueSetRef"
                                              }
                                            },
                                            "suchThat": {
                                              "localId": "92",
                                              "type": "In",
                                              "operand": [
                                                {
                                                  "localId": "89",
                                                  "path": "authorDatetime",
                                                  "scope": "D",
                                                  "type": "Property"
                                                },
                                                {
                                                  "localId": "91",
                                                  "path": "relevantPeriod",
                                                  "scope": "A",
                                                  "type": "Property"
                                                }
                                              ]
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "localId": "106",
                                    "type": "Query",
                                    "source": [
                                      {
                                        "localId": "97",
                                        "alias": "A",
                                        "expression": {
                                          "localId": "96",
                                          "name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
                                          "type": "ExpressionRef"
                                        }
                                      }
                                    ],
                                    "relationship": [
                                      {
                                        "localId": "105",
                                        "alias": "E",
                                        "type": "With",
                                        "expression": {
                                          "localId": "98",
                                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveCommunicationFromProviderToPatient",
                                          "templateId": "PositiveCommunicationFromProviderToPatient",
                                          "codeProperty": "code",
                                          "type": "Retrieve",
                                          "codes": {
                                            "name": "Risk Factors Education",
                                            "type": "ValueSetRef"
                                          }
                                        },
                                        "suchThat": {
                                          "localId": "104",
                                          "type": "In",
                                          "operand": [
                                            {
                                              "localId": "101",
                                              "path": "authorDatetime",
                                              "scope": "E",
                                              "type": "Property"
                                            },
                                            {
                                              "localId": "103",
                                              "path": "relevantPeriod",
                                              "scope": "A",
                                              "type": "Property"
                                            }
                                          ]
                                        }
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "localId": "118",
                                "type": "Query",
                                "source": [
                                  {
                                    "localId": "109",
                                    "alias": "A",
                                    "expression": {
                                      "localId": "108",
                                      "name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
                                      "type": "ExpressionRef"
                                    }
                                  }
                                ],
                                "relationship": [
                                  {
                                    "localId": "117",
                                    "alias": "F",
                                    "type": "With",
                                    "expression": {
                                      "localId": "110",
                                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveCommunicationFromProviderToPatient",
                                      "templateId": "PositiveCommunicationFromProviderToPatient",
                                      "codeProperty": "code",
                                      "type": "Retrieve",
                                      "codes": {
                                        "name": "Warning Signs and Symptoms Education",
                                        "type": "ValueSetRef"
                                      }
                                    },
                                    "suchThat": {
                                      "localId": "116",
                                      "type": "In",
                                      "operand": [
                                        {
                                          "localId": "113",
                                          "path": "authorDatetime",
                                          "scope": "F",
                                          "type": "Property"
                                        },
                                        {
                                          "localId": "115",
                                          "path": "relevantPeriod",
                                          "scope": "A",
                                          "type": "Property"
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "130",
                            "type": "Query",
                            "source": [
                              {
                                "localId": "121",
                                "alias": "A",
                                "expression": {
                                  "localId": "120",
                                  "name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
                                  "type": "ExpressionRef"
                                }
                              }
                            ],
                            "relationship": [
                              {
                                "localId": "129",
                                "alias": "G",
                                "type": "With",
                                "expression": {
                                  "localId": "122",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveCommunicationFromProviderToPatient",
                                  "templateId": "PositiveCommunicationFromProviderToPatient",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Written Information Given",
                                    "type": "ValueSetRef"
                                  }
                                },
                                "suchThat": {
                                  "localId": "128",
                                  "type": "In",
                                  "operand": [
                                    {
                                      "localId": "125",
                                      "path": "authorDatetime",
                                      "scope": "G",
                                      "type": "Property"
                                    },
                                    {
                                      "localId": "127",
                                      "path": "relevantPeriod",
                                      "scope": "A",
                                      "type": "Property"
                                    }
                                  ]
                                }
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "localId": "152",
                        "name": "Written Information Not Done During IP",
                        "type": "ExpressionRef"
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "statements": [
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"SDE Ethnicity\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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 \"Encounter With Discharge Status of Discharge To Home Or Police Custody\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "TJC.\"Encounter with Principal Diagnosis and Age\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "25"
                              },
                              {
                                "children": [
                                  {
                                    "text": " A"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "26"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "&#13;\n\t\t"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "A"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "27"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "dischargeDisposition"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "28"
                                  }
                                ],
                                "ref_id": "28"
                              },
                              {
                                "children": [
                                  {
                                    "text": " in "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Discharge To Home Or Police Custody\""
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "29"
                              }
                            ],
                            "ref_id": "30"
                          }
                        ],
                        "ref_id": "30"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "31"
                  }
                ],
                "ref_id": "32"
              }
            ],
            "define_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Intervention Comfort Measures\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "[\"Intervention, Order\": "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Comfort Measures\""
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": " ]"
                              }
                            ]
                          }
                        ],
                        "node_type": "Retrieve",
                        "ref_id": "35"
                      },
                      {
                        "children": [
                          {
                            "text": "&#13;\n\t\tunion "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "[\"Intervention, Performed\": "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Comfort Measures\""
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": " ]"
                              }
                            ]
                          }
                        ],
                        "node_type": "Retrieve",
                        "ref_id": "36"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "37"
                  }
                ],
                "ref_id": "38"
              }
            ],
            "define_name": "Intervention Comfort Measures"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Comfort Measures During Hospitalization\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "33"
                              },
                              {
                                "children": [
                                  {
                                    "text": " A"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "34"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "&#13;\n\t\t"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Intervention Comfort Measures\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "39"
                              },
                              {
                                "children": [
                                  {
                                    "text": " B"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "40"
                          },
                          {
                            "children": [
                              {
                                "text": "&#13;\n\t\t\tsuch that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Coalesce("
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": " start of "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "B"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "41"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "42"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "42"
                                      }
                                    ],
                                    "node_type": "Start",
                                    "ref_id": "43"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " , "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "B"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "44"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "authorDatetime"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "45"
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "45"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Coalesce",
                                "ref_id": "46"
                              },
                              {
                                "children": [
                                  {
                                    "text": " during "
                                  }
                                ],
                                "node_type": "In",
                                "ref_id": "50"
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Global"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "47"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Hospitalization\"("
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": " A"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "AliasRef",
                                        "ref_id": "48"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "FunctionRef",
                                    "ref_id": "49"
                                  }
                                ],
                                "node_type": "FunctionRef",
                                "ref_id": "49"
                              }
                            ],
                            "node_type": "In",
                            "ref_id": "50"
                          }
                        ],
                        "ref_id": "51"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "52"
                  }
                ],
                "ref_id": "53"
              }
            ],
            "define_name": "Comfort Measures During Hospitalization"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "54"
                  }
                ],
                "ref_id": "55"
              }
            ],
            "define_name": "Denominator"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator Exclusions\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Comfort Measures During Hospitalization\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "56"
                  }
                ],
                "ref_id": "57"
              }
            ],
            "define_name": "Denominator Exclusions"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Initial Population\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "TJC"
                              }
                            ]
                          }
                        ],
                        "ref_id": "58"
                      },
                      {
                        "children": [
                          {
                            "text": "."
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Encounter with Principal Diagnosis and Age\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "59"
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "59"
                  }
                ],
                "ref_id": "60"
              }
            ],
            "define_name": "Initial Population"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Written Information Not Given\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Communication: From Provider To Patient, Not Done\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Written Information Given\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " ]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "134"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "134"
                              },
                              {
                                "children": [
                                  {
                                    "text": " W"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "135"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "&#13;\n\t\t"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "W"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "136"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "negationRationale"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "137"
                                  }
                                ],
                                "ref_id": "137"
                              },
                              {
                                "children": [
                                  {
                                    "text": " in "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Patient Refusal\""
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "138"
                              }
                            ],
                            "ref_id": "139"
                          }
                        ],
                        "ref_id": "139"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "140"
                  }
                ],
                "ref_id": "141"
              }
            ],
            "define_name": "Written Information Not Given"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Written Information Not Done During IP\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "132"
                              },
                              {
                                "children": [
                                  {
                                    "text": " E"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "133"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "&#13;\n\t\t"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Written Information Not Given\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "142"
                              },
                              {
                                "children": [
                                  {
                                    "text": " W"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "143"
                          },
                          {
                            "children": [
                              {
                                "text": "&#13;\n\t\t\tsuch that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "W"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "144"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "authorDatetime"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "145"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "145"
                              },
                              {
                                "children": [
                                  {
                                    "text": " during "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "E"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "146"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "relevantPeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "147"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "147"
                              }
                            ],
                            "node_type": "In",
                            "ref_id": "148"
                          }
                        ],
                        "ref_id": "149"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "150"
                  }
                ],
                "ref_id": "151"
              }
            ],
            "define_name": "Written Information Not Done During IP"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Numerator\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "distinct("
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": " ("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": " ("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " ("
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": " \"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "node_type": "ExpressionRef",
                                                                        "ref_id": "61"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": " A"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "62"
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "&#13;\n\t\t\t\t\t\t"
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "with "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "[\"Communication: From Provider To Patient\": "
                                                                                  }
                                                                                ]
                                                                              },
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "children": [
                                                                                      {
                                                                                        "text": "\"Activation of Emergency Medical System Education\""
                                                                                      }
                                                                                    ]
                                                                                  }
                                                                                ]
                                                                              },
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": " ]"
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ],
                                                                            "node_type": "Retrieve",
                                                                            "ref_id": "63"
                                                                          }
                                                                        ],
                                                                        "node_type": "Retrieve",
                                                                        "ref_id": "63"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": " B"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "64"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "&#13;\n\t\t\t\t\t\t\tsuch that "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "B"
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ],
                                                                            "ref_id": "65"
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "."
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "authorDatetime"
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ],
                                                                            "node_type": "Property",
                                                                            "ref_id": "66"
                                                                          }
                                                                        ],
                                                                        "node_type": "Property",
                                                                        "ref_id": "66"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": " during "
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "A"
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ],
                                                                            "ref_id": "67"
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "."
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "relevantPeriod"
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ],
                                                                            "node_type": "Property",
                                                                            "ref_id": "68"
                                                                          }
                                                                        ],
                                                                        "node_type": "Property",
                                                                        "ref_id": "68"
                                                                      }
                                                                    ],
                                                                    "node_type": "In",
                                                                    "ref_id": "69"
                                                                  }
                                                                ],
                                                                "ref_id": "70"
                                                              }
                                                            ],
                                                            "node_type": "Query",
                                                            "ref_id": "71"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "&#13;\n\t\t\t\t)"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Query",
                                                        "ref_id": "71"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "&#13;\n\t\t\t\t\tintersect"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " ("
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": " \"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "node_type": "ExpressionRef",
                                                                        "ref_id": "72"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": " A"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "73"
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "&#13;\n\t\t\t\t\t\t\t"
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "with "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "[\"Communication: From Provider To Patient\": "
                                                                                  }
                                                                                ]
                                                                              },
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "children": [
                                                                                      {
                                                                                        "text": "\"Instructions for Follow Up After Discharge\""
                                                                                      }
                                                                                    ]
                                                                                  }
                                                                                ]
                                                                              },
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": " ]"
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ],
                                                                            "node_type": "Retrieve",
                                                                            "ref_id": "74"
                                                                          }
                                                                        ],
                                                                        "node_type": "Retrieve",
                                                                        "ref_id": "74"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": " C"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "75"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "&#13;\n\t\t\t\t\t\t\t\tsuch that "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "C"
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ],
                                                                            "ref_id": "76"
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "."
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "authorDatetime"
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ],
                                                                            "node_type": "Property",
                                                                            "ref_id": "77"
                                                                          }
                                                                        ],
                                                                        "node_type": "Property",
                                                                        "ref_id": "77"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": " during "
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "A"
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ],
                                                                            "ref_id": "78"
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "."
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "relevantPeriod"
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ],
                                                                            "node_type": "Property",
                                                                            "ref_id": "79"
                                                                          }
                                                                        ],
                                                                        "node_type": "Property",
                                                                        "ref_id": "79"
                                                                      }
                                                                    ],
                                                                    "node_type": "In",
                                                                    "ref_id": "80"
                                                                  }
                                                                ],
                                                                "ref_id": "81"
                                                              }
                                                            ],
                                                            "node_type": "Query",
                                                            "ref_id": "82"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "&#13;\n\t\t\t\t\t)"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Query",
                                                        "ref_id": "82"
                                                      }
                                                    ],
                                                    "node_type": "Intersect",
                                                    "ref_id": "83"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "&#13;\n\t\t\t\t\tintersect"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " ("
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": " \"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                              }
                                                                            ]
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "node_type": "ExpressionRef",
                                                                    "ref_id": "84"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " A"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "85"
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "&#13;\n\t\t\t\t\t\t\t"
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "with "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "[\"Communication: From Provider To Patient\": "
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "children": [
                                                                                  {
                                                                                    "text": "\"Prescribed Medications Education\""
                                                                                  }
                                                                                ]
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": " ]"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "node_type": "Retrieve",
                                                                        "ref_id": "86"
                                                                      }
                                                                    ],
                                                                    "node_type": "Retrieve",
                                                                    "ref_id": "86"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " D"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "87"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "&#13;\n\t\t\t\t\t\t\t\tsuch that "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "D"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "88"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "."
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "authorDatetime"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "node_type": "Property",
                                                                        "ref_id": "89"
                                                                      }
                                                                    ],
                                                                    "node_type": "Property",
                                                                    "ref_id": "89"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " during "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "A"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "ref_id": "90"
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "."
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "relevantPeriod"
                                                                              }
                                                                            ]
                                                                          }
                                                                        ],
                                                                        "node_type": "Property",
                                                                        "ref_id": "91"
                                                                      }
                                                                    ],
                                                                    "node_type": "Property",
                                                                    "ref_id": "91"
                                                                  }
                                                                ],
                                                                "node_type": "In",
                                                                "ref_id": "92"
                                                              }
                                                            ],
                                                            "ref_id": "93"
                                                          }
                                                        ],
                                                        "node_type": "Query",
                                                        "ref_id": "94"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "&#13;\n\t\t\t\t\t)"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Query",
                                                    "ref_id": "94"
                                                  }
                                                ],
                                                "node_type": "Intersect",
                                                "ref_id": "95"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "&#13;\n\t\t\t\t\tintersect"
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": " ("
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": " \"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "ExpressionRef",
                                                                "ref_id": "96"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " A"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "97"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "&#13;\n\t\t\t\t\t\t\t"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "with "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "[\"Communication: From Provider To Patient\": "
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "children": [
                                                                              {
                                                                                "text": "\"Risk Factors Education\""
                                                                              }
                                                                            ]
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": " ]"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "node_type": "Retrieve",
                                                                    "ref_id": "98"
                                                                  }
                                                                ],
                                                                "node_type": "Retrieve",
                                                                "ref_id": "98"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " E"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "99"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "&#13;\n\t\t\t\t\t\t\t\tsuch that "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "E"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "100"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "."
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "authorDatetime"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "node_type": "Property",
                                                                    "ref_id": "101"
                                                                  }
                                                                ],
                                                                "node_type": "Property",
                                                                "ref_id": "101"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " during "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "A"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "102"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "."
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "relevantPeriod"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "node_type": "Property",
                                                                    "ref_id": "103"
                                                                  }
                                                                ],
                                                                "node_type": "Property",
                                                                "ref_id": "103"
                                                              }
                                                            ],
                                                            "node_type": "In",
                                                            "ref_id": "104"
                                                          }
                                                        ],
                                                        "ref_id": "105"
                                                      }
                                                    ],
                                                    "node_type": "Query",
                                                    "ref_id": "106"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "&#13;\n\t\t\t\t\t)"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Query",
                                                "ref_id": "106"
                                              }
                                            ],
                                            "node_type": "Intersect",
                                            "ref_id": "107"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "&#13;\n\t\t\t\t\tintersect"
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": " ("
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " \"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "ExpressionRef",
                                                            "ref_id": "108"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " A"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "109"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "&#13;\n\t\t\t\t\t\t\t"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "with "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "[\"Communication: From Provider To Patient\": "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "\"Warning Signs and Symptoms Education\""
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " ]"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "Retrieve",
                                                                "ref_id": "110"
                                                              }
                                                            ],
                                                            "node_type": "Retrieve",
                                                            "ref_id": "110"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " F"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "111"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "&#13;\n\t\t\t\t\t\t\t\tsuch that "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "F"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "112"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "."
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "authorDatetime"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "Property",
                                                                "ref_id": "113"
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "113"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " during "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "A"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "114"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "."
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "relevantPeriod"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "Property",
                                                                "ref_id": "115"
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "115"
                                                          }
                                                        ],
                                                        "node_type": "In",
                                                        "ref_id": "116"
                                                      }
                                                    ],
                                                    "ref_id": "117"
                                                  }
                                                ],
                                                "node_type": "Query",
                                                "ref_id": "118"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "&#13;\n\t\t\t\t\t)"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Query",
                                            "ref_id": "118"
                                          }
                                        ],
                                        "node_type": "Intersect",
                                        "ref_id": "119"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "&#13;\n\t\t\t\t\tintersect"
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": " ("
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " \"Encounter With Discharge Status of Discharge To Home Or Police Custody\""
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "ExpressionRef",
                                                        "ref_id": "120"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " A"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "121"
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "&#13;\n\t\t\t\t\t\t\t"
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "with "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "[\"Communication: From Provider To Patient\": "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "\"Written Information Given\""
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " ]"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "Retrieve",
                                                            "ref_id": "122"
                                                          }
                                                        ],
                                                        "node_type": "Retrieve",
                                                        "ref_id": "122"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " G"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "123"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "&#13;\n\t\t\t\t\t\t\t\tsuch that "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "G"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "124"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "."
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "authorDatetime"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "125"
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "125"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " during "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "A"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "126"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "."
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "relevantPeriod"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "127"
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "127"
                                                      }
                                                    ],
                                                    "node_type": "In",
                                                    "ref_id": "128"
                                                  }
                                                ],
                                                "ref_id": "129"
                                              }
                                            ],
                                            "node_type": "Query",
                                            "ref_id": "130"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "&#13;\n\t\t\t\t\t)"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Query",
                                        "ref_id": "130"
                                      }
                                    ],
                                    "node_type": "Intersect",
                                    "ref_id": "131"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "&#13;\n\t\t\t\t\tunion"
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": " ("
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": " \"Written Information Not Done During IP\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "152"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ExpressionRef",
                                    "ref_id": "152"
                                  }
                                ],
                                "node_type": "Union",
                                "ref_id": "153"
                              },
                              {
                                "children": [
                                  {
                                    "text": "&#13;\n\t\t\t)"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Union",
                            "ref_id": "153"
                          },
                          {
                            "children": [
                              {
                                "text": "&#13;\n\t\t)"
                              }
                            ]
                          }
                        ],
                        "node_type": "Union",
                        "ref_id": "153"
                      },
                      {
                        "children": [
                          {
                            "text": "&#13;\n\t)"
                          }
                        ]
                      }
                    ],
                    "node_type": "Distinct",
                    "ref_id": "154"
                  }
                ],
                "ref_id": "155"
              }
            ],
            "define_name": "Numerator"
          }
        ],
        "identifier": {
          "id": "StrokeEducation",
          "version": "6.1.011"
        }
      },
      "is_main_library": true,
      "is_top_level": true,
      "library_name": "StrokeEducation",
      "library_version": "6.1.011",
      "statement_dependencies": [
        {
          "statement_name": "Patient"
        },
        {
          "statement_name": "SDE Ethnicity"
        },
        {
          "statement_name": "SDE Payer"
        },
        {
          "statement_name": "SDE Race"
        },
        {
          "statement_name": "SDE Sex"
        },
        {
          "statement_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "TJC_Overall",
              "statement_name": "Encounter with Principal Diagnosis and Age"
            }
          ]
        },
        {
          "statement_name": "Intervention Comfort Measures"
        },
        {
          "statement_name": "Comfort Measures During Hospitalization",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody"
            },
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Intervention Comfort Measures"
            },
            {
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctions",
              "statement_name": "Hospitalization"
            }
          ]
        },
        {
          "statement_name": "Denominator",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody"
            }
          ]
        },
        {
          "statement_name": "Denominator Exclusions",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "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": "Written Information Not Given"
        },
        {
          "statement_name": "Written Information Not Done During IP",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody"
            },
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Written Information Not Given"
            }
          ]
        },
        {
          "statement_name": "Numerator",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody"
            },
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody"
            },
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody"
            },
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody"
            },
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody"
            },
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Encounter With Discharge Status of Discharge To Home Or Police Custody"
            },
            {
              "hqmf_id": null,
              "library_name": "StrokeEducation",
              "statement_name": "Written Information Not Done During IP"
            }
          ]
        }
      ]
    },
    {
      "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",
                "localIdentifier": "QDM",
                "uri": "urn:healthit-gov:qdm:v5_3",
                "version": "5.3"
              }
            ]
          },
          "includes": {
            "def": [
              {
                "localId": "2",
                "localIdentifier": "global",
                "path": "MATGlobalCommonFunctions",
                "version": "2.0.000"
              }
            ]
          },
          "parameters": {
            "def": [
              {
                "localId": "22",
                "name": "Measurement Period",
                "accessLevel": "Public",
                "parameterTypeSpecifier": {
                  "localId": "21",
                  "type": "IntervalTypeSpecifier",
                  "pointType": {
                    "localId": "20",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              }
            ]
          },
          "codeSystems": {
            "def": [
              {
                "localId": "3",
                "name": "LOINC:2.46",
                "id": "2.16.840.1.113883.6.1",
                "version": "urn:hl7:version:2.46",
                "accessLevel": "Public"
              },
              {
                "localId": "4",
                "name": "SNOMEDCT:2016-03",
                "id": "2.16.840.1.113883.6.96",
                "version": "urn:hl7:version:2016-03",
                "accessLevel": "Public"
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "5",
                "name": "Encounter Inpatient",
                "id": "2.16.840.1.113883.3.666.5.307",
                "accessLevel": "Public"
              },
              {
                "localId": "6",
                "name": "Non-Elective Inpatient Encounter",
                "id": "2.16.840.1.113883.3.117.1.7.1.424",
                "accessLevel": "Public"
              },
              {
                "localId": "7",
                "name": "Ischemic Stroke",
                "id": "2.16.840.1.113883.3.117.1.7.1.247",
                "accessLevel": "Public"
              },
              {
                "localId": "8",
                "name": "Hemorrhagic Stroke",
                "id": "2.16.840.1.113883.3.117.1.7.1.212",
                "accessLevel": "Public"
              },
              {
                "localId": "9",
                "name": "Comfort Measures",
                "id": "1.3.6.1.4.1.33895.1.3.0.45",
                "accessLevel": "Public"
              },
              {
                "localId": "10",
                "name": "Emergency Department Visit",
                "id": "2.16.840.1.113883.3.117.1.7.1.292",
                "accessLevel": "Public"
              },
              {
                "localId": "11",
                "name": "Left Against Medical Advice",
                "id": "2.16.840.1.113883.3.117.1.7.1.308",
                "accessLevel": "Public"
              },
              {
                "localId": "12",
                "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",
                "name": "Patient Expired",
                "id": "2.16.840.1.113883.3.117.1.7.1.309",
                "accessLevel": "Public"
              },
              {
                "localId": "14",
                "name": "Discharge To Acute Care Facility",
                "id": "2.16.840.1.113883.3.117.1.7.1.87",
                "accessLevel": "Public"
              },
              {
                "localId": "15",
                "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",
                "name": "Birthdate",
                "id": "21112-8",
                "display": "Birth date",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "16",
                  "name": "LOINC:2.46"
                }
              },
              {
                "localId": "19",
                "name": "Dead",
                "id": "419099009",
                "display": "Dead",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "18",
                  "name": "SNOMEDCT:2016-03"
                }
              }
            ]
          },
          "statements": {
            "def": [
              {
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "35",
                "name": "Non Elective Inpatient Encounter",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "35",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Non Elective Inpatient Encounter\"",
                            ":\r\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": [
                                "\r\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": [
                                        "\r\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",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "24",
                      "alias": "NonElectiveEncounter",
                      "expression": {
                        "localId": "23",
                        "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",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "28",
                        "type": "LessOrEqual",
                        "operand": [
                          {
                            "localId": "26",
                            "path": "lengthOfStay",
                            "scope": "NonElectiveEncounter",
                            "type": "Property"
                          },
                          {
                            "localId": "27",
                            "value": 120,
                            "unit": "days",
                            "type": "Quantity"
                          }
                        ]
                      },
                      {
                        "localId": "32",
                        "type": "In",
                        "operand": [
                          {
                            "type": "End",
                            "operand": {
                              "localId": "30",
                              "path": "relevantPeriod",
                              "scope": "NonElectiveEncounter",
                              "type": "Property"
                            }
                          },
                          {
                            "localId": "31",
                            "name": "Measurement Period",
                            "type": "ParameterRef"
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              {
                "localId": "48",
                "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\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "47",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "37",
                                  "s": [
                                    {
                                      "r": "36",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Non Elective Inpatient Encounter\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NonElectiveEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\r\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": [
                                        "\r\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",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "37",
                      "alias": "NonElectiveEncounter",
                      "expression": {
                        "localId": "36",
                        "name": "Non Elective Inpatient Encounter",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "46",
                    "type": "Or",
                    "operand": [
                      {
                        "localId": "41",
                        "type": "InValueSet",
                        "code": {
                          "localId": "39",
                          "path": "principalDiagnosis",
                          "scope": "NonElectiveEncounter",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "40",
                          "name": "Hemorrhagic Stroke"
                        }
                      },
                      {
                        "localId": "45",
                        "type": "InValueSet",
                        "code": {
                          "localId": "43",
                          "path": "principalDiagnosis",
                          "scope": "NonElectiveEncounter",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "44",
                          "name": "Ischemic Stroke"
                        }
                      }
                    ]
                  }
                }
              },
              {
                "localId": "64",
                "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\"",
                            ":\r\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": [
                                "\r\n\t\t"
                              ]
                            },
                            {
                              "r": "62",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "52",
                                  "s": [
                                    {
                                      "r": "51",
                                      "s": [
                                        {
                                          "r": "51",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Patient Characteristic Birthdate\"",
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "P"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\r\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",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "50",
                      "alias": "NonElectiveEncounter",
                      "expression": {
                        "localId": "49",
                        "name": "Encounter with Principal Diagnosis of Hemorrhagic or Ischemic Stroke",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "62",
                      "alias": "P",
                      "type": "With",
                      "expression": {
                        "localId": "51",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                        "type": "Retrieve"
                      },
                      "suchThat": {
                        "localId": "61",
                        "type": "GreaterOrEqual",
                        "operand": [
                          {
                            "localId": "59",
                            "name": "CalendarAgeInYearsAt",
                            "libraryName": "global",
                            "type": "FunctionRef",
                            "operand": [
                              {
                                "localId": "55",
                                "path": "birthDatetime",
                                "scope": "P",
                                "type": "Property"
                              },
                              {
                                "localId": "58",
                                "type": "Start",
                                "operand": {
                                  "localId": "57",
                                  "path": "relevantPeriod",
                                  "scope": "NonElectiveEncounter",
                                  "type": "Property"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "60",
                            "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                            "value": "18",
                            "type": "Literal"
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "72",
                "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\"",
                            ":\r\n\t"
                          ]
                        },
                        {
                          "r": "71",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "66",
                                  "s": [
                                    {
                                      "r": "65",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Encounter with Principal Diagnosis and Age\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NonElectiveEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\r\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",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "66",
                      "alias": "NonElectiveEncounter",
                      "expression": {
                        "localId": "65",
                        "name": "Encounter with Principal Diagnosis and Age",
                        "type": "ExpressionRef"
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "70",
                    "type": "InValueSet",
                    "code": {
                      "localId": "68",
                      "path": "principalDiagnosis",
                      "scope": "NonElectiveEncounter",
                      "type": "Property"
                    },
                    "valueset": {
                      "localId": "69",
                      "name": "Ischemic Stroke"
                    }
                  }
                }
              },
              {
                "localId": "85",
                "name": "Inpatient Encounter",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "85",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Inpatient Encounter\"",
                            ":\r\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": [
                                "\r\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": [
                                        "\r\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",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "74",
                      "alias": "Encounter",
                      "expression": {
                        "localId": "73",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Encounter Inpatient",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "83",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "78",
                        "type": "LessOrEqual",
                        "operand": [
                          {
                            "localId": "76",
                            "path": "lengthOfStay",
                            "scope": "Encounter",
                            "type": "Property"
                          },
                          {
                            "localId": "77",
                            "value": 120,
                            "unit": "days",
                            "type": "Quantity"
                          }
                        ]
                      },
                      {
                        "localId": "82",
                        "type": "In",
                        "operand": [
                          {
                            "type": "End",
                            "operand": {
                              "localId": "80",
                              "path": "relevantPeriod",
                              "scope": "Encounter",
                              "type": "Property"
                            }
                          },
                          {
                            "localId": "81",
                            "name": "Measurement Period",
                            "type": "ParameterRef"
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              {
                "localId": "114",
                "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\"",
                            ":\r\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": [
                                        "\r\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": [
                                                            "\r\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": [
                                                        "\r\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": [
                                                    "\r\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": [
                                                "\r\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": [
                                    "\r\n\t\t)"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\r\n\t)"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "113",
                  "type": "Distinct",
                  "operand": {
                    "localId": "112",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "87",
                        "alias": "Encounter",
                        "expression": {
                          "localId": "86",
                          "name": "Encounter with Principal Diagnosis of Ischemic Stroke",
                          "type": "ExpressionRef"
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "111",
                      "type": "Or",
                      "operand": [
                        {
                          "localId": "106",
                          "type": "Or",
                          "operand": [
                            {
                              "localId": "101",
                              "type": "Or",
                              "operand": [
                                {
                                  "localId": "96",
                                  "type": "Or",
                                  "operand": [
                                    {
                                      "localId": "91",
                                      "type": "InValueSet",
                                      "code": {
                                        "localId": "89",
                                        "path": "dischargeDisposition",
                                        "scope": "Encounter",
                                        "type": "Property"
                                      },
                                      "valueset": {
                                        "localId": "90",
                                        "name": "Discharge To Acute Care Facility"
                                      }
                                    },
                                    {
                                      "localId": "95",
                                      "type": "InValueSet",
                                      "code": {
                                        "localId": "93",
                                        "path": "dischargeDisposition",
                                        "scope": "Encounter",
                                        "type": "Property"
                                      },
                                      "valueset": {
                                        "localId": "94",
                                        "name": "Left Against Medical Advice"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "localId": "100",
                                  "type": "InValueSet",
                                  "code": {
                                    "localId": "98",
                                    "path": "dischargeDisposition",
                                    "scope": "Encounter",
                                    "type": "Property"
                                  },
                                  "valueset": {
                                    "localId": "99",
                                    "name": "Patient Expired"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "105",
                              "type": "InValueSet",
                              "code": {
                                "localId": "103",
                                "path": "dischargeDisposition",
                                "scope": "Encounter",
                                "type": "Property"
                              },
                              "valueset": {
                                "localId": "104",
                                "name": "Discharged to Home for Hospice Care"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "110",
                          "type": "InValueSet",
                          "code": {
                            "localId": "108",
                            "path": "dischargeDisposition",
                            "scope": "Encounter",
                            "type": "Property"
                          },
                          "valueset": {
                            "localId": "109",
                            "name": "Discharged to Health Care Facility for Hospice Care"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "statements": [
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Non Elective Inpatient Encounter\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": [
                          {
                            "text": "&#13;\n\t\t"
                          }
                        ]
                      },
                      {
                        "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": "&#13;\n\t\t\tand "
                                  }
                                ]
                              },
                              {
                                "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\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Non Elective Inpatient Encounter\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "36"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NonElectiveEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "37"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "&#13;\n\t\t"
                          }
                        ]
                      },
                      {
                        "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": "&#13;\n\t\t\tor "
                                  }
                                ]
                              },
                              {
                                "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\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": [
                          {
                            "text": "&#13;\n\t\t"
                          }
                        ]
                      },
                      {
                        "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": "&#13;\n\t\t\tsuch 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\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": [
                          {
                            "text": "&#13;\n\t\t"
                          }
                        ]
                      },
                      {
                        "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\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": [
                          {
                            "text": "&#13;\n\t\t"
                          }
                        ]
                      },
                      {
                        "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": "&#13;\n\t\t\tand "
                                  }
                                ]
                              },
                              {
                                "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\":&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": [
                                  {
                                    "text": "&#13;\n\t\t\t\t"
                                  }
                                ]
                              },
                              {
                                "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": "&#13;\n\t\t\t\t\tor "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "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": "&#13;\n\t\t\t\t\tor "
                                                  }
                                                ]
                                              },
                                              {
                                                "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": "&#13;\n\t\t\t\t\tor "
                                              }
                                            ]
                                          },
                                          {
                                            "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": "&#13;\n\t\t\t\t\tor "
                                          }
                                        ]
                                      },
                                      {
                                        "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": "&#13;\n\t\t)"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "112"
                      },
                      {
                        "children": [
                          {
                            "text": "&#13;\n\t)"
                          }
                        ]
                      }
                    ],
                    "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 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",
                "localIdentifier": "QDM",
                "uri": "urn:healthit-gov:qdm:v5_3",
                "version": "5.3"
              }
            ]
          },
          "parameters": {
            "def": [
              {
                "localId": "11",
                "name": "Measurement Period",
                "accessLevel": "Public",
                "parameterTypeSpecifier": {
                  "localId": "10",
                  "type": "IntervalTypeSpecifier",
                  "pointType": {
                    "localId": "9",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              }
            ]
          },
          "codeSystems": {
            "def": [
              {
                "localId": "2",
                "name": "LOINC:2.46",
                "id": "2.16.840.1.113883.6.1",
                "version": "urn:hl7:version:2.46",
                "accessLevel": "Public"
              },
              {
                "localId": "3",
                "name": "SNOMEDCT:2016-03",
                "id": "2.16.840.1.113883.6.96",
                "version": "urn:hl7:version:2016-03",
                "accessLevel": "Public"
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "4",
                "name": "Emergency Department Visit",
                "id": "2.16.840.1.113883.3.117.1.7.1.292",
                "accessLevel": "Public"
              }
            ]
          },
          "codes": {
            "def": [
              {
                "localId": "6",
                "name": "Birthdate",
                "id": "21112-8",
                "display": "Birth date",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "5",
                  "name": "LOINC:2.46"
                }
              },
              {
                "localId": "8",
                "name": "Dead",
                "id": "419099009",
                "display": "Dead",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "7",
                  "name": "SNOMEDCT:2016-03"
                }
              }
            ]
          },
          "statements": {
            "def": [
              {
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "29",
                "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": [
                            "):\r\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",
                  "type": "DateTime",
                  "year": {
                    "localId": "17",
                    "precision": "Year",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "16",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "month": {
                    "localId": "19",
                    "precision": "Month",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "18",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "day": {
                    "localId": "21",
                    "precision": "Day",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "20",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "hour": {
                    "localId": "22",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "minute": {
                    "localId": "23",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "second": {
                    "localId": "24",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "millisecond": {
                    "localId": "25",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "timezoneOffset": {
                    "localId": "27",
                    "type": "TimezoneFrom",
                    "operand": {
                      "localId": "26",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Value",
                    "operandTypeSpecifier": {
                      "localId": "15",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "34",
                "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": [
                            "):\r\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",
                  "precision": "Year",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "30",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "14",
                          "name": "BirthDateTime",
                          "type": "OperandRef"
                        }
                      ]
                    },
                    {
                      "localId": "32",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "31",
                          "name": "AsOf",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "12",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "13",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "42",
                "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": [
                            "):\r\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",
                  "precision": "Month",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "38",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "37",
                          "name": "BirthDateTime",
                          "type": "OperandRef"
                        }
                      ]
                    },
                    {
                      "localId": "40",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "39",
                          "name": "AsOf",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "35",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "36",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "50",
                "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": [
                            "):\r\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",
                  "precision": "Day",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "46",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "45",
                          "name": "BirthDateTime",
                          "type": "OperandRef"
                        }
                      ]
                    },
                    {
                      "localId": "48",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "47",
                          "name": "AsOf",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "43",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "44",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "55",
                "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": [
                            "):\r\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",
                  "name": "CalendarAgeInYearsAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "52",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "localId": "53",
                      "type": "Today"
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "51",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "60",
                "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": [
                            "):\r\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",
                  "name": "CalendarAgeInMonthsAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "57",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "localId": "58",
                      "type": "Today"
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "56",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "65",
                "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": [
                            "):\r\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",
                  "name": "CalendarAgeInDaysAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "62",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "localId": "63",
                      "type": "Today"
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "61",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "73",
                "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": [
                            "):\r\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",
                  "precision": "Day",
                  "type": "DifferenceBetween",
                  "operand": [
                    {
                      "localId": "69",
                      "type": "Start",
                      "operand": {
                        "localId": "68",
                        "name": "Stay",
                        "type": "OperandRef"
                      }
                    },
                    {
                      "localId": "71",
                      "type": "End",
                      "operand": {
                        "localId": "70",
                        "name": "Stay",
                        "type": "OperandRef"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "Stay",
                    "operandTypeSpecifier": {
                      "localId": "67",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "66",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              },
              {
                "localId": "101",
                "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": [
                            "):\r\n\t"
                          ]
                        },
                        {
                          "r": "100",
                          "s": [
                            {
                              "r": "100",
                              "s": [
                                {
                                  "s": [
                                    {
                                      "r": "86",
                                      "s": [
                                        {
                                          "r": "85",
                                          "s": [
                                            {
                                              "value": [
                                                "( "
                                              ]
                                            },
                                            {
                                              "r": "85",
                                              "s": [
                                                {
                                                  "value": [
                                                    "singleton from "
                                                  ]
                                                },
                                                {
                                                  "r": "84",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "( "
                                                      ]
                                                    },
                                                    {
                                                      "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\t\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": [
                                                " )"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "X"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\r\n\t\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": [
                                            " 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",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "86",
                      "alias": "X",
                      "expression": {
                        "localId": "85",
                        "type": "SingletonFrom",
                        "operand": {
                          "localId": "84",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "76",
                              "alias": "EDVisit",
                              "expression": {
                                "localId": "75",
                                "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",
                            "type": "In",
                            "operand": [
                              {
                                "type": "End",
                                "operand": {
                                  "localId": "78",
                                  "path": "relevantPeriod",
                                  "scope": "EDVisit",
                                  "type": "Property"
                                }
                              },
                              {
                                "lowClosed": true,
                                "highClosed": true,
                                "type": "Interval",
                                "low": {
                                  "type": "Subtract",
                                  "operand": [
                                    {
                                      "localId": "81",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "80",
                                        "path": "relevantPeriod",
                                        "type": "Property",
                                        "source": {
                                          "localId": "79",
                                          "name": "Encounter",
                                          "type": "OperandRef"
                                        }
                                      }
                                    },
                                    {
                                      "localId": "82",
                                      "value": 1,
                                      "unit": "hour",
                                      "type": "Quantity"
                                    }
                                  ]
                                },
                                "high": {
                                  "localId": "81",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "80",
                                    "path": "relevantPeriod",
                                    "type": "Property",
                                    "source": {
                                      "localId": "79",
                                      "name": "Encounter",
                                      "type": "OperandRef"
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "return": {
                    "localId": "99",
                    "expression": {
                      "localId": "98",
                      "type": "If",
                      "condition": {
                        "asType": "{urn:hl7-org:elm-types:r1}Boolean",
                        "type": "As",
                        "operand": {
                          "localId": "88",
                          "type": "IsNull",
                          "operand": {
                            "localId": "87",
                            "name": "X",
                            "type": "AliasRef"
                          }
                        },
                        "asTypeSpecifier": {
                          "name": "{urn:hl7-org:elm-types:r1}Boolean",
                          "type": "NamedTypeSpecifier"
                        }
                      },
                      "then": {
                        "localId": "90",
                        "path": "relevantPeriod",
                        "type": "Property",
                        "source": {
                          "localId": "89",
                          "name": "Encounter",
                          "type": "OperandRef"
                        }
                      },
                      "else": {
                        "localId": "97",
                        "lowClosed": true,
                        "highClosed": true,
                        "type": "Interval",
                        "low": {
                          "localId": "93",
                          "type": "Start",
                          "operand": {
                            "localId": "92",
                            "path": "relevantPeriod",
                            "scope": "X",
                            "type": "Property"
                          }
                        },
                        "high": {
                          "localId": "96",
                          "type": "End",
                          "operand": {
                            "localId": "95",
                            "path": "relevantPeriod",
                            "type": "Property",
                            "source": {
                              "localId": "94",
                              "name": "Encounter",
                              "type": "OperandRef"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "74",
                      "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "111",
                "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": [
                            "):\r\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",
                  "precision": "Day",
                  "type": "DifferenceBetween",
                  "operand": [
                    {
                      "localId": "107",
                      "type": "Start",
                      "operand": {
                        "localId": "106",
                        "name": "Value",
                        "type": "OperandRef"
                      }
                    },
                    {
                      "localId": "109",
                      "type": "End",
                      "operand": {
                        "localId": "108",
                        "name": "Value",
                        "type": "OperandRef"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "Value",
                    "operandTypeSpecifier": {
                      "localId": "105",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "104",
                        "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": "):&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": "):&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": "):&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": "):&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": "):&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": "):&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": "):&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": "):&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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": "):&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "( "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "singleton from "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "( "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "[\"Encounter, Performed\": "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "\"Emergency Department Visit\""
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": " ]"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "Retrieve",
                                                                "ref_id": "75"
                                                              }
                                                            ],
                                                            "node_type": "Retrieve",
                                                            "ref_id": "75"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " EDVisit"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "76"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "&#13;\n\t\t\t"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "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\t)"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Query",
                                            "ref_id": "84"
                                          }
                                        ],
                                        "node_type": "SingletonFrom",
                                        "ref_id": "85"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "SingletonFrom",
                                    "ref_id": "85"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " X"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "86"
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "&#13;\n\t\t"
                              }
                            ]
                          },
                          {
                            "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": " 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": "):&#13;\n\t"
                      }
                    ]
                  },
                  {
                    "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 or hemorrhagic stroke patients or their caregivers who were given educational materials during the hospital stay addressing all of the following: activation of emergency medical system, need for follow-up after discharge, medications prescribed at discharge, risk factors for stroke, and warning signs and symptoms of stroke",
  "hqmf_id": "40280582-5C5B-CF39-015C-A1FB846814BE",
  "hqmf_set_id": "217FDF0D-3D64-4720-9116-D5E5AFA27F2C",
  "hqmf_version_number": "6",
  "main_cql_library": "StrokeEducation",
  "measure_attributes": [
    {
      "code": "OTH",
      "value": "107",
      "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": "107",
        "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": "There are many examples of how patient education programs for specific chronic conditions have increased healthful behaviors, improved health status, and/or decreased health care costs of their participants. Clinical practice guidelines include recommendations for patient and family education during hospitalization as well as information about resources for social support services. Some clinical trials have shown measurable benefits in patient and caregiver outcomes with the application of education and support strategies. The type of stroke experienced and the resulting outcomes will play a large role in determining not only the course of treatment but also what education will be required. Patient education should include information about the event (eg, cause, treatment, and risk factors), the role of various medications or strategies, as well as desirable lifestyle modifications to reduce risk or improve outcomes. Family/caregivers will also need guidance in planning effective and realistic care strategies appropriate to the patient's prognosis and potential for rehabilitation.",
      "name": "Rationale",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "RAT",
        "title": "Rationale"
      },
      "value_obj": {
        "type": "ED",
        "value": "There are many examples of how patient education programs for specific chronic conditions have increased healthful behaviors, improved health status, and/or decreased health care costs of their participants. Clinical practice guidelines include recommendations for patient and family education during hospitalization as well as information about resources for social support services. Some clinical trials have shown measurable benefits in patient and caregiver outcomes with the application of education and support strategies. The type of stroke experienced and the resulting outcomes will play a large role in determining not only the course of treatment but also what education will be required. Patient education should include information about the event (eg, cause, treatment, and risk factors), the role of various medications or strategies, as well as desirable lifestyle modifications to reduce risk or improve outcomes. Family/caregivers will also need guidance in planning effective and realistic care strategies appropriate to the patient's prognosis and potential for rehabilitation.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "CRS",
      "value": "Some clinical trials have shown measurable benefits in patient and caregiver outcomes with the application of education and support strategies. Patient education should include information about the event (eg, cause, treatment, and risk factors), the role of various medications or strategies, as well as desirable lifestyle modifications to reduce risk or improve outcomes. Family/caregivers will also need guidance in planning effective and realistic care strategies appropriate to the patient's prognosis and potential for rehabilitation.",
      "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": "Some clinical trials have shown measurable benefits in patient and caregiver outcomes with the application of education and support strategies. Patient education should include information about the event (eg, cause, treatment, and risk factors), the role of various medications or strategies, as well as desirable lifestyle modifications to reduce risk or improve outcomes. Family/caregivers will also need guidance in planning effective and realistic care strategies appropriate to the patient's prognosis and potential for rehabilitation.",
        "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": "Eames, S., T. Hoffmann, L. Worrall, and S. Read. \"Stroke Patients' and Carers' Perception of Barriers to Accessing Stroke Information.\" [In eng]. Top Stroke Rehabil 17, no. 2 (Mar-Apr 2010): 69-78.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Eames, S., T. Hoffmann, L. Worrall, and S. Read. \"Stroke Patients' and Carers' Perception of Barriers to Accessing Stroke Information.\" [In eng]. Top Stroke Rehabil 17, no. 2 (Mar-Apr 2010): 69-78.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Furie, K. L., S. E. Kasner, R. J. Adams, G. W. Albers, R. L. Bush, S. C. Fagan, J. L. Halperin, et al. \"Guidelines for the Prevention of Stroke in Patients with Stroke or Transient Ischemic Attack: A Guideline for Healthcare Professionals from the American Heart Association/American Stroke Association.\" [In eng]. Stroke 42, no. 1 (Jan 2011): 227-76.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Furie, K. L., S. E. Kasner, R. J. Adams, G. W. Albers, R. L. Bush, S. C. Fagan, J. L. Halperin, et al. \"Guidelines for the Prevention of Stroke in Patients with Stroke or Transient Ischemic Attack: A Guideline for Healthcare Professionals from the American Heart Association/American Stroke Association.\" [In eng]. Stroke 42, no. 1 (Jan 2011): 227-76.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Goldstein, L. B., C. D. Bushnell, R. J. Adams, L. J. Appel, L. T. Braun, S. Chaturvedi, M. A. Creager, et al. \"Guidelines for the Primary Prevention of Stroke: A Guideline for Healthcare Professionals from the American Heart Association/American Stroke Association.\" [In eng]. Stroke 42, no. 2 (Feb 2011): 517-84.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Goldstein, L. B., C. D. Bushnell, R. J. Adams, L. J. Appel, L. T. Braun, S. Chaturvedi, M. A. Creager, et al. \"Guidelines for the Primary Prevention of Stroke: A Guideline for Healthcare Professionals from the American Heart Association/American Stroke Association.\" [In eng]. Stroke 42, no. 2 (Feb 2011): 517-84.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Hafsteinsdottir, T. B., M. Vergunst, E. Lindeman, and M. Schuurmans. \"Educational Needs of Patients with a Stroke and Their Caregivers: A Systematic Review of the Literature.\" [In eng]. Patient Educ Couns 85, no. 1 (Oct 2011): 14-25",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Hafsteinsdottir, T. B., M. Vergunst, E. Lindeman, and M. Schuurmans. \"Educational Needs of Patients with a Stroke and Their Caregivers: A Systematic Review of the Literature.\" [In eng]. Patient Educ Couns 85, no. 1 (Oct 2011): 14-25",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Jauch, E. C., J. L. Saver, H. P. Adams, Jr., A. Bruno, J. J. Connors, B. M. Demaerschalk, P. Khatri, et al. \"Guidelines for the Early Management of Patients with Acute Ischemic Stroke: A Guideline for Healthcare Professionals from the American Heart Association/American Stroke Association.\" [In Eng]. Stroke (Jan 31 2013).",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Jauch, E. C., J. L. Saver, H. P. Adams, Jr., A. Bruno, J. J. Connors, B. M. Demaerschalk, P. Khatri, et al. \"Guidelines for the Early Management of Patients with Acute Ischemic Stroke: A Guideline for Healthcare Professionals from the American Heart Association/American Stroke Association.\" [In Eng]. Stroke (Jan 31 2013).",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Lorig, K. R., D. S. Sobel, A. L. Stewart, B. W. Brown, Jr., A. Bandura, P. Ritter, V. M. Gonzalez, D. D. Laurent, and H. R. Holman. \"Evidence Suggesting That a Chronic Disease Self-Management Program Can Improve Health Status While Reducing Hospitalization: A Randomized Trial.\" [In eng]. Med Care 37, no. 1 (Jan 1999): 5-14.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Lorig, K. R., D. S. Sobel, A. L. Stewart, B. W. Brown, Jr., A. Bandura, P. Ritter, V. M. Gonzalez, D. D. Laurent, and H. R. Holman. \"Evidence Suggesting That a Chronic Disease Self-Management Program Can Improve Health Status While Reducing Hospitalization: A Randomized Trial.\" [In eng]. Med Care 37, no. 1 (Jan 1999): 5-14.",
        "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": "Written information given to the patient is required to address each and every one of the educational components. These components are modeled in the population criteria and data criteria as communication from provider to patient :activation of emergency medical system, follow-up after discharge, medications prescribed at discharge, risk factors and signs and symptoms, and are intended to be specific to stroke.\n\nThe \"Non-elective admissions\" 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.",
      "name": "Guidance",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "GUIDE",
        "title": "Guidance"
      },
      "value_obj": {
        "type": "ED",
        "value": "Written information given to the patient is required to address each and every one of the educational components. These components are modeled in the population criteria and data criteria as communication from provider to patient :activation of emergency medical system, follow-up after discharge, medications prescribed at discharge, risk factors and signs and symptoms, and are intended to be specific to stroke.\n\nThe \"Non-elective admissions\" 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.",
        "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": "Ischemic stroke or hemorrhagic stroke patients discharged to home, home care, or court/law enforcement",
      "name": "Denominator",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DENOM",
        "title": "Denominator"
      },
      "value_obj": {
        "type": "ED",
        "value": "Ischemic stroke or hemorrhagic stroke patients discharged to home, home care, or court/law enforcement",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENEX",
      "value": "Patients with comfort measures documented",
      "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",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMER",
      "value": "Ischemic or hemorrhagic stroke patients with written documentation that they or their caregivers were given educational material addressing all of the following:\n1. Activation of emergency medical system \n2. Follow-up after discharge\n3. Medications prescribed at discharge\n4. Risk factors for stroke\n5. Warning signs and symptoms of stroke",
      "name": "Numerator",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "NUMER",
        "title": "Numerator"
      },
      "value_obj": {
        "type": "ED",
        "value": "Ischemic or hemorrhagic stroke patients with written documentation that they or their caregivers were given educational material addressing all of the following:\n1. Activation of emergency medical system \n2. Follow-up after discharge\n3. Medications prescribed at discharge\n4. Risk factors for stroke\n5. Warning signs and symptoms of stroke",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMEX",
      "value": "Not Applicable",
      "name": "Numerator Exclusions",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "NUMEX",
        "title": "Numerator Exclusions"
      },
      "value_obj": {
        "type": "ED",
        "value": "Not Applicable",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENEXCEP",
      "value": "None",
      "name": "Denominator Exceptions",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DENEXCEP",
        "title": "Denominator Exceptions"
      },
      "value_obj": {
        "type": "ED",
        "value": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "SDE",
      "value": "For every patient evaluated by this measure also identify payer, race, ethnicity and sex",
      "name": "Supplemental Data Elements",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "SDE",
        "title": "Supplemental Data Elements"
      },
      "value_obj": {
        "type": "ED",
        "value": "For every patient evaluated by this measure also identify payer, race, ethnicity and sex",
        "media_type": "text/plain"
      }
    }
  ],
  "measure_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": "2F3544F7-3E8A-4D1A-90A0-D6CCFA13B8A3",
      "preconditions": [
        {
          "id": 2,
          "preconditions": [
            {
              "id": 1,
              "reference": "StrokeEducation__Initial_Population__C2AB2069_5F16_430A_A184_0A0CAF1A3E7C"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "A846DF34-A272-430E-9CF8-92A62DB02919",
      "preconditions": [
        {
          "id": 4,
          "preconditions": [
            {
              "id": 3,
              "reference": "StrokeEducation__Denominator__C2AB2069_5F16_430A_A184_0A0CAF1A3E7C"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "F5D72B96-127B-4826-8FED-C9D367441AF5",
      "preconditions": [
        {
          "id": 6,
          "preconditions": [
            {
              "id": 5,
              "reference": "StrokeEducation__Numerator__C2AB2069_5F16_430A_A184_0A0CAF1A3E7C"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENEX": {
      "conjunction?": true,
      "type": "DENEX",
      "hqmf_id": "07E10C9B-D287-4D42-8CAF-C0CDC11D0E03",
      "preconditions": [
        {
          "id": 8,
          "preconditions": [
            {
              "id": 7,
              "reference": "StrokeEducation__Denominator_Exclusions__C2AB2069_5F16_430A_A184_0A0CAF1A3E7C"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    }
  },
  "population_sets": [
    {
      "population_set_id": "PopulationCriteria1",
      "populations": {
        "DENEX": {
          "hqmf_id": "07E10C9B-D287-4D42-8CAF-C0CDC11D0E03",
          "library_name": "StrokeEducation",
          "statement_name": "Denominator Exclusions"
        },
        "DENOM": {
          "hqmf_id": "A846DF34-A272-430E-9CF8-92A62DB02919",
          "library_name": "StrokeEducation",
          "statement_name": "Denominator"
        },
        "IPP": {
          "hqmf_id": "2F3544F7-3E8A-4D1A-90A0-D6CCFA13B8A3",
          "library_name": "StrokeEducation",
          "statement_name": "Initial Population"
        },
        "NUMER": {
          "hqmf_id": "F5D72B96-127B-4826-8FED-C9D367441AF5",
          "library_name": "StrokeEducation",
          "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": "5d289cb031fe5f8b3266c90c",
      "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, Order: ComfortMeasures",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.35",
      "id": "5d289cb031fe5f8b3266c90d",
      "negationRationale": null,
      "qdmCategory": "intervention",
      "qdmStatus": "order",
      "qdmTitle": "Intervention, Order",
      "qdmVersion": "5.5",
      "reason": null,
      "requester": null,
      "_type": "QDM::InterventionOrder"
    },
    {
      "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": "5d289cb031fe5f8b3266c90e",
      "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,
      "category": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.378",
      "dataElementCodes": [

      ],
      "description": "Communication: From Provider To Patient: InstructionsforFollowUpAfterDischarge",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.132",
      "id": "5d289cb031fe5f8b3266c90f",
      "medium": null,
      "negationRationale": null,
      "qdmCategory": "communication",
      "qdmStatus": "performed",
      "qdmTitle": "Communication, Performed",
      "qdmVersion": "5.5",
      "receivedDatetime": null,
      "recipient": null,
      "relatedTo": null,
      "sender": null,
      "sentDatetime": null,
      "_type": "QDM::CommunicationPerformed"
    },
    {
      "authorDatetime": null,
      "category": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.381",
      "dataElementCodes": [

      ],
      "description": "Communication: From Provider To Patient: WarningSignsandSymptomsEducation",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.132",
      "id": "5d289cb031fe5f8b3266c910",
      "medium": null,
      "negationRationale": null,
      "qdmCategory": "communication",
      "qdmStatus": "performed",
      "qdmTitle": "Communication, Performed",
      "qdmVersion": "5.5",
      "receivedDatetime": null,
      "recipient": null,
      "relatedTo": null,
      "sender": null,
      "sentDatetime": null,
      "_type": "QDM::CommunicationPerformed"
    },
    {
      "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": "5d289cb031fe5f8b3266c911",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "gender",
      "qdmTitle": "Patient Characteristic Sex",
      "qdmVersion": "5.5",
      "_type": "QDM::PatientCharacteristicSex"
    },
    {
      "authorDatetime": null,
      "category": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.380",
      "dataElementCodes": [

      ],
      "description": "Communication: From Provider To Patient: RiskFactorsEducation",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.132",
      "id": "5d289cb031fe5f8b3266c912",
      "medium": null,
      "negationRationale": null,
      "qdmCategory": "communication",
      "qdmStatus": "performed",
      "qdmTitle": "Communication, Performed",
      "qdmVersion": "5.5",
      "receivedDatetime": null,
      "recipient": null,
      "relatedTo": null,
      "sender": null,
      "sentDatetime": null,
      "_type": "QDM::CommunicationPerformed"
    },
    {
      "authorDatetime": null,
      "category": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.377",
      "dataElementCodes": [

      ],
      "description": "Communication: From Provider To Patient: ActivationofEmergencyMedicalSystemEducation",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.132",
      "id": "5d289cb031fe5f8b3266c913",
      "medium": null,
      "negationRationale": null,
      "qdmCategory": "communication",
      "qdmStatus": "performed",
      "qdmTitle": "Communication, Performed",
      "qdmVersion": "5.5",
      "receivedDatetime": null,
      "recipient": null,
      "relatedTo": null,
      "sender": null,
      "sentDatetime": null,
      "_type": "QDM::CommunicationPerformed"
    },
    {
      "authorDatetime": null,
      "category": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.379",
      "dataElementCodes": [

      ],
      "description": "Communication: From Provider To Patient: PrescribedMedicationsEducation",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.132",
      "id": "5d289cb031fe5f8b3266c914",
      "medium": null,
      "negationRationale": null,
      "qdmCategory": "communication",
      "qdmStatus": "performed",
      "qdmTitle": "Communication, Performed",
      "qdmVersion": "5.5",
      "receivedDatetime": null,
      "recipient": null,
      "relatedTo": null,
      "sender": null,
      "sentDatetime": null,
      "_type": "QDM::CommunicationPerformed"
    },
    {
      "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": "5d289cb031fe5f8b3266c915",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "ethnicity",
      "qdmTitle": "Patient Characteristic Ethnicity",
      "qdmVersion": "5.5",
      "_type": "QDM::PatientCharacteristicEthnicity"
    },
    {
      "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": "5d289cb031fe5f8b3266c916",
      "lengthOfStay": null,
      "negationRationale": null,
      "participant": null,
      "priority": null,
      "qdmCategory": "encounter",
      "qdmStatus": "performed",
      "qdmTitle": "Encounter, Performed",
      "qdmVersion": "5.5",
      "relevantPeriod": null,
      "_type": "QDM::EncounterPerformed"
    },
    {
      "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": "5d289cb031fe5f8b3266c917",
      "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": "5d289cb031fe5f8b3266c918",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "race",
      "qdmTitle": "Patient Characteristic Race",
      "qdmVersion": "5.5",
      "_type": "QDM::PatientCharacteristicRace"
    },
    {
      "authorDatetime": null,
      "category": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.415",
      "dataElementCodes": [

      ],
      "description": "Communication: From Provider To Patient: WrittenInformationGiven",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.132",
      "id": "5d289cb031fe5f8b3266c919",
      "medium": null,
      "negationRationale": null,
      "qdmCategory": "communication",
      "qdmStatus": "performed",
      "qdmTitle": "Communication, Performed",
      "qdmVersion": "5.5",
      "receivedDatetime": null,
      "recipient": null,
      "relatedTo": null,
      "sender": null,
      "sentDatetime": null,
      "_type": "QDM::CommunicationPerformed"
    },
    {
      "authorDatetime": null,
      "category": null,
      "codeListId": "2.16.840.1.113883.3.117.1.7.1.415",
      "dataElementCodes": [

      ],
      "description": "Communication: From Provider To Patient, Not Done: WrittenInformationGiven",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.132",
      "id": "5d289cb031fe5f8b3266c91a",
      "medium": null,
      "negationRationale": null,
      "qdmCategory": "communication",
      "qdmStatus": "performed",
      "qdmTitle": "Communication, Performed",
      "qdmVersion": "5.5",
      "receivedDatetime": null,
      "recipient": null,
      "relatedTo": null,
      "sender": null,
      "sentDatetime": null,
      "_type": "QDM::CommunicationPerformed"
    }
  ],
  "title": "Stroke Education",
  "updated_at": null,
  "value_set_ids": [
    "5d289cb031fe5f8b3266c8d9",
    "5d289cb031fe5f8b3266c8da",
    "5d289cb031fe5f8b3266c8db",
    "5d289cb031fe5f8b3266c8dc",
    "5d289cb031fe5f8b3266c8dd",
    "5d289cb031fe5f8b3266c8de",
    "5d289cb031fe5f8b3266c8df",
    "5d289cb031fe5f8b3266c8e0",
    "5d289cb031fe5f8b3266c8e1",
    "5d289cb031fe5f8b3266c8e2",
    "5d289cb031fe5f8b3266c8e3",
    "5d289cb031fe5f8b3266c8e4",
    "5d289cb031fe5f8b3266c8e5",
    "5d289cb031fe5f8b3266c8e6",
    "5d289cb031fe5f8b3266c8e7",
    "5d289cb031fe5f8b3266c8e8",
    "5d289cb031fe5f8b3266c8e9",
    "5d289cb031fe5f8b3266c8ea",
    "5d289cb031fe5f8b3266c8eb",
    "5d289cb031fe5f8b3266c8ec",
    "5d289cb031fe5f8b3266c8ed",
    "5d289cb031fe5f8b3266c8ee",
    "5d289cb031fe5f8b3266c8ef",
    "5d289cb031fe5f8b3266c8f0",
    "5d289cb031fe5f8b3266c8f1",
    "5d289cb031fe5f8b3266c8f2",
    "5d289cb031fe5f8b3266c8f3",
    "5d289cb031fe5f8b3266c8f4",
    "5d289cb031fe5f8b3266c8f5",
    "5d289cb031fe5f8b3266c8f6",
    "5d289cb031fe5f8b3266c8f7",
    "5d289cb031fe5f8b3266c8f8",
    "5d289cb031fe5f8b3266c8f9",
    "5d289cb031fe5f8b3266c8fa",
    "5d289cb031fe5f8b3266c8fb",
    "5d289cb031fe5f8b3266c8fc",
    "5d289cb031fe5f8b3266c8fd",
    "5d289cb031fe5f8b3266c8fe",
    "5d289cb031fe5f8b3266c8ff",
    "5d289cb031fe5f8b3266c900",
    "5d289cb031fe5f8b3266c901",
    "5d289cb031fe5f8b3266c902",
    "5d289cb031fe5f8b3266c903",
    "5d289cb031fe5f8b3266c904",
    "5d289cb031fe5f8b3266c905",
    "5d289cb031fe5f8b3266c906",
    "5d289cb031fe5f8b3266c907",
    "5d289cb031fe5f8b3266c908",
    "5d289cb031fe5f8b3266c909",
    "5d289cb031fe5f8b3266c90a",
    "5d289cb031fe5f8b3266c90b"
  ]
}