{
  "_id": "5ab9422eb848465f6789206a",
  "bundle_id": "582c709c6c5d1c1cf10006aa",
  "calculate_sdes": null,
  "category": "Miscellaneous",
  "cms_id": "CMS160v7",
  "complexity": {
    "variables": [
      {
        "name": "Patient",
        "complexity": 1
      },
      {
        "name": "SDE Ethnicity",
        "complexity": 1
      },
      {
        "name": "SDE Payer",
        "complexity": 1
      },
      {
        "name": "SDE Race",
        "complexity": 1
      },
      {
        "name": "SDE Sex",
        "complexity": 1
      },
      {
        "name": "Depression Diagnoses",
        "complexity": 1
      },
      {
        "name": "September through December of Measurement Period",
        "complexity": 1
      },
      {
        "name": "Depression Encounter in September through December",
        "complexity": 4
      },
      {
        "name": "Initial Population 1",
        "complexity": 1
      },
      {
        "name": "Denominator 1",
        "complexity": 1
      },
      {
        "name": "May through August of Measurement Period",
        "complexity": 1
      },
      {
        "name": "Depression Encounter in May through August",
        "complexity": 4
      },
      {
        "name": "Initial Population 2",
        "complexity": 1
      },
      {
        "name": "Denominator 2",
        "complexity": 1
      },
      {
        "name": "January through April of Measurement Period",
        "complexity": 1
      },
      {
        "name": "Depression Encounter in January through April",
        "complexity": 4
      },
      {
        "name": "Initial Population 3",
        "complexity": 1
      },
      {
        "name": "Denominator 3",
        "complexity": 1
      },
      {
        "name": "Disorder Diagnoses Overlaps Depression Encounter in May through August",
        "complexity": 1
      },
      {
        "name": "Expired in September through December",
        "complexity": 1
      },
      {
        "name": "Expired in May through August",
        "complexity": 1
      },
      {
        "name": "Expired in January through April",
        "complexity": 1
      },
      {
        "name": "Stratification 1_1",
        "complexity": 1
      },
      {
        "name": "Stratification 1_2",
        "complexity": 1
      },
      {
        "name": "Stratification 2_1",
        "complexity": 1
      },
      {
        "name": "Stratification 2_2",
        "complexity": 1
      },
      {
        "name": "Stratification 3_1",
        "complexity": 1
      },
      {
        "name": "Stratification 3_2",
        "complexity": 1
      },
      {
        "name": "Numerator 1",
        "complexity": 1
      },
      {
        "name": "Numerator 2",
        "complexity": 1
      },
      {
        "name": "Numerator 3",
        "complexity": 1
      },
      {
        "name": "Long Term Care Overlaps January through April",
        "complexity": 1
      },
      {
        "name": "Long Term Care Overlaps May through August",
        "complexity": 1
      },
      {
        "name": "Long Term Care Overlaps September through December",
        "complexity": 1
      },
      {
        "name": "Palliative Care Order Before End of December",
        "complexity": 1
      },
      {
        "name": "Palliative Care Order Before End of April",
        "complexity": 1
      },
      {
        "name": "Palliative Care Order Before End of August",
        "complexity": 1
      },
      {
        "name": "Encounter Palliative Care Overlaps September through December",
        "complexity": 1
      },
      {
        "name": "Encounter Palliative Care Overlaps May through August",
        "complexity": 1
      },
      {
        "name": "Encounter Palliative Care Overlaps January through April",
        "complexity": 1
      },
      {
        "name": "Disorder Diagnoses Overlaps Depression Encounter in September through December",
        "complexity": 1
      },
      {
        "name": "Denominator Exclusion 1",
        "complexity": 5
      },
      {
        "name": "Denominator Exclusion 2",
        "complexity": 5
      },
      {
        "name": "Disorder Diagnoses Overlaps Depression Encounter in January through April",
        "complexity": 1
      },
      {
        "name": "Denominator Exclusion 3",
        "complexity": 5
      },
      {
        "name": "Patient",
        "complexity": 1
      },
      {
        "name": "Encounter",
        "complexity": 1
      },
      {
        "name": "LengthInDays",
        "complexity": 1
      },
      {
        "name": "Inpatient Encounter",
        "complexity": 2
      },
      {
        "name": "ToDate",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInDaysAt",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInDays",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInMonthsAt",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInMonths",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInYearsAt",
        "complexity": 1
      },
      {
        "name": "CalendarAgeInYears",
        "complexity": 1
      },
      {
        "name": "Hospitalization",
        "complexity": 0
      },
      {
        "name": "Hospitalization Locations",
        "complexity": 0
      },
      {
        "name": "Hospitalization Length of Stay",
        "complexity": 1
      },
      {
        "name": "Hospital Admission Time",
        "complexity": 1
      },
      {
        "name": "Hospital Discharge Time",
        "complexity": 1
      },
      {
        "name": "Hospital Arrival Time",
        "complexity": 1
      },
      {
        "name": "Hospital Departure Time",
        "complexity": 1
      },
      {
        "name": "Emergency Department Arrival Time",
        "complexity": 1
      },
      {
        "name": "First Inpatient Intensive Care Unit",
        "complexity": 1
      }
    ]
  },
  "continuous_variable": false,
  "cql": [
    "library DepressionUtilizationofthePHQ9Tool version '7.3.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.63\": 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.63'\r\n\r\nvalueset \"ONC Administrative Sex\": 'urn:oid:2.16.840.1.113762.1.4.1'\r\nvalueset \"Race\": 'urn:oid:2.16.840.1.114222.4.11.836'\r\nvalueset \"Ethnicity\": 'urn:oid:2.16.840.1.114222.4.11.837'\r\nvalueset \"Payer\": 'urn:oid:2.16.840.1.114222.4.11.3591'\r\nvalueset \"Bipolar Disorder\": 'urn:oid:2.16.840.1.113883.3.67.1.101.1.128'\r\nvalueset \"Care Services in Long-Term Residential Facility\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1014'\r\nvalueset \"Dysthymia\": 'urn:oid:2.16.840.1.113883.3.67.1.101.1.254'\r\nvalueset \"Major Depression Including Remission\": 'urn:oid:2.16.840.113883.3.67.1.101.3.2444'\r\nvalueset \"Palliative Care\": 'urn:oid:2.16.840.1.113883.3.600.1.1579'\r\nvalueset \"Personality Disorder\": 'urn:oid:2.16.840.1.113883.3.67.1.101.1.246'\r\nvalueset \"Palliative care encounter\": 'urn:oid:2.16.840.1.113883.3.600.1.1575'\r\nvalueset \"Contact or Office Visit\": 'urn:oid:2.16.840.1.113762.1.4.1080.5'\r\nvalueset \"Pervasive Developmental Disorder\": 'urn:oid:2.16.840.1.113883.3.464.1003.105.12.1152'\r\nvalueset \"Schizophrenia or Psychotic Disorder\": 'urn:oid:2.16.840.1.113883.3.464.1003.105.12.1104'\r\n\r\ncode \"Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]\": '44261-6' from \"LOINC:2.63\" display 'Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]'\r\n\r\nparameter \"Measurement Period\" Interval<DateTime>\r\n\r\ncontext Patient\r\n\r\ndefine \"SDE Ethnicity\":\r\n\t[\"Patient Characteristic Ethnicity\": \"Ethnicity\"]\r\n\r\ndefine \"SDE Payer\":\r\n\t[\"Patient Characteristic Payer\": \"Payer\"]\r\n\r\ndefine \"SDE Race\":\r\n\t[\"Patient Characteristic Race\": \"Race\"]\r\n\r\ndefine \"SDE Sex\":\r\n\t[\"Patient Characteristic Sex\": \"ONC Administrative Sex\"]\r\n\r\ndefine \"Denominator 1\":\r\n\t\"Initial Population 1\"\r\n\r\ndefine \"Denominator 2\":\r\n\t\"Initial Population 2\"\r\n\r\ndefine \"Denominator 3\":\r\n\t\"Initial Population 3\"\r\n\r\ndefine \"Disorder Diagnoses Overlaps Depression Encounter in May through August\":\r\n\t( [\"Diagnosis\": \"Bipolar Disorder\"]\r\n\t\tunion [\"Diagnosis\": \"Personality Disorder\"]\r\n\t\tunion [\"Diagnosis\": \"Schizophrenia or Psychotic Disorder\"]\r\n\t\tunion [\"Diagnosis\": \"Pervasive Developmental Disorder\"] ) DisorderDiagnoses\r\n\t\twith \"Depression Encounter in May through August\" DepressionEncounter\r\n\t\t\tsuch that DisorderDiagnoses.prevalencePeriod overlaps DepressionEncounter.relevantPeriod\r\n\r\ndefine \"Expired in September through December\":\r\n\t[\"Patient Characteristic Expired\"] Deceased\r\n\t\twhere Deceased.expiredDatetime in \"September through December of Measurement Period\"\r\n\r\ndefine \"Expired in May through August\":\r\n\t[\"Patient Characteristic Expired\"] Deceased\r\n\t\twhere Deceased.expiredDatetime in \"May through August of Measurement Period\"\r\n\r\ndefine \"Expired in January through April\":\r\n\t[\"Patient Characteristic Expired\"] Deceased\r\n\t\twhere Deceased.expiredDatetime in \"January through April of Measurement Period\"\r\n\r\ndefine \"Stratification 1_1\":\r\n\t[\"Patient Characteristic Birthdate\"] Birthdate\r\n\t\twith \"Depression Encounter in September through December\" DepressionEncounter\r\n\t\t\tsuch that Global.\"CalendarAgeInYearsAt\"(Birthdate.birthDatetime, start of DepressionEncounter.relevantPeriod)>= 12\r\n\t\t\t\tand Global.\"CalendarAgeInYearsAt\"(Birthdate.birthDatetime, start of DepressionEncounter.relevantPeriod)< 18\r\n\r\ndefine \"Stratification 1_2\":\r\n\t[\"Patient Characteristic Birthdate\"] Birthdate\r\n\t\twith \"Depression Encounter in September through December\" DepressionEncounter\r\n\t\t\tsuch that Global.\"CalendarAgeInYearsAt\"(Birthdate.birthDatetime, start of DepressionEncounter.relevantPeriod)>= 18\r\n\r\ndefine \"Stratification 2_1\":\r\n\t[\"Patient Characteristic Birthdate\"] Birthdate\r\n\t\twith \"Depression Encounter in May through August\" DepressionEncounter\r\n\t\t\tsuch that Global.\"CalendarAgeInYearsAt\"(Birthdate.birthDatetime, start of DepressionEncounter.relevantPeriod)>= 12\r\n\t\t\t\tand Global.\"CalendarAgeInYearsAt\"(Birthdate.birthDatetime, start of DepressionEncounter.relevantPeriod)< 18\r\n\r\ndefine \"Stratification 2_2\":\r\n\t[\"Patient Characteristic Birthdate\"] Birthdate\r\n\t\twith \"Depression Encounter in May through August\" DepressionEncounter\r\n\t\t\tsuch that Global.\"CalendarAgeInYearsAt\"(Birthdate.birthDatetime, start of DepressionEncounter.relevantPeriod)>= 18\r\n\r\ndefine \"Stratification 3_1\":\r\n\t[\"Patient Characteristic Birthdate\"] Birthdate\r\n\t\twith \"Depression Encounter in January through April\" DepressionEncounter\r\n\t\t\tsuch that Global.CalendarAgeInYearsAt(Birthdate.birthDatetime, start of DepressionEncounter.relevantPeriod)>= 12\r\n\t\t\t\tand Global.\"CalendarAgeInYearsAt\"(Birthdate.birthDatetime, start of DepressionEncounter.relevantPeriod)< 18\r\n\r\ndefine \"Stratification 3_2\":\r\n\t[\"Patient Characteristic Birthdate\"] Birthdate\r\n\t\twith \"Depression Encounter in January through April\" DepressionEncounter\r\n\t\t\tsuch that Global.\"CalendarAgeInYearsAt\"(Birthdate.birthDatetime, start of DepressionEncounter.relevantPeriod)>= 18\r\n\r\ndefine \"Initial Population 1\":\r\n\texists ( \"Depression Encounter in September through December\" )\r\n\r\ndefine \"Initial Population 2\":\r\n\texists ( \"Depression Encounter in May through August\" )\r\n\r\ndefine \"Initial Population 3\":\r\n\texists ( \"Depression Encounter in January through April\" )\r\n\r\ndefine \"Numerator 1\":\r\n\texists ( [\"Assessment, Performed\": \"Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]\"] DepressionAssessment\r\n\t\t\twhere DepressionAssessment.result is not null\r\n\t\t\t\tand DepressionAssessment.authorDatetime in \"September through December of Measurement Period\"\r\n\t)\r\n\r\ndefine \"Numerator 2\":\r\n\texists ( [\"Assessment, Performed\": \"Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]\"] DepressionAssessment\r\n\t\t\twhere DepressionAssessment.result is not null\r\n\t\t\t\tand DepressionAssessment.authorDatetime in \"May through August of Measurement Period\"\r\n\t)\r\n\r\ndefine \"Numerator 3\":\r\n\texists ( [\"Assessment, Performed\": \"Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]\"] DepressionAssessment\r\n\t\t\twhere DepressionAssessment.result is not null\r\n\t\t\t\tand DepressionAssessment.authorDatetime in \"January through April of Measurement Period\"\r\n\t)\r\n\r\ndefine \"Long Term Care Overlaps January through April\":\r\n\t[\"Encounter, Performed\": \"Care Services in Long-Term Residential Facility\"] EncounterLongTermCare\r\n\t\twhere EncounterLongTermCare.relevantPeriod overlaps \"January through April of Measurement Period\"\r\n\r\ndefine \"Long Term Care Overlaps May through August\":\r\n\t[\"Encounter, Performed\": \"Care Services in Long-Term Residential Facility\"] EncounterLongTermCare\r\n\t\twhere EncounterLongTermCare.relevantPeriod overlaps \"May through August of Measurement Period\"\r\n\r\ndefine \"Long Term Care Overlaps September through December\":\r\n\t[\"Encounter, Performed\": \"Care Services in Long-Term Residential Facility\"] EncounterLongTermCare\r\n\t\twhere EncounterLongTermCare.relevantPeriod overlaps \"September through December of Measurement Period\"\r\n\r\ndefine \"Palliative Care Order Before End of December\":\r\n\t[\"Intervention, Order\": \"Palliative Care\"] OrderedPalliativeCare\r\n\t\twhere OrderedPalliativeCare.authorDatetime before end of \"September through December of Measurement Period\"\r\n\r\ndefine \"Palliative Care Order Before End of April\":\r\n\t[\"Intervention, Order\": \"Palliative Care\"] OrderedPalliativeCare\r\n\t\twhere OrderedPalliativeCare.authorDatetime before end of \"January through April of Measurement Period\"\r\n\r\ndefine \"Palliative Care Order Before End of August\":\r\n\t[\"Intervention, Order\": \"Palliative Care\"] OrderedPalliativeCare\r\n\t\twhere OrderedPalliativeCare.authorDatetime before end of \"May through August of Measurement Period\"\r\n\r\ndefine \"Encounter Palliative Care Overlaps September through December\":\r\n\t[\"Encounter, Performed\": \"Palliative care encounter\"] PalliativeCareEncounter\r\n\t\twhere PalliativeCareEncounter.relevantPeriod overlaps \"September through December of Measurement Period\"\r\n\r\ndefine \"Encounter Palliative Care Overlaps May through August\":\r\n\t[\"Encounter, Performed\": \"Palliative care encounter\"] PalliativeCareEncounter\r\n\t\twhere PalliativeCareEncounter.relevantPeriod overlaps \"May through August of Measurement Period\"\r\n\r\ndefine \"Encounter Palliative Care Overlaps January through April\":\r\n\t[\"Encounter, Performed\": \"Palliative care encounter\"] PalliativeCareEncounter\r\n\t\twhere PalliativeCareEncounter.relevantPeriod overlaps \"January through April of Measurement Period\"\r\n\r\ndefine \"Denominator Exclusion 1\":\r\n\texists ( \"Palliative Care Order Before End of December\" )\r\n\t\tor exists ( \"Encounter Palliative Care Overlaps September through December\" )\r\n\t\tor exists ( \"Long Term Care Overlaps September through December\" )\r\n\t\tor exists ( \"Expired in September through December\" )\r\n\t\tor exists ( \"Disorder Diagnoses Overlaps Depression Encounter in September through December\" )\r\n\r\ndefine \"Denominator Exclusion 2\":\r\n\texists ( \"Palliative Care Order Before End of August\" )\r\n\t\tor exists ( \"Encounter Palliative Care Overlaps May through August\" )\r\n\t\tor exists ( \"Long Term Care Overlaps May through August\" )\r\n\t\tor exists ( \"Expired in May through August\" )\r\n\t\tor exists ( \"Disorder Diagnoses Overlaps Depression Encounter in May through August\" )\r\n\r\ndefine \"Denominator Exclusion 3\":\r\n\texists ( \"Palliative Care Order Before End of April\" )\r\n\t\tor exists ( \"Encounter Palliative Care Overlaps January through April\" )\r\n\t\tor exists ( \"Long Term Care Overlaps January through April\" )\r\n\t\tor exists ( \"Expired in January through April\" )\r\n\t\tor exists ( \"Disorder Diagnoses Overlaps Depression Encounter in January through April\" )\r\n\r\ndefine \"Depression Diagnoses\":\r\n\t[\"Diagnosis\": \"Major Depression Including Remission\"]\r\n\t\tunion [\"Diagnosis\": \"Dysthymia\"]\r\n\r\ndefine \"Depression Encounter in January through April\":\r\n\t[\"Encounter, Performed\": \"Contact or Office Visit\"] DepressionEncounter\r\n\t\twith \"Depression Diagnoses\" Depression\r\n\t\t\tsuch that DepressionEncounter.relevantPeriod overlaps Depression.prevalencePeriod\r\n\t\twith [\"Patient Characteristic Birthdate\"] BirthDate\r\n\t\t\tsuch that Global.\"CalendarAgeInYearsAt\"(BirthDate.birthDatetime, start of DepressionEncounter.relevantPeriod)>= 12\r\n\t\twhere DepressionEncounter.relevantPeriod ends during \"Measurement Period\"\r\n\t\t\tand end of DepressionEncounter.relevantPeriod in \"January through April of Measurement Period\"\r\n\r\ndefine \"Depression Encounter in May through August\":\r\n\t[\"Encounter, Performed\": \"Contact or Office Visit\"] DepressionEncounter\r\n\t\twith \"Depression Diagnoses\" Depression\r\n\t\t\tsuch that DepressionEncounter.relevantPeriod overlaps Depression.prevalencePeriod\r\n\t\twith [\"Patient Characteristic Birthdate\"] BirthDate\r\n\t\t\tsuch that Global.\"CalendarAgeInYearsAt\"(BirthDate.birthDatetime, start of DepressionEncounter.relevantPeriod)>= 12\r\n\t\twhere DepressionEncounter.relevantPeriod ends during \"Measurement Period\"\r\n\t\t\tand end of DepressionEncounter.relevantPeriod in \"May through August of Measurement Period\"\r\n\r\ndefine \"Depression Encounter in September through December\":\r\n\t[\"Encounter, Performed\": \"Contact or Office Visit\"] DepressionEncounter\r\n\t\twith \"Depression Diagnoses\" Depression\r\n\t\t\tsuch that DepressionEncounter.relevantPeriod overlaps Depression.prevalencePeriod\r\n\t\twith [\"Patient Characteristic Birthdate\"] BirthDate\r\n\t\t\tsuch that Global.\"CalendarAgeInYearsAt\"(BirthDate.birthDatetime, start of DepressionEncounter.relevantPeriod)>= 12\r\n\t\twhere DepressionEncounter.relevantPeriod ends during \"Measurement Period\"\r\n\t\t\tand end of DepressionEncounter.relevantPeriod in \"September through December of Measurement Period\"\r\n\r\ndefine \"Disorder Diagnoses Overlaps Depression Encounter in September through December\":\r\n\t( [\"Diagnosis\": \"Bipolar Disorder\"]\r\n\t\tunion [\"Diagnosis\": \"Personality Disorder\"]\r\n\t\tunion [\"Diagnosis\": \"Schizophrenia or Psychotic Disorder\"]\r\n\t\tunion [\"Diagnosis\": \"Pervasive Developmental Disorder\"] ) DisorderDiagnoses\r\n\t\twith \"Depression Encounter in September through December\" DepressionEncounter\r\n\t\t\tsuch that DisorderDiagnoses.prevalencePeriod overlaps DepressionEncounter.relevantPeriod\r\n\r\ndefine \"Disorder Diagnoses Overlaps Depression Encounter in January through April\":\r\n\t( [\"Diagnosis\": \"Bipolar Disorder\"]\r\n\t\tunion [\"Diagnosis\": \"Personality Disorder\"]\r\n\t\tunion [\"Diagnosis\": \"Schizophrenia or Psychotic Disorder\"]\r\n\t\tunion [\"Diagnosis\": \"Pervasive Developmental Disorder\"] ) DisorderDiagnoses\r\n\t\twith \"Depression Encounter in January through April\" DepressionEncounter\r\n\t\t\tsuch that DisorderDiagnoses.prevalencePeriod overlaps DepressionEncounter.relevantPeriod\r\n\r\ndefine \"January through April of Measurement Period\":\r\n\tInterval[start of \"Measurement Period\", start of \"Measurement Period\" + 4 months )\r\n\r\ndefine \"May through August of Measurement Period\":\r\n\tInterval[start of \"Measurement Period\" + 4 months, start of \"Measurement Period\" + 8 months )\r\n\r\ndefine \"September through December of Measurement Period\":\r\n\tInterval[start of \"Measurement Period\" + 8 months, end of \"Measurement Period\"]\r\n",
    "library MATGlobalCommonFunctions version '2.0.000'\r\n\r\nusing QDM version '5.3'\r\n\r\ncodesystem \"LOINC:2.46\": 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.46'\r\ncodesystem \"SNOMEDCT:2016-03\": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2016-03'\r\n\r\nvalueset \"Emergency Department Visit\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.292'\r\nvalueset \"Encounter Inpatient\": 'urn:oid:2.16.840.1.113883.3.666.5.307'\r\nvalueset \"Intensive Care Unit\": 'urn:oid:2.16.840.1.113762.1.4.1110.23'\r\n\r\ncode \"Birthdate\": '21112-8' from \"LOINC:2.46\" display 'Birth date'\r\ncode \"Dead\": '419099009' from \"SNOMEDCT:2016-03\" display 'Dead'\r\n\r\nparameter \"Measurement Period\" Interval<DateTime>\r\n\r\ncontext Patient\r\n\r\ndefine \"Encounter\":\r\n\t[\"Encounter, Performed\": \"Emergency Department Visit\"]\r\n\r\ndefine \"Inpatient Encounter\":\r\n\t[\"Encounter, Performed\": \"Encounter Inpatient\"] EncounterInpatient\r\n\t\twhere \"LengthInDays\"(EncounterInpatient.relevantPeriod)<= 120\r\n\t\t\tand EncounterInpatient.relevantPeriod ends during \"Measurement Period\"\n\n/*ToDate takes a given DateTime value and returns a DateTime with the time components \"zeroed\", and the timezone of the input value, for example, given the DateTime @2012-01-01T06:30:00.0Z, this function will return @2012-01-01T00:00:00.0Z.*/\r\n\r\ndefine function \"ToDate\"(Value DateTime):\r\n\tDateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezone from Value)\n\n/*CalendarAgeInDaysAt calculates the calendar age (meaning the age without considering time components) in days.*/\r\n\r\ndefine function \"CalendarAgeInDaysAt\"(BirthDateTime DateTime, AsOf DateTime):\r\n\tdays between ToDate(BirthDateTime)and ToDate(AsOf)\n\n/*CalendarAgeInDays calculates the calendar age (meaning the age without considering time components) in days as of today*/\r\n\r\ndefine function \"CalendarAgeInDays\"(BirthDateTime DateTime):\r\n\tCalendarAgeInDaysAt(BirthDateTime, Today())\n\n/*CalendarAgeInMonthsAt calculates the calendar age (meaning the age without considering time components) in months.*/\r\n\r\ndefine function \"CalendarAgeInMonthsAt\"(BirthDateTime DateTime, AsOf DateTime):\r\n\tmonths between ToDate(BirthDateTime)and ToDate(AsOf)\n\n/*CalendarAgeInMonths calculates the calendar age (meaning the age without considering time components) in months as of today.*/\r\n\r\ndefine function \"CalendarAgeInMonths\"(BirthDateTime DateTime):\r\n\tCalendarAgeInMonthsAt(BirthDateTime, Today())\n\n/*CalendarAgeInYearsAt calculates the calendar age (meaning the age without considering time components) in years.*/\r\n\r\ndefine function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime):\r\n\tyears between ToDate(BirthDateTime)and ToDate(AsOf)\n\n/*CalendarAgeInYears calculates the calendar age (meaning the age without considering time components) in years as of today.*/\r\n\r\ndefine function \"CalendarAgeInYears\"(BirthDateTime DateTime):\r\n\tCalendarAgeInYearsAt(BirthDateTime, Today())\n\n/*Hospitalization returns the total interval for admission to discharge for the given encounter, or for the admission of any immediately prior emergency department visit to the discharge of the given encounter.*/\r\n\r\ndefine function \"Hospitalization\"(Encounter \"Encounter, Performed\"):\r\n\t( singleton from ( [\"Encounter, Performed\": \"Emergency Department Visit\"] EDVisit\r\n\t\t\twhere EDVisit.relevantPeriod ends 1 hour or less on or before start of Encounter.relevantPeriod\r\n\t) ) X\r\n\t\treturn if X is null then Encounter.relevantPeriod else Interval[start of X.relevantPeriod, end of Encounter.relevantPeriod]\n\n/*calculates the difference in calendar days between the start and end of the given interval.*/\r\n\r\ndefine function \"LengthInDays\"(Value Interval<DateTime>):\r\n\tdifference in days between start of Value and end of Value\n\n/* returns list of all locations within an encounter, including locations for immediately prior ED visit.  If data contains many encounters within 1 hour before the start of encounter error will occur indicating the hospitalization cannot be determined*/\r\n\r\ndefine function \"Hospitalization Locations\"(Encounter \"Encounter, Performed\"):\r\n\t( singleton from ( [\"Encounter, Performed\": \"Emergency Department Visit\"] EDVisit\r\n\t\t\twhere EDVisit.relevantPeriod ends 1 hour or less on or before start of Encounter.relevantPeriod\r\n\t) ) EDEncounter\r\n\t\treturn if EDEncounter is null then Encounter.facilityLocations else flatten { EDEncounter.facilityLocations, Encounter.facilityLocations }\n\n/*Returns the length of stay in days (i.e. the number of days between admission and discharge) for the given encounter, or from the admission of any immediately prior emergency department visit to the discharge of the encounter*/\r\n\r\ndefine function \"Hospitalization Length of Stay\"(Encounter \"Encounter, Performed\"):\r\n\tLengthInDays(\"Hospitalization\"(Encounter))\n\n/*Returns admission time for an encounter or for immediately prior emergency department visit.  If the data contain many encounters within 1 hour before the start of the encounter an error indicating hospitalization cannot be determined\n*/\r\n\r\ndefine function \"Hospital Admission Time\"(Encounter \"Encounter, Performed\"):\r\n\tstart of \"Hospitalization\"(Encounter)\n\n/*Hospital Discharge Time returns the discharge time for an encounter*/\r\n\r\ndefine function \"Hospital Discharge Time\"(Encounter \"Encounter, Performed\"):\r\n\tend of Encounter.relevantPeriod\n\n/*Returns earliest arrival time for an encounter including any prior ED visit. If the data contain multiple encounters within 1 hour before the start of the encounter, an error will occur indicating it cannot be unambiguously determined\n*/\r\n\r\ndefine function \"Hospital Arrival Time\"(Encounter \"Encounter, Performed\"):\r\n\tstart of First((\"Hospitalization Locations\"(Encounter))HospitalLocation\r\n\t\t\tsort by start of locationPeriod\r\n\t).locationPeriod\n\n/*Returns the latest departure time for encounter including any prior ED visit. If the data contain multiple encounters within 1 hour before the start of the encounter, an error will occur indicating it cannot be unambiguously determined*/\r\n\r\ndefine function \"Hospital Departure Time\"(Encounter \"Encounter, Performed\"):\r\n\tend of Last((\"Hospitalization Locations\"(Encounter))HospitalLocation\r\n\t\t\tsort by start of locationPeriod\r\n\t).locationPeriod\n\n/*Returns the arrival time in the ED for the encounter.  If the data contain multiple encounters within 1 hour before the start of the encounter or multiple ED locations an error will occur indicating it cannot be determined\n*/\r\n\r\ndefine function \"Emergency Department Arrival Time\"(Encounter \"Encounter, Performed\"):\r\n\tstart of ( singleton from ( ( \"Hospitalization Locations\"(Encounter)) HospitalLocation\r\n\t\t\t\twhere HospitalLocation.code in \"Emergency Department Visit\"\r\n\t\t)\r\n\t).locationPeriod\n\n/*First Inpatient Intensive Care Unit returns the first intensive care unit for\nthe given encounter, without considering any immediately prior emergency\ndepartment visit.*/\r\n\r\ndefine function \"First Inpatient Intensive Care Unit\"(Encounter \"Encounter, Performed\"):\r\n\tFirst((Encounter.facilityLocations)HospitalLocation\r\n\t\t\twhere HospitalLocation.code in \"Intensive Care Unit\"\r\n\t\t\t\tand HospitalLocation.locationPeriod during Encounter.relevantPeriod\r\n\t\t\tsort by start of locationPeriod\r\n\t)\r\n"
  ],
  "cql_statement_dependencies": {
    "DepressionUtilizationofthePHQ9Tool": {
      "Patient": [

      ],
      "SDE Ethnicity": [

      ],
      "SDE Payer": [

      ],
      "SDE Race": [

      ],
      "SDE Sex": [

      ],
      "Depression Diagnoses": [

      ],
      "September through December of Measurement Period": [

      ],
      "Depression Encounter in September through December": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Diagnoses"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "September through December of Measurement Period"
        }
      ],
      "Initial Population 1": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in September through December"
        }
      ],
      "Denominator 1": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Initial Population 1"
        }
      ],
      "May through August of Measurement Period": [

      ],
      "Depression Encounter in May through August": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Diagnoses"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "May through August of Measurement Period"
        }
      ],
      "Initial Population 2": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in May through August"
        }
      ],
      "Denominator 2": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Initial Population 2"
        }
      ],
      "January through April of Measurement Period": [

      ],
      "Depression Encounter in January through April": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Diagnoses"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "January through April of Measurement Period"
        }
      ],
      "Initial Population 3": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in January through April"
        }
      ],
      "Denominator 3": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Initial Population 3"
        }
      ],
      "Disorder Diagnoses Overlaps Depression Encounter in May through August": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in May through August"
        }
      ],
      "Expired in September through December": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "September through December of Measurement Period"
        }
      ],
      "Expired in May through August": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "May through August of Measurement Period"
        }
      ],
      "Expired in January through April": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "January through April of Measurement Period"
        }
      ],
      "Stratification 1_1": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in September through December"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        }
      ],
      "Stratification 1_2": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in September through December"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        }
      ],
      "Stratification 2_1": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in May through August"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        }
      ],
      "Stratification 2_2": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in May through August"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        }
      ],
      "Stratification 3_1": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in January through April"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        }
      ],
      "Stratification 3_2": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in January through April"
        },
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "CalendarAgeInYearsAt"
        }
      ],
      "Numerator 1": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "September through December of Measurement Period"
        }
      ],
      "Numerator 2": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "May through August of Measurement Period"
        }
      ],
      "Numerator 3": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "January through April of Measurement Period"
        }
      ],
      "Long Term Care Overlaps January through April": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "January through April of Measurement Period"
        }
      ],
      "Long Term Care Overlaps May through August": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "May through August of Measurement Period"
        }
      ],
      "Long Term Care Overlaps September through December": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "September through December of Measurement Period"
        }
      ],
      "Palliative Care Order Before End of December": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "September through December of Measurement Period"
        }
      ],
      "Palliative Care Order Before End of April": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "January through April of Measurement Period"
        }
      ],
      "Palliative Care Order Before End of August": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "May through August of Measurement Period"
        }
      ],
      "Encounter Palliative Care Overlaps September through December": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "September through December of Measurement Period"
        }
      ],
      "Encounter Palliative Care Overlaps May through August": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "May through August of Measurement Period"
        }
      ],
      "Encounter Palliative Care Overlaps January through April": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "January through April of Measurement Period"
        }
      ],
      "Disorder Diagnoses Overlaps Depression Encounter in September through December": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in September through December"
        }
      ],
      "Denominator Exclusion 1": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Palliative Care Order Before End of December"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Encounter Palliative Care Overlaps September through December"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Long Term Care Overlaps September through December"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Expired in September through December"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Disorder Diagnoses Overlaps Depression Encounter in September through December"
        }
      ],
      "Denominator Exclusion 2": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Palliative Care Order Before End of August"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Encounter Palliative Care Overlaps May through August"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Long Term Care Overlaps May through August"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Expired in May through August"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Disorder Diagnoses Overlaps Depression Encounter in May through August"
        }
      ],
      "Disorder Diagnoses Overlaps Depression Encounter in January through April": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Depression Encounter in January through April"
        }
      ],
      "Denominator Exclusion 3": [
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Palliative Care Order Before End of April"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Encounter Palliative Care Overlaps January through April"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Long Term Care Overlaps January through April"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Expired in January through April"
        },
        {
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Disorder Diagnoses Overlaps Depression Encounter in January through April"
        }
      ]
    },
    "MATGlobalCommonFunctions": {
      "CalendarAgeInYearsAt": [
        {
          "library_name": "MATGlobalCommonFunctions",
          "statement_name": "ToDate"
        }
      ],
      "ToDate": [

      ]
    }
  },
  "created_at": "2018-03-26T18:55:42.536Z",
  "data_criteria": {
    "Payer_PatientCharacteristicPayer_51c5eb3e_7f59_43f3_ac6e_a2d2a0562e4e": {
      "title": "Payer",
      "description": "Patient Characteristic Payer: Payer",
      "code_list_id": "2.16.840.1.114222.4.11.3591",
      "property": "payer",
      "type": "characteristic",
      "definition": "patient_characteristic_payer",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Payer_PatientCharacteristicPayer_51c5eb3e_7f59_43f3_ac6e_a2d2a0562e4e_source",
      "variable": false,
      "inline_code_list": {
        "Source of Payment Typology": [
          "1",
          "11",
          "111",
          "112",
          "113",
          "119",
          "12",
          "121",
          "122",
          "123",
          "129",
          "13",
          "14",
          "19",
          "191",
          "2",
          "21",
          "211",
          "212",
          "213",
          "219",
          "22",
          "23",
          "24",
          "25",
          "26",
          "29",
          "291",
          "299",
          "3",
          "31",
          "311",
          "3111",
          "3112",
          "3113",
          "3114",
          "3115",
          "3116",
          "3119",
          "312",
          "3121",
          "3122",
          "3123",
          "313",
          "32",
          "321",
          "3211",
          "3212",
          "32121",
          "32122",
          "32123",
          "32124",
          "32125",
          "32126",
          "32127",
          "32128",
          "322",
          "3221",
          "3222",
          "3223",
          "3229",
          "33",
          "331",
          "332",
          "333",
          "334",
          "34",
          "341",
          "342",
          "343",
          "349",
          "35",
          "36",
          "361",
          "362",
          "369",
          "37",
          "371",
          "3711",
          "3712",
          "3713",
          "372",
          "379",
          "38",
          "381",
          "3811",
          "3812",
          "3813",
          "3819",
          "382",
          "389",
          "39",
          "391",
          "4",
          "41",
          "42",
          "43",
          "44",
          "5",
          "51",
          "511",
          "512",
          "513",
          "514",
          "515",
          "516",
          "517",
          "519",
          "52",
          "521",
          "522",
          "523",
          "524",
          "529",
          "53",
          "54",
          "55",
          "56",
          "561",
          "562",
          "59",
          "6",
          "61",
          "611",
          "612",
          "613",
          "614",
          "619",
          "62",
          "621",
          "622",
          "623",
          "629",
          "7",
          "71",
          "72",
          "73",
          "79",
          "8",
          "81",
          "82",
          "821",
          "822",
          "823",
          "83",
          "84",
          "85",
          "89",
          "9",
          "91",
          "92",
          "93",
          "94",
          "95",
          "951",
          "953",
          "954",
          "959",
          "96",
          "97",
          "98",
          "99",
          "9999"
        ]
      }
    },
    "ONCAdministrativeSex_PatientCharacteristicSex_62630a16_6370_41b6_a1fe_bbf014f6076a": {
      "title": "ONCAdministrativeSex",
      "description": "Patient Characteristic Sex: ONCAdministrativeSex",
      "code_list_id": "2.16.840.1.113762.1.4.1",
      "property": "gender",
      "type": "characteristic",
      "definition": "patient_characteristic_gender",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "ONCAdministrativeSex_PatientCharacteristicSex_62630a16_6370_41b6_a1fe_bbf014f6076a_source",
      "variable": false,
      "value": {
        "type": "CD",
        "system": "Administrative Sex",
        "code": "F"
      }
    },
    "PersonalityDisorder_Diagnosis_02fbde96_d881_44a0_b315_59e4c3eeb158": {
      "title": "PersonalityDisorder",
      "description": "Diagnosis: PersonalityDisorder",
      "code_list_id": "2.16.840.1.113883.3.67.1.101.1.246",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "PersonalityDisorder_Diagnosis_02fbde96_d881_44a0_b315_59e4c3eeb158_source",
      "variable": false
    },
    "PalliativeCare_InterventionOrder_40280381_3d61_56a7_013e_8a3638283368": {
      "title": "PalliativeCare",
      "description": "Intervention, Order: PalliativeCare",
      "code_list_id": "2.16.840.1.113883.3.600.1.1579",
      "type": "interventions",
      "definition": "intervention",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "PalliativeCare_InterventionOrder_40280381_3d61_56a7_013e_8a3638283368_source",
      "variable": false
    },
    "CareServicesinLong_TermResidentialFacility_EncounterPerformed_40280381_3e93_d1af_013e_a8c4e64a4ad3": {
      "title": "CareServicesinLong-TermResidentialFacility",
      "description": "Encounter, Performed: CareServicesinLong-TermResidentialFacility",
      "code_list_id": "2.16.840.1.113883.3.464.1003.101.12.1014",
      "type": "encounters",
      "definition": "encounter",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "CareServicesinLong_TermResidentialFacility_EncounterPerformed_40280381_3e93_d1af_013e_a8c4e64a4ad3_source",
      "variable": false
    },
    "PervasiveDevelopmentalDisorder_Diagnosis_ed02a53c_7e29_47e7_9c4d_df4de6ef2e2f": {
      "title": "PervasiveDevelopmentalDisorder",
      "description": "Diagnosis: PervasiveDevelopmentalDisorder",
      "code_list_id": "2.16.840.1.113883.3.464.1003.105.12.1152",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "PervasiveDevelopmentalDisorder_Diagnosis_ed02a53c_7e29_47e7_9c4d_df4de6ef2e2f_source",
      "variable": false
    },
    "Dysthymia_Diagnosis_6193b77b_e502_40cd_8ff4_a51a269f141a": {
      "title": "Dysthymia",
      "description": "Diagnosis: Dysthymia",
      "code_list_id": "2.16.840.1.113883.3.67.1.101.1.254",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Dysthymia_Diagnosis_6193b77b_e502_40cd_8ff4_a51a269f141a_source",
      "variable": false
    },
    "Ethnicity_PatientCharacteristicEthnicity_246a82b4_2eaf_4b8e_ac36_ca036e1b97dd": {
      "title": "Ethnicity",
      "description": "Patient Characteristic Ethnicity: Ethnicity",
      "code_list_id": "2.16.840.1.114222.4.11.837",
      "property": "ethnicity",
      "type": "characteristic",
      "definition": "patient_characteristic_ethnicity",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Ethnicity_PatientCharacteristicEthnicity_246a82b4_2eaf_4b8e_ac36_ca036e1b97dd_source",
      "variable": false,
      "inline_code_list": {
        "CDC Race": [
          "2135-2",
          "2186-5"
        ]
      }
    },
    "BipolarDisorder_Diagnosis_89a1244b_f388_4261_949a_70b82971f63d": {
      "title": "BipolarDisorder",
      "description": "Diagnosis: BipolarDisorder",
      "code_list_id": "2.16.840.1.113883.3.67.1.101.1.128",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "BipolarDisorder_Diagnosis_89a1244b_f388_4261_949a_70b82971f63d_source",
      "variable": false
    },
    "ContactorOfficeVisit_EncounterPerformed_10738510_f38d_45d2_ba1b_c6705db1da37": {
      "title": "ContactorOfficeVisit",
      "description": "Encounter, Performed: ContactorOfficeVisit",
      "code_list_id": "2.16.840.1.113762.1.4.1080.5",
      "type": "encounters",
      "definition": "encounter",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "ContactorOfficeVisit_EncounterPerformed_10738510_f38d_45d2_ba1b_c6705db1da37_source",
      "variable": false
    },
    "Race_PatientCharacteristicRace_18b082b8_69da_4b5a_ab71_943a6f8f64e5": {
      "title": "Race",
      "description": "Patient Characteristic Race: Race",
      "code_list_id": "2.16.840.1.114222.4.11.836",
      "property": "race",
      "type": "characteristic",
      "definition": "patient_characteristic_race",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Race_PatientCharacteristicRace_18b082b8_69da_4b5a_ab71_943a6f8f64e5_source",
      "variable": false,
      "inline_code_list": {
        "CDC Race": [
          "1002-5",
          "2028-9",
          "2054-5",
          "2076-8",
          "2106-3",
          "2131-1"
        ]
      }
    },
    "SchizophreniaorPsychoticDisorder_Diagnosis_1c90cdb3_3fe2_4c3d_913b_21991327a8fd": {
      "title": "SchizophreniaorPsychoticDisorder",
      "description": "Diagnosis: SchizophreniaorPsychoticDisorder",
      "code_list_id": "2.16.840.1.113883.3.464.1003.105.12.1104",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "SchizophreniaorPsychoticDisorder_Diagnosis_1c90cdb3_3fe2_4c3d_913b_21991327a8fd_source",
      "variable": false
    },
    "Palliativecareencounter_EncounterPerformed_c69c8f5b_5312_470b_bf8b_b43ee052e0d4": {
      "title": "Palliativecareencounter",
      "description": "Encounter, Performed: Palliativecareencounter",
      "code_list_id": "2.16.840.1.113883.3.600.1.1575",
      "type": "encounters",
      "definition": "encounter",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Palliativecareencounter_EncounterPerformed_c69c8f5b_5312_470b_bf8b_b43ee052e0d4_source",
      "variable": false
    },
    "MajorDepressionIncludingRemission_Diagnosis_aa4805f4_54e9_4e60_9bbf_b316aeaa95ba": {
      "title": "MajorDepressionIncludingRemission",
      "description": "Diagnosis: MajorDepressionIncludingRemission",
      "code_list_id": "2.16.840.113883.3.67.1.101.3.2444",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "MajorDepressionIncludingRemission_Diagnosis_aa4805f4_54e9_4e60_9bbf_b316aeaa95ba_source",
      "variable": false
    },
    "prefix_44261_6_AssessmentPerformed_659C4D87_AD09_477D_8252_CBCC5238ACA1": {
      "title": "Assessment, Performed: Assessment, Performed",
      "description": "Assessment, Performed: Assessment, Performed",
      "type": "assessments",
      "definition": "assessment",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "prefix_44261_6_AssessmentPerformed_659C4D87_AD09_477D_8252_CBCC5238ACA1_source",
      "variable": false,
      "inline_code_list": {
        "LOINC": [
          "44261-6"
        ]
      },
      "code_list_id": "drc-da9071720e893683cdde0cc3aaa1bc49e05e169bdeda96800c723f8563830965"
    }
  },
  "description": "The percentage of adolescent patients 12 to 17 years of age and adult patients age 18 and older with the diagnosis of major depression or dysthymia who have a completed PHQ-9 during each applicable 4 month period in which there was a qualifying depression encounter",
  "elm": [
    {
      "library": {
        "identifier": {
          "id": "DepressionUtilizationofthePHQ9Tool",
          "version": "7.3.000"
        },
        "schemaIdentifier": {
          "id": "urn:hl7-org:elm",
          "version": "r1"
        },
        "usings": {
          "def": [
            {
              "localIdentifier": "System",
              "uri": "urn:hl7-org:elm-types:r1"
            },
            {
              "localId": "1",
              "locator": "3:1-3:23",
              "localIdentifier": "QDM",
              "uri": "urn:healthit-gov:qdm:v5_3",
              "version": "5.3"
            }
          ]
        },
        "includes": {
          "def": [
            {
              "localId": "2",
              "locator": "5:1-5:64",
              "localIdentifier": "Global",
              "path": "MATGlobalCommonFunctions",
              "version": "2.0.000"
            }
          ]
        },
        "parameters": {
          "def": [
            {
              "localId": "22",
              "locator": "26:1-26:49",
              "name": "Measurement Period",
              "accessLevel": "Public",
              "parameterTypeSpecifier": {
                "localId": "21",
                "locator": "26:32-26:49",
                "type": "IntervalTypeSpecifier",
                "pointType": {
                  "localId": "20",
                  "locator": "26:41-26:48",
                  "name": "{urn:hl7-org:elm-types:r1}DateTime",
                  "type": "NamedTypeSpecifier"
                }
              }
            }
          ]
        },
        "codeSystems": {
          "def": [
            {
              "localId": "3",
              "locator": "7:1-7:87",
              "name": "LOINC:2.63",
              "id": "LOINC",
              "version": "urn:hl7:version:2.63",
              "accessLevel": "Public"
            }
          ]
        },
        "valueSets": {
          "def": [
            {
              "localId": "4",
              "locator": "9:1-9:68",
              "name": "ONC Administrative Sex",
              "id": "2.16.840.1.113762.1.4.1",
              "accessLevel": "Public"
            },
            {
              "localId": "5",
              "locator": "10:1-10:53",
              "name": "Race",
              "id": "2.16.840.1.114222.4.11.836",
              "accessLevel": "Public"
            },
            {
              "localId": "6",
              "locator": "11:1-11:58",
              "name": "Ethnicity",
              "id": "2.16.840.1.114222.4.11.837",
              "accessLevel": "Public"
            },
            {
              "localId": "7",
              "locator": "12:1-12:55",
              "name": "Payer",
              "id": "2.16.840.1.114222.4.11.3591",
              "accessLevel": "Public"
            },
            {
              "localId": "8",
              "locator": "13:1-13:73",
              "name": "Bipolar Disorder",
              "id": "2.16.840.1.113883.3.67.1.101.1.128",
              "accessLevel": "Public"
            },
            {
              "localId": "9",
              "locator": "14:1-14:110",
              "name": "Care Services in Long-Term Residential Facility",
              "id": "2.16.840.1.113883.3.464.1003.101.12.1014",
              "accessLevel": "Public"
            },
            {
              "localId": "10",
              "locator": "15:1-15:66",
              "name": "Dysthymia",
              "id": "2.16.840.1.113883.3.67.1.101.1.254",
              "accessLevel": "Public"
            },
            {
              "localId": "11",
              "locator": "16:1-16:92",
              "name": "Major Depression Including Remission",
              "id": "2.16.840.113883.3.67.1.101.3.2444",
              "accessLevel": "Public"
            },
            {
              "localId": "12",
              "locator": "17:1-17:68",
              "name": "Palliative Care",
              "id": "2.16.840.1.113883.3.600.1.1579",
              "accessLevel": "Public"
            },
            {
              "localId": "13",
              "locator": "18:1-18:77",
              "name": "Personality Disorder",
              "id": "2.16.840.1.113883.3.67.1.101.1.246",
              "accessLevel": "Public"
            },
            {
              "localId": "14",
              "locator": "19:1-19:78",
              "name": "Palliative care encounter",
              "id": "2.16.840.1.113883.3.600.1.1575",
              "accessLevel": "Public"
            },
            {
              "localId": "15",
              "locator": "20:1-20:74",
              "name": "Contact or Office Visit",
              "id": "2.16.840.1.113762.1.4.1080.5",
              "accessLevel": "Public"
            },
            {
              "localId": "16",
              "locator": "21:1-21:95",
              "name": "Pervasive Developmental Disorder",
              "id": "2.16.840.1.113883.3.464.1003.105.12.1152",
              "accessLevel": "Public"
            },
            {
              "localId": "17",
              "locator": "22:1-22:98",
              "name": "Schizophrenia or Psychotic Disorder",
              "id": "2.16.840.1.113883.3.464.1003.105.12.1104",
              "accessLevel": "Public"
            }
          ]
        },
        "codes": {
          "def": [
            {
              "localId": "19",
              "locator": "24:1-24:179",
              "name": "Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]",
              "id": "44261-6",
              "display": "Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]",
              "accessLevel": "Public",
              "codeSystem": {
                "localId": "18",
                "locator": "24:91-24:102",
                "name": "LOINC:2.63"
              }
            }
          ]
        },
        "statements": {
          "def": [
            {
              "locator": "28:1-28:15",
              "name": "Patient",
              "context": "Patient",
              "expression": {
                "type": "SingletonFrom",
                "operand": {
                  "locator": "28:1-28:15",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                  "templateId": "Patient",
                  "type": "Retrieve"
                }
              }
            },
            {
              "localId": "24",
              "locator": "30:1-31:50",
              "name": "SDE Ethnicity",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "24",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"SDE Ethnicity\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "23",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Patient Characteristic Ethnicity\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"Ethnicity\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "23",
                "locator": "31:2-31:50",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicEthnicity",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "Ethnicity",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "26",
              "locator": "33:1-34:42",
              "name": "SDE Payer",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "26",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"SDE Payer\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "25",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Patient Characteristic Payer\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"Payer\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "25",
                "locator": "34:2-34:42",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicPayer",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "Payer",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "28",
              "locator": "36:1-37:40",
              "name": "SDE Race",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "28",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"SDE Race\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "27",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Patient Characteristic Race\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"Race\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "27",
                "locator": "37:2-37:40",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicRace",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "Race",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "30",
              "locator": "39:1-40:57",
              "name": "SDE Sex",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "30",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"SDE Sex\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "29",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Patient Characteristic Sex\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"ONC Administrative Sex\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "29",
                "locator": "40:2-40:57",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicSex",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "ONC Administrative Sex",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "36",
              "locator": "188:1-190:34",
              "name": "Depression Diagnoses",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "36",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Depression Diagnoses\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "35",
                        "s": [
                          {
                            "r": "33",
                            "s": [
                              {
                                "value": [
                                  "[",
                                  "\"Diagnosis\"",
                                  ": "
                                ]
                              },
                              {
                                "s": [
                                  {
                                    "value": [
                                      "\"Major Depression Including Remission\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "]"
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tunion "
                            ]
                          },
                          {
                            "r": "34",
                            "s": [
                              {
                                "value": [
                                  "[",
                                  "\"Diagnosis\"",
                                  ": "
                                ]
                              },
                              {
                                "s": [
                                  {
                                    "value": [
                                      "\"Dysthymia\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "]"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "35",
                "locator": "189:2-190:34",
                "type": "Union",
                "operand": [
                  {
                    "localId": "33",
                    "locator": "189:2-189:54",
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                    "codeProperty": "code",
                    "type": "Retrieve",
                    "codes": {
                      "name": "Major Depression Including Remission",
                      "type": "ValueSetRef"
                    }
                  },
                  {
                    "localId": "34",
                    "locator": "190:9-190:34",
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                    "codeProperty": "code",
                    "type": "Retrieve",
                    "codes": {
                      "name": "Dysthymia",
                      "type": "ValueSetRef"
                    }
                  }
                ]
              }
            },
            {
              "localId": "71",
              "locator": "241:1-242:80",
              "name": "September through December of Measurement Period",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "71",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"September through December of Measurement Period\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "70",
                        "s": [
                          {
                            "value": [
                              "Interval["
                            ]
                          },
                          {
                            "r": "67",
                            "s": [
                              {
                                "r": "65",
                                "s": [
                                  {
                                    "value": [
                                      "start of "
                                    ]
                                  },
                                  {
                                    "r": "64",
                                    "s": [
                                      {
                                        "value": [
                                          "\"Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  " + "
                                ]
                              },
                              {
                                "r": "66",
                                "s": [
                                  {
                                    "value": [
                                      "8 ",
                                      "months"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              ", "
                            ]
                          },
                          {
                            "r": "69",
                            "s": [
                              {
                                "value": [
                                  "end of "
                                ]
                              },
                              {
                                "r": "68",
                                "s": [
                                  {
                                    "value": [
                                      "\"Measurement Period\""
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "70",
                "locator": "242:2-242:80",
                "lowClosed": true,
                "highClosed": true,
                "type": "Interval",
                "low": {
                  "localId": "67",
                  "locator": "242:11-242:50",
                  "type": "Add",
                  "operand": [
                    {
                      "localId": "65",
                      "locator": "242:11-242:39",
                      "type": "Start",
                      "operand": {
                        "localId": "64",
                        "locator": "242:20-242:39",
                        "name": "Measurement Period",
                        "type": "ParameterRef"
                      }
                    },
                    {
                      "localId": "66",
                      "locator": "242:43-242:50",
                      "value": 8,
                      "unit": "months",
                      "type": "Quantity"
                    }
                  ]
                },
                "high": {
                  "localId": "69",
                  "locator": "242:53-242:79",
                  "type": "End",
                  "operand": {
                    "localId": "68",
                    "locator": "242:60-242:79",
                    "name": "Measurement Period",
                    "type": "ParameterRef"
                  }
                }
              }
            },
            {
              "localId": "76",
              "locator": "210:1-217:102",
              "name": "Depression Encounter in September through December",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "76",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Depression Encounter in September through December\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "75",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "32",
                                "s": [
                                  {
                                    "r": "31",
                                    "s": [
                                      {
                                        "r": "31",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Contact or Office Visit\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "44",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "38",
                                "s": [
                                  {
                                    "r": "37",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Diagnoses\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Depression"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "43",
                                "s": [
                                  {
                                    "r": "40",
                                    "s": [
                                      {
                                        "r": "39",
                                        "s": [
                                          {
                                            "value": [
                                              "DepressionEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "40",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "42",
                                    "s": [
                                      {
                                        "r": "41",
                                        "s": [
                                          {
                                            "value": [
                                              "Depression"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "42",
                                        "s": [
                                          {
                                            "value": [
                                              "prevalencePeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "56",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "46",
                                "s": [
                                  {
                                    "r": "45",
                                    "s": [
                                      {
                                        "r": "45",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Birthdate\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "BirthDate"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "55",
                                "s": [
                                  {
                                    "r": "53",
                                    "s": [
                                      {
                                        "r": "47",
                                        "s": [
                                          {
                                            "value": [
                                              "Global"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "53",
                                        "s": [
                                          {
                                            "value": [
                                              "\"CalendarAgeInYearsAt\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "49",
                                            "s": [
                                              {
                                                "r": "48",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "BirthDate"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "49",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "birthDatetime"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ", "
                                            ]
                                          },
                                          {
                                            "r": "52",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "51",
                                                "s": [
                                                  {
                                                    "r": "50",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "51",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ">=",
                                      " ",
                                      "12"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "74",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "74",
                                "s": [
                                  {
                                    "r": "60",
                                    "s": [
                                      {
                                        "r": "58",
                                        "s": [
                                          {
                                            "r": "57",
                                            "s": [
                                              {
                                                "value": [
                                                  "DepressionEncounter"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "58",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "ends during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "59",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "73",
                                    "s": [
                                      {
                                        "r": "63",
                                        "s": [
                                          {
                                            "value": [
                                              "end of "
                                            ]
                                          },
                                          {
                                            "r": "62",
                                            "s": [
                                              {
                                                "r": "61",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "DepressionEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "62",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " in "
                                        ]
                                      },
                                      {
                                        "r": "72",
                                        "s": [
                                          {
                                            "value": [
                                              "\"September through December of Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "75",
                "locator": "211:2-217:102",
                "type": "Query",
                "source": [
                  {
                    "localId": "32",
                    "locator": "211:2-211:72",
                    "alias": "DepressionEncounter",
                    "expression": {
                      "localId": "31",
                      "locator": "211:2-211:52",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Contact or Office Visit",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "44",
                    "locator": "212:3-213:84",
                    "alias": "Depression",
                    "type": "With",
                    "expression": {
                      "localId": "37",
                      "locator": "212:8-212:29",
                      "name": "Depression Diagnoses",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "43",
                      "locator": "213:14-213:84",
                      "type": "Overlaps",
                      "operand": [
                        {
                          "localId": "40",
                          "locator": "213:14-213:47",
                          "path": "relevantPeriod",
                          "scope": "DepressionEncounter",
                          "type": "Property"
                        },
                        {
                          "localId": "42",
                          "locator": "213:58-213:84",
                          "path": "prevalencePeriod",
                          "scope": "Depression",
                          "type": "Property"
                        }
                      ]
                    }
                  },
                  {
                    "localId": "56",
                    "locator": "214:3-215:117",
                    "alias": "BirthDate",
                    "type": "With",
                    "expression": {
                      "localId": "45",
                      "locator": "214:8-214:43",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                      "type": "Retrieve"
                    },
                    "suchThat": {
                      "localId": "55",
                      "locator": "215:14-215:117",
                      "type": "GreaterOrEqual",
                      "operand": [
                        {
                          "localId": "53",
                          "locator": "215:14-215:112",
                          "name": "CalendarAgeInYearsAt",
                          "libraryName": "Global",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "49",
                              "locator": "215:44-215:66",
                              "path": "birthDatetime",
                              "scope": "BirthDate",
                              "type": "Property"
                            },
                            {
                              "localId": "52",
                              "locator": "215:69-215:111",
                              "type": "Start",
                              "operand": {
                                "localId": "51",
                                "locator": "215:78-215:111",
                                "path": "relevantPeriod",
                                "scope": "DepressionEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "54",
                          "locator": "215:116-215:117",
                          "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                          "value": "12",
                          "type": "Literal"
                        }
                      ]
                    }
                  }
                ],
                "where": {
                  "localId": "74",
                  "locator": "216:3-217:102",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "60",
                      "locator": "216:9-216:75",
                      "type": "In",
                      "operand": [
                        {
                          "locator": "216:44-216:47",
                          "type": "End",
                          "operand": {
                            "localId": "58",
                            "locator": "216:9-216:42",
                            "path": "relevantPeriod",
                            "scope": "DepressionEncounter",
                            "type": "Property"
                          }
                        },
                        {
                          "localId": "59",
                          "locator": "216:56-216:75",
                          "name": "Measurement Period",
                          "type": "ParameterRef"
                        }
                      ]
                    },
                    {
                      "localId": "73",
                      "locator": "217:8-217:102",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "63",
                          "locator": "217:8-217:48",
                          "type": "End",
                          "operand": {
                            "localId": "62",
                            "locator": "217:15-217:48",
                            "path": "relevantPeriod",
                            "scope": "DepressionEncounter",
                            "type": "Property"
                          }
                        },
                        {
                          "localId": "72",
                          "locator": "217:53-217:102",
                          "name": "September through December of Measurement Period",
                          "type": "ExpressionRef"
                        }
                      ]
                    }
                  ]
                }
              }
            },
            {
              "localId": "79",
              "locator": "104:1-105:64",
              "name": "Initial Population 1",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "79",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Initial Population 1\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "78",
                        "s": [
                          {
                            "value": [
                              "exists "
                            ]
                          },
                          {
                            "r": "77",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "77",
                                "s": [
                                  {
                                    "value": [
                                      "\"Depression Encounter in September through December\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  " )"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "78",
                "locator": "105:2-105:64",
                "type": "Exists",
                "operand": {
                  "localId": "77",
                  "locator": "105:9-105:64",
                  "name": "Depression Encounter in September through December",
                  "type": "ExpressionRef"
                }
              }
            },
            {
              "localId": "81",
              "locator": "42:1-43:23",
              "name": "Denominator 1",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "81",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Denominator 1\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "80",
                        "s": [
                          {
                            "value": [
                              "\"Initial Population 1\""
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "80",
                "locator": "43:2-43:23",
                "name": "Initial Population 1",
                "type": "ExpressionRef"
              }
            },
            {
              "localId": "120",
              "locator": "238:1-239:94",
              "name": "May through August of Measurement Period",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "120",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"May through August of Measurement Period\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "119",
                        "s": [
                          {
                            "value": [
                              "Interval["
                            ]
                          },
                          {
                            "r": "114",
                            "s": [
                              {
                                "r": "112",
                                "s": [
                                  {
                                    "value": [
                                      "start of "
                                    ]
                                  },
                                  {
                                    "r": "111",
                                    "s": [
                                      {
                                        "value": [
                                          "\"Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  " + "
                                ]
                              },
                              {
                                "r": "113",
                                "s": [
                                  {
                                    "value": [
                                      "4 ",
                                      "months"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              ", "
                            ]
                          },
                          {
                            "r": "118",
                            "s": [
                              {
                                "r": "116",
                                "s": [
                                  {
                                    "value": [
                                      "start of "
                                    ]
                                  },
                                  {
                                    "r": "115",
                                    "s": [
                                      {
                                        "value": [
                                          "\"Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  " + "
                                ]
                              },
                              {
                                "r": "117",
                                "s": [
                                  {
                                    "value": [
                                      "8 ",
                                      "months"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              " )"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "119",
                "locator": "239:2-239:94",
                "lowClosed": true,
                "highClosed": false,
                "type": "Interval",
                "low": {
                  "localId": "114",
                  "locator": "239:11-239:50",
                  "type": "Add",
                  "operand": [
                    {
                      "localId": "112",
                      "locator": "239:11-239:39",
                      "type": "Start",
                      "operand": {
                        "localId": "111",
                        "locator": "239:20-239:39",
                        "name": "Measurement Period",
                        "type": "ParameterRef"
                      }
                    },
                    {
                      "localId": "113",
                      "locator": "239:43-239:50",
                      "value": 4,
                      "unit": "months",
                      "type": "Quantity"
                    }
                  ]
                },
                "high": {
                  "localId": "118",
                  "locator": "239:53-239:92",
                  "type": "Add",
                  "operand": [
                    {
                      "localId": "116",
                      "locator": "239:53-239:81",
                      "type": "Start",
                      "operand": {
                        "localId": "115",
                        "locator": "239:62-239:81",
                        "name": "Measurement Period",
                        "type": "ParameterRef"
                      }
                    },
                    {
                      "localId": "117",
                      "locator": "239:85-239:92",
                      "value": 8,
                      "unit": "months",
                      "type": "Quantity"
                    }
                  ]
                }
              }
            },
            {
              "localId": "125",
              "locator": "201:1-208:94",
              "name": "Depression Encounter in May through August",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "125",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Depression Encounter in May through August\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "124",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "83",
                                "s": [
                                  {
                                    "r": "82",
                                    "s": [
                                      {
                                        "r": "82",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Contact or Office Visit\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "91",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "85",
                                "s": [
                                  {
                                    "r": "84",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Diagnoses\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Depression"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "90",
                                "s": [
                                  {
                                    "r": "87",
                                    "s": [
                                      {
                                        "r": "86",
                                        "s": [
                                          {
                                            "value": [
                                              "DepressionEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "87",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "89",
                                    "s": [
                                      {
                                        "r": "88",
                                        "s": [
                                          {
                                            "value": [
                                              "Depression"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "89",
                                        "s": [
                                          {
                                            "value": [
                                              "prevalencePeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "103",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "93",
                                "s": [
                                  {
                                    "r": "92",
                                    "s": [
                                      {
                                        "r": "92",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Birthdate\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "BirthDate"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "102",
                                "s": [
                                  {
                                    "r": "100",
                                    "s": [
                                      {
                                        "r": "94",
                                        "s": [
                                          {
                                            "value": [
                                              "Global"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "100",
                                        "s": [
                                          {
                                            "value": [
                                              "\"CalendarAgeInYearsAt\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "96",
                                            "s": [
                                              {
                                                "r": "95",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "BirthDate"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "96",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "birthDatetime"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ", "
                                            ]
                                          },
                                          {
                                            "r": "99",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "98",
                                                "s": [
                                                  {
                                                    "r": "97",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "98",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ">=",
                                      " ",
                                      "12"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "123",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "123",
                                "s": [
                                  {
                                    "r": "107",
                                    "s": [
                                      {
                                        "r": "105",
                                        "s": [
                                          {
                                            "r": "104",
                                            "s": [
                                              {
                                                "value": [
                                                  "DepressionEncounter"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "105",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "ends during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "106",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "122",
                                    "s": [
                                      {
                                        "r": "110",
                                        "s": [
                                          {
                                            "value": [
                                              "end of "
                                            ]
                                          },
                                          {
                                            "r": "109",
                                            "s": [
                                              {
                                                "r": "108",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "DepressionEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "109",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " in "
                                        ]
                                      },
                                      {
                                        "r": "121",
                                        "s": [
                                          {
                                            "value": [
                                              "\"May through August of Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "124",
                "locator": "202:2-208:94",
                "type": "Query",
                "source": [
                  {
                    "localId": "83",
                    "locator": "202:2-202:72",
                    "alias": "DepressionEncounter",
                    "expression": {
                      "localId": "82",
                      "locator": "202:2-202:52",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Contact or Office Visit",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "91",
                    "locator": "203:3-204:84",
                    "alias": "Depression",
                    "type": "With",
                    "expression": {
                      "localId": "84",
                      "locator": "203:8-203:29",
                      "name": "Depression Diagnoses",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "90",
                      "locator": "204:14-204:84",
                      "type": "Overlaps",
                      "operand": [
                        {
                          "localId": "87",
                          "locator": "204:14-204:47",
                          "path": "relevantPeriod",
                          "scope": "DepressionEncounter",
                          "type": "Property"
                        },
                        {
                          "localId": "89",
                          "locator": "204:58-204:84",
                          "path": "prevalencePeriod",
                          "scope": "Depression",
                          "type": "Property"
                        }
                      ]
                    }
                  },
                  {
                    "localId": "103",
                    "locator": "205:3-206:117",
                    "alias": "BirthDate",
                    "type": "With",
                    "expression": {
                      "localId": "92",
                      "locator": "205:8-205:43",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                      "type": "Retrieve"
                    },
                    "suchThat": {
                      "localId": "102",
                      "locator": "206:14-206:117",
                      "type": "GreaterOrEqual",
                      "operand": [
                        {
                          "localId": "100",
                          "locator": "206:14-206:112",
                          "name": "CalendarAgeInYearsAt",
                          "libraryName": "Global",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "96",
                              "locator": "206:44-206:66",
                              "path": "birthDatetime",
                              "scope": "BirthDate",
                              "type": "Property"
                            },
                            {
                              "localId": "99",
                              "locator": "206:69-206:111",
                              "type": "Start",
                              "operand": {
                                "localId": "98",
                                "locator": "206:78-206:111",
                                "path": "relevantPeriod",
                                "scope": "DepressionEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "101",
                          "locator": "206:116-206:117",
                          "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                          "value": "12",
                          "type": "Literal"
                        }
                      ]
                    }
                  }
                ],
                "where": {
                  "localId": "123",
                  "locator": "207:3-208:94",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "107",
                      "locator": "207:9-207:75",
                      "type": "In",
                      "operand": [
                        {
                          "locator": "207:44-207:47",
                          "type": "End",
                          "operand": {
                            "localId": "105",
                            "locator": "207:9-207:42",
                            "path": "relevantPeriod",
                            "scope": "DepressionEncounter",
                            "type": "Property"
                          }
                        },
                        {
                          "localId": "106",
                          "locator": "207:56-207:75",
                          "name": "Measurement Period",
                          "type": "ParameterRef"
                        }
                      ]
                    },
                    {
                      "localId": "122",
                      "locator": "208:8-208:94",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "110",
                          "locator": "208:8-208:48",
                          "type": "End",
                          "operand": {
                            "localId": "109",
                            "locator": "208:15-208:48",
                            "path": "relevantPeriod",
                            "scope": "DepressionEncounter",
                            "type": "Property"
                          }
                        },
                        {
                          "localId": "121",
                          "locator": "208:53-208:94",
                          "name": "May through August of Measurement Period",
                          "type": "ExpressionRef"
                        }
                      ]
                    }
                  ]
                }
              }
            },
            {
              "localId": "128",
              "locator": "107:1-108:56",
              "name": "Initial Population 2",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "128",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Initial Population 2\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "127",
                        "s": [
                          {
                            "value": [
                              "exists "
                            ]
                          },
                          {
                            "r": "126",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "126",
                                "s": [
                                  {
                                    "value": [
                                      "\"Depression Encounter in May through August\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  " )"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "127",
                "locator": "108:2-108:56",
                "type": "Exists",
                "operand": {
                  "localId": "126",
                  "locator": "108:9-108:56",
                  "name": "Depression Encounter in May through August",
                  "type": "ExpressionRef"
                }
              }
            },
            {
              "localId": "130",
              "locator": "45:1-46:23",
              "name": "Denominator 2",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "130",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Denominator 2\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "129",
                        "s": [
                          {
                            "value": [
                              "\"Initial Population 2\""
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "129",
                "locator": "46:2-46:23",
                "name": "Initial Population 2",
                "type": "ExpressionRef"
              }
            },
            {
              "localId": "167",
              "locator": "235:1-236:83",
              "name": "January through April of Measurement Period",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "167",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"January through April of Measurement Period\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "166",
                        "s": [
                          {
                            "value": [
                              "Interval["
                            ]
                          },
                          {
                            "r": "161",
                            "s": [
                              {
                                "value": [
                                  "start of "
                                ]
                              },
                              {
                                "r": "160",
                                "s": [
                                  {
                                    "value": [
                                      "\"Measurement Period\""
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              ", "
                            ]
                          },
                          {
                            "r": "165",
                            "s": [
                              {
                                "r": "163",
                                "s": [
                                  {
                                    "value": [
                                      "start of "
                                    ]
                                  },
                                  {
                                    "r": "162",
                                    "s": [
                                      {
                                        "value": [
                                          "\"Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  " + "
                                ]
                              },
                              {
                                "r": "164",
                                "s": [
                                  {
                                    "value": [
                                      "4 ",
                                      "months"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              " )"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "166",
                "locator": "236:2-236:83",
                "lowClosed": true,
                "highClosed": false,
                "type": "Interval",
                "low": {
                  "localId": "161",
                  "locator": "236:11-236:39",
                  "type": "Start",
                  "operand": {
                    "localId": "160",
                    "locator": "236:20-236:39",
                    "name": "Measurement Period",
                    "type": "ParameterRef"
                  }
                },
                "high": {
                  "localId": "165",
                  "locator": "236:42-236:81",
                  "type": "Add",
                  "operand": [
                    {
                      "localId": "163",
                      "locator": "236:42-236:70",
                      "type": "Start",
                      "operand": {
                        "localId": "162",
                        "locator": "236:51-236:70",
                        "name": "Measurement Period",
                        "type": "ParameterRef"
                      }
                    },
                    {
                      "localId": "164",
                      "locator": "236:74-236:81",
                      "value": 4,
                      "unit": "months",
                      "type": "Quantity"
                    }
                  ]
                }
              }
            },
            {
              "localId": "172",
              "locator": "192:1-199:97",
              "name": "Depression Encounter in January through April",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "172",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Depression Encounter in January through April\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "171",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "132",
                                "s": [
                                  {
                                    "r": "131",
                                    "s": [
                                      {
                                        "r": "131",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Contact or Office Visit\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "140",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "134",
                                "s": [
                                  {
                                    "r": "133",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Diagnoses\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Depression"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "139",
                                "s": [
                                  {
                                    "r": "136",
                                    "s": [
                                      {
                                        "r": "135",
                                        "s": [
                                          {
                                            "value": [
                                              "DepressionEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "136",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "138",
                                    "s": [
                                      {
                                        "r": "137",
                                        "s": [
                                          {
                                            "value": [
                                              "Depression"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "138",
                                        "s": [
                                          {
                                            "value": [
                                              "prevalencePeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "152",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "142",
                                "s": [
                                  {
                                    "r": "141",
                                    "s": [
                                      {
                                        "r": "141",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Birthdate\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "BirthDate"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "151",
                                "s": [
                                  {
                                    "r": "149",
                                    "s": [
                                      {
                                        "r": "143",
                                        "s": [
                                          {
                                            "value": [
                                              "Global"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "149",
                                        "s": [
                                          {
                                            "value": [
                                              "\"CalendarAgeInYearsAt\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "145",
                                            "s": [
                                              {
                                                "r": "144",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "BirthDate"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "145",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "birthDatetime"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ", "
                                            ]
                                          },
                                          {
                                            "r": "148",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "147",
                                                "s": [
                                                  {
                                                    "r": "146",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "147",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ">=",
                                      " ",
                                      "12"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "170",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "170",
                                "s": [
                                  {
                                    "r": "156",
                                    "s": [
                                      {
                                        "r": "154",
                                        "s": [
                                          {
                                            "r": "153",
                                            "s": [
                                              {
                                                "value": [
                                                  "DepressionEncounter"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "154",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "ends during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "155",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "169",
                                    "s": [
                                      {
                                        "r": "159",
                                        "s": [
                                          {
                                            "value": [
                                              "end of "
                                            ]
                                          },
                                          {
                                            "r": "158",
                                            "s": [
                                              {
                                                "r": "157",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "DepressionEncounter"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "158",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " in "
                                        ]
                                      },
                                      {
                                        "r": "168",
                                        "s": [
                                          {
                                            "value": [
                                              "\"January through April of Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "171",
                "locator": "193:2-199:97",
                "type": "Query",
                "source": [
                  {
                    "localId": "132",
                    "locator": "193:2-193:72",
                    "alias": "DepressionEncounter",
                    "expression": {
                      "localId": "131",
                      "locator": "193:2-193:52",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Contact or Office Visit",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "140",
                    "locator": "194:3-195:84",
                    "alias": "Depression",
                    "type": "With",
                    "expression": {
                      "localId": "133",
                      "locator": "194:8-194:29",
                      "name": "Depression Diagnoses",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "139",
                      "locator": "195:14-195:84",
                      "type": "Overlaps",
                      "operand": [
                        {
                          "localId": "136",
                          "locator": "195:14-195:47",
                          "path": "relevantPeriod",
                          "scope": "DepressionEncounter",
                          "type": "Property"
                        },
                        {
                          "localId": "138",
                          "locator": "195:58-195:84",
                          "path": "prevalencePeriod",
                          "scope": "Depression",
                          "type": "Property"
                        }
                      ]
                    }
                  },
                  {
                    "localId": "152",
                    "locator": "196:3-197:117",
                    "alias": "BirthDate",
                    "type": "With",
                    "expression": {
                      "localId": "141",
                      "locator": "196:8-196:43",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                      "type": "Retrieve"
                    },
                    "suchThat": {
                      "localId": "151",
                      "locator": "197:14-197:117",
                      "type": "GreaterOrEqual",
                      "operand": [
                        {
                          "localId": "149",
                          "locator": "197:14-197:112",
                          "name": "CalendarAgeInYearsAt",
                          "libraryName": "Global",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "145",
                              "locator": "197:44-197:66",
                              "path": "birthDatetime",
                              "scope": "BirthDate",
                              "type": "Property"
                            },
                            {
                              "localId": "148",
                              "locator": "197:69-197:111",
                              "type": "Start",
                              "operand": {
                                "localId": "147",
                                "locator": "197:78-197:111",
                                "path": "relevantPeriod",
                                "scope": "DepressionEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "150",
                          "locator": "197:116-197:117",
                          "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                          "value": "12",
                          "type": "Literal"
                        }
                      ]
                    }
                  }
                ],
                "where": {
                  "localId": "170",
                  "locator": "198:3-199:97",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "156",
                      "locator": "198:9-198:75",
                      "type": "In",
                      "operand": [
                        {
                          "locator": "198:44-198:47",
                          "type": "End",
                          "operand": {
                            "localId": "154",
                            "locator": "198:9-198:42",
                            "path": "relevantPeriod",
                            "scope": "DepressionEncounter",
                            "type": "Property"
                          }
                        },
                        {
                          "localId": "155",
                          "locator": "198:56-198:75",
                          "name": "Measurement Period",
                          "type": "ParameterRef"
                        }
                      ]
                    },
                    {
                      "localId": "169",
                      "locator": "199:8-199:97",
                      "type": "In",
                      "operand": [
                        {
                          "localId": "159",
                          "locator": "199:8-199:48",
                          "type": "End",
                          "operand": {
                            "localId": "158",
                            "locator": "199:15-199:48",
                            "path": "relevantPeriod",
                            "scope": "DepressionEncounter",
                            "type": "Property"
                          }
                        },
                        {
                          "localId": "168",
                          "locator": "199:53-199:97",
                          "name": "January through April of Measurement Period",
                          "type": "ExpressionRef"
                        }
                      ]
                    }
                  ]
                }
              }
            },
            {
              "localId": "175",
              "locator": "110:1-111:59",
              "name": "Initial Population 3",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "175",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Initial Population 3\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "174",
                        "s": [
                          {
                            "value": [
                              "exists "
                            ]
                          },
                          {
                            "r": "173",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "173",
                                "s": [
                                  {
                                    "value": [
                                      "\"Depression Encounter in January through April\""
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  " )"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "174",
                "locator": "111:2-111:59",
                "type": "Exists",
                "operand": {
                  "localId": "173",
                  "locator": "111:9-111:59",
                  "name": "Depression Encounter in January through April",
                  "type": "ExpressionRef"
                }
              }
            },
            {
              "localId": "177",
              "locator": "48:1-49:23",
              "name": "Denominator 3",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "177",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Denominator 3\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "176",
                        "s": [
                          {
                            "value": [
                              "\"Initial Population 3\""
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "176",
                "locator": "49:2-49:23",
                "name": "Initial Population 3",
                "type": "ExpressionRef"
              }
            },
            {
              "localId": "195",
              "locator": "51:1-57:91",
              "name": "Disorder Diagnoses Overlaps Depression Encounter in May through August",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "195",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Disorder Diagnoses Overlaps Depression Encounter in May through August\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "194",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "185",
                                "s": [
                                  {
                                    "r": "184",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "184",
                                        "s": [
                                          {
                                            "r": "182",
                                            "s": [
                                              {
                                                "r": "180",
                                                "s": [
                                                  {
                                                    "r": "178",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Diagnosis\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Bipolar Disorder\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t\tunion "
                                                    ]
                                                  },
                                                  {
                                                    "r": "179",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Diagnosis\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Personality Disorder\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "\n\t\tunion "
                                                ]
                                              },
                                              {
                                                "r": "181",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Diagnosis\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Schizophrenia or Psychotic Disorder\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\tunion "
                                            ]
                                          },
                                          {
                                            "r": "183",
                                            "s": [
                                              {
                                                "value": [
                                                  "[",
                                                  "\"Diagnosis\"",
                                                  ": "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Pervasive Developmental Disorder\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "]"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " )"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DisorderDiagnoses"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "193",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "187",
                                "s": [
                                  {
                                    "r": "186",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Encounter in May through August\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "192",
                                "s": [
                                  {
                                    "r": "189",
                                    "s": [
                                      {
                                        "r": "188",
                                        "s": [
                                          {
                                            "value": [
                                              "DisorderDiagnoses"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "189",
                                        "s": [
                                          {
                                            "value": [
                                              "prevalencePeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "191",
                                    "s": [
                                      {
                                        "r": "190",
                                        "s": [
                                          {
                                            "value": [
                                              "DepressionEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "191",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "194",
                "locator": "52:2-57:91",
                "type": "Query",
                "source": [
                  {
                    "localId": "185",
                    "locator": "52:2-55:77",
                    "alias": "DisorderDiagnoses",
                    "expression": {
                      "localId": "184",
                      "locator": "52:2-55:59",
                      "type": "Union",
                      "operand": [
                        {
                          "localId": "182",
                          "locator": "52:4-54:60",
                          "type": "Union",
                          "operand": [
                            {
                              "localId": "180",
                              "locator": "52:4-53:45",
                              "type": "Union",
                              "operand": [
                                {
                                  "localId": "178",
                                  "locator": "52:4-52:36",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Bipolar Disorder",
                                    "type": "ValueSetRef"
                                  }
                                },
                                {
                                  "localId": "179",
                                  "locator": "53:9-53:45",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Personality Disorder",
                                    "type": "ValueSetRef"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "181",
                              "locator": "54:9-54:60",
                              "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                              "codeProperty": "code",
                              "type": "Retrieve",
                              "codes": {
                                "name": "Schizophrenia or Psychotic Disorder",
                                "type": "ValueSetRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "183",
                          "locator": "55:9-55:57",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "Pervasive Developmental Disorder",
                            "type": "ValueSetRef"
                          }
                        }
                      ]
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "193",
                    "locator": "56:3-57:91",
                    "alias": "DepressionEncounter",
                    "type": "With",
                    "expression": {
                      "localId": "186",
                      "locator": "56:8-56:51",
                      "name": "Depression Encounter in May through August",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "192",
                      "locator": "57:14-57:91",
                      "type": "Overlaps",
                      "operand": [
                        {
                          "localId": "189",
                          "locator": "57:14-57:47",
                          "path": "prevalencePeriod",
                          "scope": "DisorderDiagnoses",
                          "type": "Property"
                        },
                        {
                          "localId": "191",
                          "locator": "57:58-57:91",
                          "path": "relevantPeriod",
                          "scope": "DepressionEncounter",
                          "type": "Property"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "203",
              "locator": "59:1-61:86",
              "name": "Expired in September through December",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "203",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Expired in September through December\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "202",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "197",
                                "s": [
                                  {
                                    "r": "196",
                                    "s": [
                                      {
                                        "r": "196",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Expired\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Deceased"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "201",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "201",
                                "s": [
                                  {
                                    "r": "199",
                                    "s": [
                                      {
                                        "r": "198",
                                        "s": [
                                          {
                                            "value": [
                                              "Deceased"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "199",
                                        "s": [
                                          {
                                            "value": [
                                              "expiredDatetime"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " in "
                                    ]
                                  },
                                  {
                                    "r": "200",
                                    "s": [
                                      {
                                        "value": [
                                          "\"September through December of Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "202",
                "locator": "60:2-61:86",
                "type": "Query",
                "source": [
                  {
                    "localId": "197",
                    "locator": "60:2-60:44",
                    "alias": "Deceased",
                    "expression": {
                      "localId": "196",
                      "locator": "60:2-60:35",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicExpired",
                      "type": "Retrieve"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "201",
                  "locator": "61:3-61:86",
                  "type": "In",
                  "operand": [
                    {
                      "localId": "199",
                      "locator": "61:9-61:32",
                      "path": "expiredDatetime",
                      "scope": "Deceased",
                      "type": "Property"
                    },
                    {
                      "localId": "200",
                      "locator": "61:37-61:86",
                      "name": "September through December of Measurement Period",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              }
            },
            {
              "localId": "211",
              "locator": "63:1-65:78",
              "name": "Expired in May through August",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "211",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Expired in May through August\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "210",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "205",
                                "s": [
                                  {
                                    "r": "204",
                                    "s": [
                                      {
                                        "r": "204",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Expired\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Deceased"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "209",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "209",
                                "s": [
                                  {
                                    "r": "207",
                                    "s": [
                                      {
                                        "r": "206",
                                        "s": [
                                          {
                                            "value": [
                                              "Deceased"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "207",
                                        "s": [
                                          {
                                            "value": [
                                              "expiredDatetime"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " in "
                                    ]
                                  },
                                  {
                                    "r": "208",
                                    "s": [
                                      {
                                        "value": [
                                          "\"May through August of Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "210",
                "locator": "64:2-65:78",
                "type": "Query",
                "source": [
                  {
                    "localId": "205",
                    "locator": "64:2-64:44",
                    "alias": "Deceased",
                    "expression": {
                      "localId": "204",
                      "locator": "64:2-64:35",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicExpired",
                      "type": "Retrieve"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "209",
                  "locator": "65:3-65:78",
                  "type": "In",
                  "operand": [
                    {
                      "localId": "207",
                      "locator": "65:9-65:32",
                      "path": "expiredDatetime",
                      "scope": "Deceased",
                      "type": "Property"
                    },
                    {
                      "localId": "208",
                      "locator": "65:37-65:78",
                      "name": "May through August of Measurement Period",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              }
            },
            {
              "localId": "219",
              "locator": "67:1-69:81",
              "name": "Expired in January through April",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "219",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Expired in January through April\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "218",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "213",
                                "s": [
                                  {
                                    "r": "212",
                                    "s": [
                                      {
                                        "r": "212",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Expired\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Deceased"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "217",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "217",
                                "s": [
                                  {
                                    "r": "215",
                                    "s": [
                                      {
                                        "r": "214",
                                        "s": [
                                          {
                                            "value": [
                                              "Deceased"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "215",
                                        "s": [
                                          {
                                            "value": [
                                              "expiredDatetime"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " in "
                                    ]
                                  },
                                  {
                                    "r": "216",
                                    "s": [
                                      {
                                        "value": [
                                          "\"January through April of Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "218",
                "locator": "68:2-69:81",
                "type": "Query",
                "source": [
                  {
                    "localId": "213",
                    "locator": "68:2-68:44",
                    "alias": "Deceased",
                    "expression": {
                      "localId": "212",
                      "locator": "68:2-68:35",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicExpired",
                      "type": "Retrieve"
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "217",
                  "locator": "69:3-69:81",
                  "type": "In",
                  "operand": [
                    {
                      "localId": "215",
                      "locator": "69:9-69:32",
                      "path": "expiredDatetime",
                      "scope": "Deceased",
                      "type": "Property"
                    },
                    {
                      "localId": "216",
                      "locator": "69:37-69:81",
                      "name": "January through April of Measurement Period",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              }
            },
            {
              "localId": "245",
              "locator": "71:1-75:111",
              "name": "Stratification 1_1",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "245",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Stratification 1_1\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "244",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "221",
                                "s": [
                                  {
                                    "r": "220",
                                    "s": [
                                      {
                                        "r": "220",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Birthdate\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Birthdate"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "243",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "223",
                                "s": [
                                  {
                                    "r": "222",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Encounter in September through December\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "242",
                                "s": [
                                  {
                                    "r": "232",
                                    "s": [
                                      {
                                        "r": "230",
                                        "s": [
                                          {
                                            "r": "224",
                                            "s": [
                                              {
                                                "value": [
                                                  "Global"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "230",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarAgeInYearsAt\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "226",
                                                "s": [
                                                  {
                                                    "r": "225",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Birthdate"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "226",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "birthDatetime"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ", "
                                                ]
                                              },
                                              {
                                                "r": "229",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "start of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "228",
                                                    "s": [
                                                      {
                                                        "r": "227",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "DepressionEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "228",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ">=",
                                          " ",
                                          "12"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "241",
                                    "s": [
                                      {
                                        "r": "239",
                                        "s": [
                                          {
                                            "r": "233",
                                            "s": [
                                              {
                                                "value": [
                                                  "Global"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "239",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarAgeInYearsAt\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "235",
                                                "s": [
                                                  {
                                                    "r": "234",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Birthdate"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "235",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "birthDatetime"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ", "
                                                ]
                                              },
                                              {
                                                "r": "238",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "start of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "237",
                                                    "s": [
                                                      {
                                                        "r": "236",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "DepressionEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "237",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "<",
                                          " ",
                                          "18"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "244",
                "locator": "72:2-75:111",
                "type": "Query",
                "source": [
                  {
                    "localId": "221",
                    "locator": "72:2-72:47",
                    "alias": "Birthdate",
                    "expression": {
                      "localId": "220",
                      "locator": "72:2-72:37",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                      "type": "Retrieve"
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "243",
                    "locator": "73:3-75:111",
                    "alias": "DepressionEncounter",
                    "type": "With",
                    "expression": {
                      "localId": "222",
                      "locator": "73:8-73:59",
                      "name": "Depression Encounter in September through December",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "242",
                      "locator": "74:14-75:111",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "232",
                          "locator": "74:14-74:117",
                          "type": "GreaterOrEqual",
                          "operand": [
                            {
                              "localId": "230",
                              "locator": "74:14-74:112",
                              "name": "CalendarAgeInYearsAt",
                              "libraryName": "Global",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "226",
                                  "locator": "74:44-74:66",
                                  "path": "birthDatetime",
                                  "scope": "Birthdate",
                                  "type": "Property"
                                },
                                {
                                  "localId": "229",
                                  "locator": "74:69-74:111",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "228",
                                    "locator": "74:78-74:111",
                                    "path": "relevantPeriod",
                                    "scope": "DepressionEncounter",
                                    "type": "Property"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "231",
                              "locator": "74:116-74:117",
                              "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                              "value": "12",
                              "type": "Literal"
                            }
                          ]
                        },
                        {
                          "localId": "241",
                          "locator": "75:9-75:111",
                          "type": "Less",
                          "operand": [
                            {
                              "localId": "239",
                              "locator": "75:9-75:107",
                              "name": "CalendarAgeInYearsAt",
                              "libraryName": "Global",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "235",
                                  "locator": "75:39-75:61",
                                  "path": "birthDatetime",
                                  "scope": "Birthdate",
                                  "type": "Property"
                                },
                                {
                                  "localId": "238",
                                  "locator": "75:64-75:106",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "237",
                                    "locator": "75:73-75:106",
                                    "path": "relevantPeriod",
                                    "scope": "DepressionEncounter",
                                    "type": "Property"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "240",
                              "locator": "75:110-75:111",
                              "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                              "value": "18",
                              "type": "Literal"
                            }
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "261",
              "locator": "77:1-80:117",
              "name": "Stratification 1_2",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "261",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Stratification 1_2\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "260",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "247",
                                "s": [
                                  {
                                    "r": "246",
                                    "s": [
                                      {
                                        "r": "246",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Birthdate\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Birthdate"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "259",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "249",
                                "s": [
                                  {
                                    "r": "248",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Encounter in September through December\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "258",
                                "s": [
                                  {
                                    "r": "256",
                                    "s": [
                                      {
                                        "r": "250",
                                        "s": [
                                          {
                                            "value": [
                                              "Global"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "256",
                                        "s": [
                                          {
                                            "value": [
                                              "\"CalendarAgeInYearsAt\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "252",
                                            "s": [
                                              {
                                                "r": "251",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "Birthdate"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "252",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "birthDatetime"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ", "
                                            ]
                                          },
                                          {
                                            "r": "255",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "254",
                                                "s": [
                                                  {
                                                    "r": "253",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "254",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ">=",
                                      " ",
                                      "18"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "260",
                "locator": "78:2-80:117",
                "type": "Query",
                "source": [
                  {
                    "localId": "247",
                    "locator": "78:2-78:47",
                    "alias": "Birthdate",
                    "expression": {
                      "localId": "246",
                      "locator": "78:2-78:37",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                      "type": "Retrieve"
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "259",
                    "locator": "79:3-80:117",
                    "alias": "DepressionEncounter",
                    "type": "With",
                    "expression": {
                      "localId": "248",
                      "locator": "79:8-79:59",
                      "name": "Depression Encounter in September through December",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "258",
                      "locator": "80:14-80:117",
                      "type": "GreaterOrEqual",
                      "operand": [
                        {
                          "localId": "256",
                          "locator": "80:14-80:112",
                          "name": "CalendarAgeInYearsAt",
                          "libraryName": "Global",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "252",
                              "locator": "80:44-80:66",
                              "path": "birthDatetime",
                              "scope": "Birthdate",
                              "type": "Property"
                            },
                            {
                              "localId": "255",
                              "locator": "80:69-80:111",
                              "type": "Start",
                              "operand": {
                                "localId": "254",
                                "locator": "80:78-80:111",
                                "path": "relevantPeriod",
                                "scope": "DepressionEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "257",
                          "locator": "80:116-80:117",
                          "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                          "value": "18",
                          "type": "Literal"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "287",
              "locator": "82:1-86:111",
              "name": "Stratification 2_1",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "287",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Stratification 2_1\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "286",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "263",
                                "s": [
                                  {
                                    "r": "262",
                                    "s": [
                                      {
                                        "r": "262",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Birthdate\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Birthdate"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "285",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "265",
                                "s": [
                                  {
                                    "r": "264",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Encounter in May through August\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "284",
                                "s": [
                                  {
                                    "r": "274",
                                    "s": [
                                      {
                                        "r": "272",
                                        "s": [
                                          {
                                            "r": "266",
                                            "s": [
                                              {
                                                "value": [
                                                  "Global"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "272",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarAgeInYearsAt\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "268",
                                                "s": [
                                                  {
                                                    "r": "267",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Birthdate"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "268",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "birthDatetime"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ", "
                                                ]
                                              },
                                              {
                                                "r": "271",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "start of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "270",
                                                    "s": [
                                                      {
                                                        "r": "269",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "DepressionEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "270",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ">=",
                                          " ",
                                          "12"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "283",
                                    "s": [
                                      {
                                        "r": "281",
                                        "s": [
                                          {
                                            "r": "275",
                                            "s": [
                                              {
                                                "value": [
                                                  "Global"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "281",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarAgeInYearsAt\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "277",
                                                "s": [
                                                  {
                                                    "r": "276",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Birthdate"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "277",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "birthDatetime"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ", "
                                                ]
                                              },
                                              {
                                                "r": "280",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "start of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "279",
                                                    "s": [
                                                      {
                                                        "r": "278",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "DepressionEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "279",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "<",
                                          " ",
                                          "18"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "286",
                "locator": "83:2-86:111",
                "type": "Query",
                "source": [
                  {
                    "localId": "263",
                    "locator": "83:2-83:47",
                    "alias": "Birthdate",
                    "expression": {
                      "localId": "262",
                      "locator": "83:2-83:37",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                      "type": "Retrieve"
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "285",
                    "locator": "84:3-86:111",
                    "alias": "DepressionEncounter",
                    "type": "With",
                    "expression": {
                      "localId": "264",
                      "locator": "84:8-84:51",
                      "name": "Depression Encounter in May through August",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "284",
                      "locator": "85:14-86:111",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "274",
                          "locator": "85:14-85:117",
                          "type": "GreaterOrEqual",
                          "operand": [
                            {
                              "localId": "272",
                              "locator": "85:14-85:112",
                              "name": "CalendarAgeInYearsAt",
                              "libraryName": "Global",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "268",
                                  "locator": "85:44-85:66",
                                  "path": "birthDatetime",
                                  "scope": "Birthdate",
                                  "type": "Property"
                                },
                                {
                                  "localId": "271",
                                  "locator": "85:69-85:111",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "270",
                                    "locator": "85:78-85:111",
                                    "path": "relevantPeriod",
                                    "scope": "DepressionEncounter",
                                    "type": "Property"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "273",
                              "locator": "85:116-85:117",
                              "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                              "value": "12",
                              "type": "Literal"
                            }
                          ]
                        },
                        {
                          "localId": "283",
                          "locator": "86:9-86:111",
                          "type": "Less",
                          "operand": [
                            {
                              "localId": "281",
                              "locator": "86:9-86:107",
                              "name": "CalendarAgeInYearsAt",
                              "libraryName": "Global",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "277",
                                  "locator": "86:39-86:61",
                                  "path": "birthDatetime",
                                  "scope": "Birthdate",
                                  "type": "Property"
                                },
                                {
                                  "localId": "280",
                                  "locator": "86:64-86:106",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "279",
                                    "locator": "86:73-86:106",
                                    "path": "relevantPeriod",
                                    "scope": "DepressionEncounter",
                                    "type": "Property"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "282",
                              "locator": "86:110-86:111",
                              "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                              "value": "18",
                              "type": "Literal"
                            }
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "303",
              "locator": "88:1-91:117",
              "name": "Stratification 2_2",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "303",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Stratification 2_2\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "302",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "289",
                                "s": [
                                  {
                                    "r": "288",
                                    "s": [
                                      {
                                        "r": "288",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Birthdate\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Birthdate"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "301",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "291",
                                "s": [
                                  {
                                    "r": "290",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Encounter in May through August\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "300",
                                "s": [
                                  {
                                    "r": "298",
                                    "s": [
                                      {
                                        "r": "292",
                                        "s": [
                                          {
                                            "value": [
                                              "Global"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "298",
                                        "s": [
                                          {
                                            "value": [
                                              "\"CalendarAgeInYearsAt\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "294",
                                            "s": [
                                              {
                                                "r": "293",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "Birthdate"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "294",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "birthDatetime"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ", "
                                            ]
                                          },
                                          {
                                            "r": "297",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "296",
                                                "s": [
                                                  {
                                                    "r": "295",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "296",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ">=",
                                      " ",
                                      "18"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "302",
                "locator": "89:2-91:117",
                "type": "Query",
                "source": [
                  {
                    "localId": "289",
                    "locator": "89:2-89:47",
                    "alias": "Birthdate",
                    "expression": {
                      "localId": "288",
                      "locator": "89:2-89:37",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                      "type": "Retrieve"
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "301",
                    "locator": "90:3-91:117",
                    "alias": "DepressionEncounter",
                    "type": "With",
                    "expression": {
                      "localId": "290",
                      "locator": "90:8-90:51",
                      "name": "Depression Encounter in May through August",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "300",
                      "locator": "91:14-91:117",
                      "type": "GreaterOrEqual",
                      "operand": [
                        {
                          "localId": "298",
                          "locator": "91:14-91:112",
                          "name": "CalendarAgeInYearsAt",
                          "libraryName": "Global",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "294",
                              "locator": "91:44-91:66",
                              "path": "birthDatetime",
                              "scope": "Birthdate",
                              "type": "Property"
                            },
                            {
                              "localId": "297",
                              "locator": "91:69-91:111",
                              "type": "Start",
                              "operand": {
                                "localId": "296",
                                "locator": "91:78-91:111",
                                "path": "relevantPeriod",
                                "scope": "DepressionEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "299",
                          "locator": "91:116-91:117",
                          "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                          "value": "18",
                          "type": "Literal"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "329",
              "locator": "93:1-97:111",
              "name": "Stratification 3_1",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "329",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Stratification 3_1\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "328",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "305",
                                "s": [
                                  {
                                    "r": "304",
                                    "s": [
                                      {
                                        "r": "304",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Birthdate\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Birthdate"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "327",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "307",
                                "s": [
                                  {
                                    "r": "306",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Encounter in January through April\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "326",
                                "s": [
                                  {
                                    "r": "316",
                                    "s": [
                                      {
                                        "r": "314",
                                        "s": [
                                          {
                                            "r": "308",
                                            "s": [
                                              {
                                                "value": [
                                                  "Global"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "314",
                                            "s": [
                                              {
                                                "value": [
                                                  "CalendarAgeInYearsAt",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "310",
                                                "s": [
                                                  {
                                                    "r": "309",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Birthdate"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "310",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "birthDatetime"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ", "
                                                ]
                                              },
                                              {
                                                "r": "313",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "start of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "312",
                                                    "s": [
                                                      {
                                                        "r": "311",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "DepressionEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "312",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          ">=",
                                          " ",
                                          "12"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "325",
                                    "s": [
                                      {
                                        "r": "323",
                                        "s": [
                                          {
                                            "r": "317",
                                            "s": [
                                              {
                                                "value": [
                                                  "Global"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "323",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"CalendarAgeInYearsAt\"",
                                                  "("
                                                ]
                                              },
                                              {
                                                "r": "319",
                                                "s": [
                                                  {
                                                    "r": "318",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "Birthdate"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "319",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "birthDatetime"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ", "
                                                ]
                                              },
                                              {
                                                "r": "322",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "start of "
                                                    ]
                                                  },
                                                  {
                                                    "r": "321",
                                                    "s": [
                                                      {
                                                        "r": "320",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "DepressionEncounter"
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "."
                                                        ]
                                                      },
                                                      {
                                                        "r": "321",
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "relevantPeriod"
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  ")"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "<",
                                          " ",
                                          "18"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "328",
                "locator": "94:2-97:111",
                "type": "Query",
                "source": [
                  {
                    "localId": "305",
                    "locator": "94:2-94:47",
                    "alias": "Birthdate",
                    "expression": {
                      "localId": "304",
                      "locator": "94:2-94:37",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                      "type": "Retrieve"
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "327",
                    "locator": "95:3-97:111",
                    "alias": "DepressionEncounter",
                    "type": "With",
                    "expression": {
                      "localId": "306",
                      "locator": "95:8-95:54",
                      "name": "Depression Encounter in January through April",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "326",
                      "locator": "96:14-97:111",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "316",
                          "locator": "96:14-96:115",
                          "type": "GreaterOrEqual",
                          "operand": [
                            {
                              "localId": "314",
                              "locator": "96:14-96:110",
                              "name": "CalendarAgeInYearsAt",
                              "libraryName": "Global",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "310",
                                  "locator": "96:42-96:64",
                                  "path": "birthDatetime",
                                  "scope": "Birthdate",
                                  "type": "Property"
                                },
                                {
                                  "localId": "313",
                                  "locator": "96:67-96:109",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "312",
                                    "locator": "96:76-96:109",
                                    "path": "relevantPeriod",
                                    "scope": "DepressionEncounter",
                                    "type": "Property"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "315",
                              "locator": "96:114-96:115",
                              "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                              "value": "12",
                              "type": "Literal"
                            }
                          ]
                        },
                        {
                          "localId": "325",
                          "locator": "97:9-97:111",
                          "type": "Less",
                          "operand": [
                            {
                              "localId": "323",
                              "locator": "97:9-97:107",
                              "name": "CalendarAgeInYearsAt",
                              "libraryName": "Global",
                              "type": "FunctionRef",
                              "operand": [
                                {
                                  "localId": "319",
                                  "locator": "97:39-97:61",
                                  "path": "birthDatetime",
                                  "scope": "Birthdate",
                                  "type": "Property"
                                },
                                {
                                  "localId": "322",
                                  "locator": "97:64-97:106",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "321",
                                    "locator": "97:73-97:106",
                                    "path": "relevantPeriod",
                                    "scope": "DepressionEncounter",
                                    "type": "Property"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "324",
                              "locator": "97:110-97:111",
                              "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                              "value": "18",
                              "type": "Literal"
                            }
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "345",
              "locator": "99:1-102:117",
              "name": "Stratification 3_2",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "345",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Stratification 3_2\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "344",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "331",
                                "s": [
                                  {
                                    "r": "330",
                                    "s": [
                                      {
                                        "r": "330",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Patient Characteristic Birthdate\"",
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "Birthdate"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "343",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "333",
                                "s": [
                                  {
                                    "r": "332",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Encounter in January through April\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "342",
                                "s": [
                                  {
                                    "r": "340",
                                    "s": [
                                      {
                                        "r": "334",
                                        "s": [
                                          {
                                            "value": [
                                              "Global"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "340",
                                        "s": [
                                          {
                                            "value": [
                                              "\"CalendarAgeInYearsAt\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "336",
                                            "s": [
                                              {
                                                "r": "335",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "Birthdate"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "336",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "birthDatetime"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ", "
                                            ]
                                          },
                                          {
                                            "r": "339",
                                            "s": [
                                              {
                                                "value": [
                                                  "start of "
                                                ]
                                              },
                                              {
                                                "r": "338",
                                                "s": [
                                                  {
                                                    "r": "337",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionEncounter"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "338",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "relevantPeriod"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      ">=",
                                      " ",
                                      "18"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "344",
                "locator": "100:2-102:117",
                "type": "Query",
                "source": [
                  {
                    "localId": "331",
                    "locator": "100:2-100:47",
                    "alias": "Birthdate",
                    "expression": {
                      "localId": "330",
                      "locator": "100:2-100:37",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                      "type": "Retrieve"
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "343",
                    "locator": "101:3-102:117",
                    "alias": "DepressionEncounter",
                    "type": "With",
                    "expression": {
                      "localId": "332",
                      "locator": "101:8-101:54",
                      "name": "Depression Encounter in January through April",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "342",
                      "locator": "102:14-102:117",
                      "type": "GreaterOrEqual",
                      "operand": [
                        {
                          "localId": "340",
                          "locator": "102:14-102:112",
                          "name": "CalendarAgeInYearsAt",
                          "libraryName": "Global",
                          "type": "FunctionRef",
                          "operand": [
                            {
                              "localId": "336",
                              "locator": "102:44-102:66",
                              "path": "birthDatetime",
                              "scope": "Birthdate",
                              "type": "Property"
                            },
                            {
                              "localId": "339",
                              "locator": "102:69-102:111",
                              "type": "Start",
                              "operand": {
                                "localId": "338",
                                "locator": "102:78-102:111",
                                "path": "relevantPeriod",
                                "scope": "DepressionEncounter",
                                "type": "Property"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "341",
                          "locator": "102:116-102:117",
                          "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                          "value": "18",
                          "type": "Literal"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "358",
              "locator": "113:1-117:2",
              "name": "Numerator 1",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "358",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Numerator 1\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "357",
                        "s": [
                          {
                            "value": [
                              "exists "
                            ]
                          },
                          {
                            "r": "356",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "356",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "r": "347",
                                        "s": [
                                          {
                                            "r": "346",
                                            "s": [
                                              {
                                                "r": "346",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Assessment, Performed\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "DepressionAssessment"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "355",
                                    "s": [
                                      {
                                        "value": [
                                          "where "
                                        ]
                                      },
                                      {
                                        "r": "355",
                                        "s": [
                                          {
                                            "r": "350",
                                            "s": [
                                              {
                                                "r": "349",
                                                "s": [
                                                  {
                                                    "r": "348",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionAssessment"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "349",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "result"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " is not null"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t\tand "
                                            ]
                                          },
                                          {
                                            "r": "354",
                                            "s": [
                                              {
                                                "r": "352",
                                                "s": [
                                                  {
                                                    "r": "351",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionAssessment"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "352",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "authorDatetime"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " in "
                                                ]
                                              },
                                              {
                                                "r": "353",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"September through December of Measurement Period\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "357",
                "locator": "114:2-117:2",
                "type": "Exists",
                "operand": {
                  "localId": "356",
                  "locator": "114:9-117:2",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "347",
                      "locator": "114:11-114:126",
                      "alias": "DepressionAssessment",
                      "expression": {
                        "localId": "346",
                        "locator": "114:11-114:105",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                        "templateId": "PositiveAssessmentPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "type": "ToList",
                          "operand": {
                            "name": "Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]",
                            "type": "CodeRef"
                          }
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "355",
                    "locator": "115:4-116:97",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "350",
                        "locator": "115:10-115:48",
                        "type": "Not",
                        "operand": {
                          "locator": "115:10-115:48",
                          "type": "IsNull",
                          "operand": {
                            "localId": "349",
                            "locator": "115:10-115:36",
                            "path": "result",
                            "scope": "DepressionAssessment",
                            "type": "Property"
                          }
                        }
                      },
                      {
                        "localId": "354",
                        "locator": "116:9-116:97",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "352",
                            "locator": "116:9-116:43",
                            "path": "authorDatetime",
                            "scope": "DepressionAssessment",
                            "type": "Property"
                          },
                          {
                            "localId": "353",
                            "locator": "116:48-116:97",
                            "name": "September through December of Measurement Period",
                            "type": "ExpressionRef"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            },
            {
              "localId": "371",
              "locator": "119:1-123:2",
              "name": "Numerator 2",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "371",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Numerator 2\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "370",
                        "s": [
                          {
                            "value": [
                              "exists "
                            ]
                          },
                          {
                            "r": "369",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "369",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "r": "360",
                                        "s": [
                                          {
                                            "r": "359",
                                            "s": [
                                              {
                                                "r": "359",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Assessment, Performed\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "DepressionAssessment"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "368",
                                    "s": [
                                      {
                                        "value": [
                                          "where "
                                        ]
                                      },
                                      {
                                        "r": "368",
                                        "s": [
                                          {
                                            "r": "363",
                                            "s": [
                                              {
                                                "r": "362",
                                                "s": [
                                                  {
                                                    "r": "361",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionAssessment"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "362",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "result"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " is not null"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t\tand "
                                            ]
                                          },
                                          {
                                            "r": "367",
                                            "s": [
                                              {
                                                "r": "365",
                                                "s": [
                                                  {
                                                    "r": "364",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionAssessment"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "365",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "authorDatetime"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " in "
                                                ]
                                              },
                                              {
                                                "r": "366",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"May through August of Measurement Period\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "370",
                "locator": "120:2-123:2",
                "type": "Exists",
                "operand": {
                  "localId": "369",
                  "locator": "120:9-123:2",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "360",
                      "locator": "120:11-120:126",
                      "alias": "DepressionAssessment",
                      "expression": {
                        "localId": "359",
                        "locator": "120:11-120:105",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                        "templateId": "PositiveAssessmentPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "type": "ToList",
                          "operand": {
                            "name": "Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]",
                            "type": "CodeRef"
                          }
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "368",
                    "locator": "121:4-122:89",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "363",
                        "locator": "121:10-121:48",
                        "type": "Not",
                        "operand": {
                          "locator": "121:10-121:48",
                          "type": "IsNull",
                          "operand": {
                            "localId": "362",
                            "locator": "121:10-121:36",
                            "path": "result",
                            "scope": "DepressionAssessment",
                            "type": "Property"
                          }
                        }
                      },
                      {
                        "localId": "367",
                        "locator": "122:9-122:89",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "365",
                            "locator": "122:9-122:43",
                            "path": "authorDatetime",
                            "scope": "DepressionAssessment",
                            "type": "Property"
                          },
                          {
                            "localId": "366",
                            "locator": "122:48-122:89",
                            "name": "May through August of Measurement Period",
                            "type": "ExpressionRef"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            },
            {
              "localId": "384",
              "locator": "125:1-129:2",
              "name": "Numerator 3",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "384",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Numerator 3\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "383",
                        "s": [
                          {
                            "value": [
                              "exists "
                            ]
                          },
                          {
                            "r": "382",
                            "s": [
                              {
                                "value": [
                                  "( "
                                ]
                              },
                              {
                                "r": "382",
                                "s": [
                                  {
                                    "s": [
                                      {
                                        "r": "373",
                                        "s": [
                                          {
                                            "r": "372",
                                            "s": [
                                              {
                                                "r": "372",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Assessment, Performed\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " ",
                                              "DepressionAssessment"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\t"
                                    ]
                                  },
                                  {
                                    "r": "381",
                                    "s": [
                                      {
                                        "value": [
                                          "where "
                                        ]
                                      },
                                      {
                                        "r": "381",
                                        "s": [
                                          {
                                            "r": "376",
                                            "s": [
                                              {
                                                "r": "375",
                                                "s": [
                                                  {
                                                    "r": "374",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionAssessment"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "375",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "result"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " is not null"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\t\t\tand "
                                            ]
                                          },
                                          {
                                            "r": "380",
                                            "s": [
                                              {
                                                "r": "378",
                                                "s": [
                                                  {
                                                    "r": "377",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "DepressionAssessment"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "."
                                                    ]
                                                  },
                                                  {
                                                    "r": "378",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "authorDatetime"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " in "
                                                ]
                                              },
                                              {
                                                "r": "379",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"January through April of Measurement Period\""
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t)"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "383",
                "locator": "126:2-129:2",
                "type": "Exists",
                "operand": {
                  "localId": "382",
                  "locator": "126:9-129:2",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "373",
                      "locator": "126:11-126:126",
                      "alias": "DepressionAssessment",
                      "expression": {
                        "localId": "372",
                        "locator": "126:11-126:105",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                        "templateId": "PositiveAssessmentPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "type": "ToList",
                          "operand": {
                            "name": "Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]",
                            "type": "CodeRef"
                          }
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "381",
                    "locator": "127:4-128:92",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "376",
                        "locator": "127:10-127:48",
                        "type": "Not",
                        "operand": {
                          "locator": "127:10-127:48",
                          "type": "IsNull",
                          "operand": {
                            "localId": "375",
                            "locator": "127:10-127:36",
                            "path": "result",
                            "scope": "DepressionAssessment",
                            "type": "Property"
                          }
                        }
                      },
                      {
                        "localId": "380",
                        "locator": "128:9-128:92",
                        "type": "In",
                        "operand": [
                          {
                            "localId": "378",
                            "locator": "128:9-128:43",
                            "path": "authorDatetime",
                            "scope": "DepressionAssessment",
                            "type": "Property"
                          },
                          {
                            "localId": "379",
                            "locator": "128:48-128:92",
                            "name": "January through April of Measurement Period",
                            "type": "ExpressionRef"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            },
            {
              "localId": "392",
              "locator": "131:1-133:99",
              "name": "Long Term Care Overlaps January through April",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "392",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Long Term Care Overlaps January through April\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "391",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "386",
                                "s": [
                                  {
                                    "r": "385",
                                    "s": [
                                      {
                                        "r": "385",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Care Services in Long-Term Residential Facility\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "EncounterLongTermCare"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "390",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "390",
                                "s": [
                                  {
                                    "r": "388",
                                    "s": [
                                      {
                                        "r": "387",
                                        "s": [
                                          {
                                            "value": [
                                              "EncounterLongTermCare"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "388",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "389",
                                    "s": [
                                      {
                                        "value": [
                                          "\"January through April of Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "391",
                "locator": "132:2-133:99",
                "type": "Query",
                "source": [
                  {
                    "localId": "386",
                    "locator": "132:2-132:98",
                    "alias": "EncounterLongTermCare",
                    "expression": {
                      "localId": "385",
                      "locator": "132:2-132:76",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Care Services in Long-Term Residential Facility",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "390",
                  "locator": "133:3-133:99",
                  "type": "Overlaps",
                  "operand": [
                    {
                      "localId": "388",
                      "locator": "133:9-133:44",
                      "path": "relevantPeriod",
                      "scope": "EncounterLongTermCare",
                      "type": "Property"
                    },
                    {
                      "localId": "389",
                      "locator": "133:55-133:99",
                      "name": "January through April of Measurement Period",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              }
            },
            {
              "localId": "400",
              "locator": "135:1-137:96",
              "name": "Long Term Care Overlaps May through August",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "400",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Long Term Care Overlaps May through August\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "399",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "394",
                                "s": [
                                  {
                                    "r": "393",
                                    "s": [
                                      {
                                        "r": "393",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Care Services in Long-Term Residential Facility\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "EncounterLongTermCare"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "398",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "398",
                                "s": [
                                  {
                                    "r": "396",
                                    "s": [
                                      {
                                        "r": "395",
                                        "s": [
                                          {
                                            "value": [
                                              "EncounterLongTermCare"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "396",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "397",
                                    "s": [
                                      {
                                        "value": [
                                          "\"May through August of Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "399",
                "locator": "136:2-137:96",
                "type": "Query",
                "source": [
                  {
                    "localId": "394",
                    "locator": "136:2-136:98",
                    "alias": "EncounterLongTermCare",
                    "expression": {
                      "localId": "393",
                      "locator": "136:2-136:76",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Care Services in Long-Term Residential Facility",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "398",
                  "locator": "137:3-137:96",
                  "type": "Overlaps",
                  "operand": [
                    {
                      "localId": "396",
                      "locator": "137:9-137:44",
                      "path": "relevantPeriod",
                      "scope": "EncounterLongTermCare",
                      "type": "Property"
                    },
                    {
                      "localId": "397",
                      "locator": "137:55-137:96",
                      "name": "May through August of Measurement Period",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              }
            },
            {
              "localId": "408",
              "locator": "139:1-141:104",
              "name": "Long Term Care Overlaps September through December",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "408",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Long Term Care Overlaps September through December\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "407",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "402",
                                "s": [
                                  {
                                    "r": "401",
                                    "s": [
                                      {
                                        "r": "401",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Care Services in Long-Term Residential Facility\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "EncounterLongTermCare"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "406",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "406",
                                "s": [
                                  {
                                    "r": "404",
                                    "s": [
                                      {
                                        "r": "403",
                                        "s": [
                                          {
                                            "value": [
                                              "EncounterLongTermCare"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "404",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "405",
                                    "s": [
                                      {
                                        "value": [
                                          "\"September through December of Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "407",
                "locator": "140:2-141:104",
                "type": "Query",
                "source": [
                  {
                    "localId": "402",
                    "locator": "140:2-140:98",
                    "alias": "EncounterLongTermCare",
                    "expression": {
                      "localId": "401",
                      "locator": "140:2-140:76",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Care Services in Long-Term Residential Facility",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "406",
                  "locator": "141:3-141:104",
                  "type": "Overlaps",
                  "operand": [
                    {
                      "localId": "404",
                      "locator": "141:9-141:44",
                      "path": "relevantPeriod",
                      "scope": "EncounterLongTermCare",
                      "type": "Property"
                    },
                    {
                      "localId": "405",
                      "locator": "141:55-141:104",
                      "name": "September through December of Measurement Period",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              }
            },
            {
              "localId": "417",
              "locator": "143:1-145:109",
              "name": "Palliative Care Order Before End of December",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "417",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Palliative Care Order Before End of December\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "416",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "410",
                                "s": [
                                  {
                                    "r": "409",
                                    "s": [
                                      {
                                        "r": "409",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Intervention, Order\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Palliative Care\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "OrderedPalliativeCare"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "415",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "415",
                                "s": [
                                  {
                                    "r": "412",
                                    "s": [
                                      {
                                        "r": "411",
                                        "s": [
                                          {
                                            "value": [
                                              "OrderedPalliativeCare"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "412",
                                        "s": [
                                          {
                                            "value": [
                                              "authorDatetime"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "before",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "414",
                                    "s": [
                                      {
                                        "value": [
                                          "end of "
                                        ]
                                      },
                                      {
                                        "r": "413",
                                        "s": [
                                          {
                                            "value": [
                                              "\"September through December of Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "416",
                "locator": "144:2-145:109",
                "type": "Query",
                "source": [
                  {
                    "localId": "410",
                    "locator": "144:2-144:65",
                    "alias": "OrderedPalliativeCare",
                    "expression": {
                      "localId": "409",
                      "locator": "144:2-144:43",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionOrder",
                      "templateId": "PositiveInterventionOrder",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Palliative Care",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "415",
                  "locator": "145:3-145:109",
                  "type": "Before",
                  "operand": [
                    {
                      "localId": "412",
                      "locator": "145:9-145:44",
                      "path": "authorDatetime",
                      "scope": "OrderedPalliativeCare",
                      "type": "Property"
                    },
                    {
                      "localId": "414",
                      "locator": "145:53-145:109",
                      "type": "End",
                      "operand": {
                        "localId": "413",
                        "locator": "145:60-145:109",
                        "name": "September through December of Measurement Period",
                        "type": "ExpressionRef"
                      }
                    }
                  ]
                }
              }
            },
            {
              "localId": "426",
              "locator": "147:1-149:104",
              "name": "Palliative Care Order Before End of April",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "426",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Palliative Care Order Before End of April\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "425",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "419",
                                "s": [
                                  {
                                    "r": "418",
                                    "s": [
                                      {
                                        "r": "418",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Intervention, Order\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Palliative Care\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "OrderedPalliativeCare"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "424",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "424",
                                "s": [
                                  {
                                    "r": "421",
                                    "s": [
                                      {
                                        "r": "420",
                                        "s": [
                                          {
                                            "value": [
                                              "OrderedPalliativeCare"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "421",
                                        "s": [
                                          {
                                            "value": [
                                              "authorDatetime"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "before",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "423",
                                    "s": [
                                      {
                                        "value": [
                                          "end of "
                                        ]
                                      },
                                      {
                                        "r": "422",
                                        "s": [
                                          {
                                            "value": [
                                              "\"January through April of Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "425",
                "locator": "148:2-149:104",
                "type": "Query",
                "source": [
                  {
                    "localId": "419",
                    "locator": "148:2-148:65",
                    "alias": "OrderedPalliativeCare",
                    "expression": {
                      "localId": "418",
                      "locator": "148:2-148:43",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionOrder",
                      "templateId": "PositiveInterventionOrder",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Palliative Care",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "424",
                  "locator": "149:3-149:104",
                  "type": "Before",
                  "operand": [
                    {
                      "localId": "421",
                      "locator": "149:9-149:44",
                      "path": "authorDatetime",
                      "scope": "OrderedPalliativeCare",
                      "type": "Property"
                    },
                    {
                      "localId": "423",
                      "locator": "149:53-149:104",
                      "type": "End",
                      "operand": {
                        "localId": "422",
                        "locator": "149:60-149:104",
                        "name": "January through April of Measurement Period",
                        "type": "ExpressionRef"
                      }
                    }
                  ]
                }
              }
            },
            {
              "localId": "435",
              "locator": "151:1-153:101",
              "name": "Palliative Care Order Before End of August",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "435",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Palliative Care Order Before End of August\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "434",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "428",
                                "s": [
                                  {
                                    "r": "427",
                                    "s": [
                                      {
                                        "r": "427",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Intervention, Order\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Palliative Care\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "OrderedPalliativeCare"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "433",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "433",
                                "s": [
                                  {
                                    "r": "430",
                                    "s": [
                                      {
                                        "r": "429",
                                        "s": [
                                          {
                                            "value": [
                                              "OrderedPalliativeCare"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "430",
                                        "s": [
                                          {
                                            "value": [
                                              "authorDatetime"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "before",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "432",
                                    "s": [
                                      {
                                        "value": [
                                          "end of "
                                        ]
                                      },
                                      {
                                        "r": "431",
                                        "s": [
                                          {
                                            "value": [
                                              "\"May through August of Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "434",
                "locator": "152:2-153:101",
                "type": "Query",
                "source": [
                  {
                    "localId": "428",
                    "locator": "152:2-152:65",
                    "alias": "OrderedPalliativeCare",
                    "expression": {
                      "localId": "427",
                      "locator": "152:2-152:43",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionOrder",
                      "templateId": "PositiveInterventionOrder",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Palliative Care",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "433",
                  "locator": "153:3-153:101",
                  "type": "Before",
                  "operand": [
                    {
                      "localId": "430",
                      "locator": "153:9-153:44",
                      "path": "authorDatetime",
                      "scope": "OrderedPalliativeCare",
                      "type": "Property"
                    },
                    {
                      "localId": "432",
                      "locator": "153:53-153:101",
                      "type": "End",
                      "operand": {
                        "localId": "431",
                        "locator": "153:60-153:101",
                        "name": "May through August of Measurement Period",
                        "type": "ExpressionRef"
                      }
                    }
                  ]
                }
              }
            },
            {
              "localId": "443",
              "locator": "155:1-157:106",
              "name": "Encounter Palliative Care Overlaps September through December",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "443",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter Palliative Care Overlaps September through December\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "442",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "437",
                                "s": [
                                  {
                                    "r": "436",
                                    "s": [
                                      {
                                        "r": "436",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Palliative care encounter\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "PalliativeCareEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "441",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "441",
                                "s": [
                                  {
                                    "r": "439",
                                    "s": [
                                      {
                                        "r": "438",
                                        "s": [
                                          {
                                            "value": [
                                              "PalliativeCareEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "439",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "440",
                                    "s": [
                                      {
                                        "value": [
                                          "\"September through December of Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "442",
                "locator": "156:2-157:106",
                "type": "Query",
                "source": [
                  {
                    "localId": "437",
                    "locator": "156:2-156:78",
                    "alias": "PalliativeCareEncounter",
                    "expression": {
                      "localId": "436",
                      "locator": "156:2-156:54",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Palliative care encounter",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "441",
                  "locator": "157:3-157:106",
                  "type": "Overlaps",
                  "operand": [
                    {
                      "localId": "439",
                      "locator": "157:9-157:46",
                      "path": "relevantPeriod",
                      "scope": "PalliativeCareEncounter",
                      "type": "Property"
                    },
                    {
                      "localId": "440",
                      "locator": "157:57-157:106",
                      "name": "September through December of Measurement Period",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              }
            },
            {
              "localId": "451",
              "locator": "159:1-161:98",
              "name": "Encounter Palliative Care Overlaps May through August",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "451",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter Palliative Care Overlaps May through August\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "450",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "445",
                                "s": [
                                  {
                                    "r": "444",
                                    "s": [
                                      {
                                        "r": "444",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Palliative care encounter\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "PalliativeCareEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "449",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "449",
                                "s": [
                                  {
                                    "r": "447",
                                    "s": [
                                      {
                                        "r": "446",
                                        "s": [
                                          {
                                            "value": [
                                              "PalliativeCareEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "447",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "448",
                                    "s": [
                                      {
                                        "value": [
                                          "\"May through August of Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "450",
                "locator": "160:2-161:98",
                "type": "Query",
                "source": [
                  {
                    "localId": "445",
                    "locator": "160:2-160:78",
                    "alias": "PalliativeCareEncounter",
                    "expression": {
                      "localId": "444",
                      "locator": "160:2-160:54",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Palliative care encounter",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "449",
                  "locator": "161:3-161:98",
                  "type": "Overlaps",
                  "operand": [
                    {
                      "localId": "447",
                      "locator": "161:9-161:46",
                      "path": "relevantPeriod",
                      "scope": "PalliativeCareEncounter",
                      "type": "Property"
                    },
                    {
                      "localId": "448",
                      "locator": "161:57-161:98",
                      "name": "May through August of Measurement Period",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              }
            },
            {
              "localId": "459",
              "locator": "163:1-165:101",
              "name": "Encounter Palliative Care Overlaps January through April",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "459",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter Palliative Care Overlaps January through April\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "458",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "453",
                                "s": [
                                  {
                                    "r": "452",
                                    "s": [
                                      {
                                        "r": "452",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Palliative care encounter\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "PalliativeCareEncounter"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "457",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "457",
                                "s": [
                                  {
                                    "r": "455",
                                    "s": [
                                      {
                                        "r": "454",
                                        "s": [
                                          {
                                            "value": [
                                              "PalliativeCareEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "455",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "456",
                                    "s": [
                                      {
                                        "value": [
                                          "\"January through April of Measurement Period\""
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "458",
                "locator": "164:2-165:101",
                "type": "Query",
                "source": [
                  {
                    "localId": "453",
                    "locator": "164:2-164:78",
                    "alias": "PalliativeCareEncounter",
                    "expression": {
                      "localId": "452",
                      "locator": "164:2-164:54",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Palliative care encounter",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

                ],
                "where": {
                  "localId": "457",
                  "locator": "165:3-165:101",
                  "type": "Overlaps",
                  "operand": [
                    {
                      "localId": "455",
                      "locator": "165:9-165:46",
                      "path": "relevantPeriod",
                      "scope": "PalliativeCareEncounter",
                      "type": "Property"
                    },
                    {
                      "localId": "456",
                      "locator": "165:57-165:101",
                      "name": "January through April of Measurement Period",
                      "type": "ExpressionRef"
                    }
                  ]
                }
              }
            },
            {
              "localId": "488",
              "locator": "219:1-225:91",
              "name": "Disorder Diagnoses Overlaps Depression Encounter in September through December",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "488",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Disorder Diagnoses Overlaps Depression Encounter in September through December\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "487",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "478",
                                "s": [
                                  {
                                    "r": "477",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "477",
                                        "s": [
                                          {
                                            "r": "475",
                                            "s": [
                                              {
                                                "r": "473",
                                                "s": [
                                                  {
                                                    "r": "471",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Diagnosis\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Bipolar Disorder\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t\tunion "
                                                    ]
                                                  },
                                                  {
                                                    "r": "472",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Diagnosis\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Personality Disorder\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "\n\t\tunion "
                                                ]
                                              },
                                              {
                                                "r": "474",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Diagnosis\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Schizophrenia or Psychotic Disorder\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\tunion "
                                            ]
                                          },
                                          {
                                            "r": "476",
                                            "s": [
                                              {
                                                "value": [
                                                  "[",
                                                  "\"Diagnosis\"",
                                                  ": "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Pervasive Developmental Disorder\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "]"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " )"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DisorderDiagnoses"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "486",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "480",
                                "s": [
                                  {
                                    "r": "479",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Encounter in September through December\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "485",
                                "s": [
                                  {
                                    "r": "482",
                                    "s": [
                                      {
                                        "r": "481",
                                        "s": [
                                          {
                                            "value": [
                                              "DisorderDiagnoses"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "482",
                                        "s": [
                                          {
                                            "value": [
                                              "prevalencePeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "484",
                                    "s": [
                                      {
                                        "r": "483",
                                        "s": [
                                          {
                                            "value": [
                                              "DepressionEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "484",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "487",
                "locator": "220:2-225:91",
                "type": "Query",
                "source": [
                  {
                    "localId": "478",
                    "locator": "220:2-223:77",
                    "alias": "DisorderDiagnoses",
                    "expression": {
                      "localId": "477",
                      "locator": "220:2-223:59",
                      "type": "Union",
                      "operand": [
                        {
                          "localId": "475",
                          "locator": "220:4-222:60",
                          "type": "Union",
                          "operand": [
                            {
                              "localId": "473",
                              "locator": "220:4-221:45",
                              "type": "Union",
                              "operand": [
                                {
                                  "localId": "471",
                                  "locator": "220:4-220:36",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Bipolar Disorder",
                                    "type": "ValueSetRef"
                                  }
                                },
                                {
                                  "localId": "472",
                                  "locator": "221:9-221:45",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Personality Disorder",
                                    "type": "ValueSetRef"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "474",
                              "locator": "222:9-222:60",
                              "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                              "codeProperty": "code",
                              "type": "Retrieve",
                              "codes": {
                                "name": "Schizophrenia or Psychotic Disorder",
                                "type": "ValueSetRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "476",
                          "locator": "223:9-223:57",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "Pervasive Developmental Disorder",
                            "type": "ValueSetRef"
                          }
                        }
                      ]
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "486",
                    "locator": "224:3-225:91",
                    "alias": "DepressionEncounter",
                    "type": "With",
                    "expression": {
                      "localId": "479",
                      "locator": "224:8-224:59",
                      "name": "Depression Encounter in September through December",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "485",
                      "locator": "225:14-225:91",
                      "type": "Overlaps",
                      "operand": [
                        {
                          "localId": "482",
                          "locator": "225:14-225:47",
                          "path": "prevalencePeriod",
                          "scope": "DisorderDiagnoses",
                          "type": "Property"
                        },
                        {
                          "localId": "484",
                          "locator": "225:58-225:91",
                          "path": "relevantPeriod",
                          "scope": "DepressionEncounter",
                          "type": "Property"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "492",
              "locator": "167:1-172:96",
              "name": "Denominator Exclusion 1",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "492",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Denominator Exclusion 1\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "491",
                        "s": [
                          {
                            "r": "470",
                            "s": [
                              {
                                "r": "467",
                                "s": [
                                  {
                                    "r": "464",
                                    "s": [
                                      {
                                        "r": "461",
                                        "s": [
                                          {
                                            "value": [
                                              "exists "
                                            ]
                                          },
                                          {
                                            "r": "460",
                                            "s": [
                                              {
                                                "value": [
                                                  "( "
                                                ]
                                              },
                                              {
                                                "r": "460",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Palliative Care Order Before End of December\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " )"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\tor "
                                        ]
                                      },
                                      {
                                        "r": "463",
                                        "s": [
                                          {
                                            "value": [
                                              "exists "
                                            ]
                                          },
                                          {
                                            "r": "462",
                                            "s": [
                                              {
                                                "value": [
                                                  "( "
                                                ]
                                              },
                                              {
                                                "r": "462",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Encounter Palliative Care Overlaps September through December\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " )"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\tor "
                                    ]
                                  },
                                  {
                                    "r": "466",
                                    "s": [
                                      {
                                        "value": [
                                          "exists "
                                        ]
                                      },
                                      {
                                        "r": "465",
                                        "s": [
                                          {
                                            "value": [
                                              "( "
                                            ]
                                          },
                                          {
                                            "r": "465",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Long Term Care Overlaps September through December\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " )"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tor "
                                ]
                              },
                              {
                                "r": "469",
                                "s": [
                                  {
                                    "value": [
                                      "exists "
                                    ]
                                  },
                                  {
                                    "r": "468",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "468",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Expired in September through December\""
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " )"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tor "
                            ]
                          },
                          {
                            "r": "490",
                            "s": [
                              {
                                "value": [
                                  "exists "
                                ]
                              },
                              {
                                "r": "489",
                                "s": [
                                  {
                                    "value": [
                                      "( "
                                    ]
                                  },
                                  {
                                    "r": "489",
                                    "s": [
                                      {
                                        "value": [
                                          "\"Disorder Diagnoses Overlaps Depression Encounter in September through December\""
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " )"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "491",
                "locator": "168:2-172:96",
                "type": "Or",
                "operand": [
                  {
                    "localId": "470",
                    "locator": "168:2-171:55",
                    "type": "Or",
                    "operand": [
                      {
                        "localId": "467",
                        "locator": "168:2-170:68",
                        "type": "Or",
                        "operand": [
                          {
                            "localId": "464",
                            "locator": "168:2-169:79",
                            "type": "Or",
                            "operand": [
                              {
                                "localId": "461",
                                "locator": "168:2-168:58",
                                "type": "Exists",
                                "operand": {
                                  "localId": "460",
                                  "locator": "168:9-168:58",
                                  "name": "Palliative Care Order Before End of December",
                                  "type": "ExpressionRef"
                                }
                              },
                              {
                                "localId": "463",
                                "locator": "169:6-169:79",
                                "type": "Exists",
                                "operand": {
                                  "localId": "462",
                                  "locator": "169:13-169:79",
                                  "name": "Encounter Palliative Care Overlaps September through December",
                                  "type": "ExpressionRef"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "466",
                            "locator": "170:6-170:68",
                            "type": "Exists",
                            "operand": {
                              "localId": "465",
                              "locator": "170:13-170:68",
                              "name": "Long Term Care Overlaps September through December",
                              "type": "ExpressionRef"
                            }
                          }
                        ]
                      },
                      {
                        "localId": "469",
                        "locator": "171:6-171:55",
                        "type": "Exists",
                        "operand": {
                          "localId": "468",
                          "locator": "171:13-171:55",
                          "name": "Expired in September through December",
                          "type": "ExpressionRef"
                        }
                      }
                    ]
                  },
                  {
                    "localId": "490",
                    "locator": "172:6-172:96",
                    "type": "Exists",
                    "operand": {
                      "localId": "489",
                      "locator": "172:13-172:96",
                      "name": "Disorder Diagnoses Overlaps Depression Encounter in September through December",
                      "type": "ExpressionRef"
                    }
                  }
                ]
              }
            },
            {
              "localId": "507",
              "locator": "174:1-179:88",
              "name": "Denominator Exclusion 2",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "507",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Denominator Exclusion 2\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "506",
                        "s": [
                          {
                            "r": "503",
                            "s": [
                              {
                                "r": "500",
                                "s": [
                                  {
                                    "r": "497",
                                    "s": [
                                      {
                                        "r": "494",
                                        "s": [
                                          {
                                            "value": [
                                              "exists "
                                            ]
                                          },
                                          {
                                            "r": "493",
                                            "s": [
                                              {
                                                "value": [
                                                  "( "
                                                ]
                                              },
                                              {
                                                "r": "493",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Palliative Care Order Before End of August\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " )"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\tor "
                                        ]
                                      },
                                      {
                                        "r": "496",
                                        "s": [
                                          {
                                            "value": [
                                              "exists "
                                            ]
                                          },
                                          {
                                            "r": "495",
                                            "s": [
                                              {
                                                "value": [
                                                  "( "
                                                ]
                                              },
                                              {
                                                "r": "495",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Encounter Palliative Care Overlaps May through August\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " )"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\tor "
                                    ]
                                  },
                                  {
                                    "r": "499",
                                    "s": [
                                      {
                                        "value": [
                                          "exists "
                                        ]
                                      },
                                      {
                                        "r": "498",
                                        "s": [
                                          {
                                            "value": [
                                              "( "
                                            ]
                                          },
                                          {
                                            "r": "498",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Long Term Care Overlaps May through August\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " )"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tor "
                                ]
                              },
                              {
                                "r": "502",
                                "s": [
                                  {
                                    "value": [
                                      "exists "
                                    ]
                                  },
                                  {
                                    "r": "501",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "501",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Expired in May through August\""
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " )"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tor "
                            ]
                          },
                          {
                            "r": "505",
                            "s": [
                              {
                                "value": [
                                  "exists "
                                ]
                              },
                              {
                                "r": "504",
                                "s": [
                                  {
                                    "value": [
                                      "( "
                                    ]
                                  },
                                  {
                                    "r": "504",
                                    "s": [
                                      {
                                        "value": [
                                          "\"Disorder Diagnoses Overlaps Depression Encounter in May through August\""
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " )"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "506",
                "locator": "175:2-179:88",
                "type": "Or",
                "operand": [
                  {
                    "localId": "503",
                    "locator": "175:2-178:47",
                    "type": "Or",
                    "operand": [
                      {
                        "localId": "500",
                        "locator": "175:2-177:60",
                        "type": "Or",
                        "operand": [
                          {
                            "localId": "497",
                            "locator": "175:2-176:71",
                            "type": "Or",
                            "operand": [
                              {
                                "localId": "494",
                                "locator": "175:2-175:56",
                                "type": "Exists",
                                "operand": {
                                  "localId": "493",
                                  "locator": "175:9-175:56",
                                  "name": "Palliative Care Order Before End of August",
                                  "type": "ExpressionRef"
                                }
                              },
                              {
                                "localId": "496",
                                "locator": "176:6-176:71",
                                "type": "Exists",
                                "operand": {
                                  "localId": "495",
                                  "locator": "176:13-176:71",
                                  "name": "Encounter Palliative Care Overlaps May through August",
                                  "type": "ExpressionRef"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "499",
                            "locator": "177:6-177:60",
                            "type": "Exists",
                            "operand": {
                              "localId": "498",
                              "locator": "177:13-177:60",
                              "name": "Long Term Care Overlaps May through August",
                              "type": "ExpressionRef"
                            }
                          }
                        ]
                      },
                      {
                        "localId": "502",
                        "locator": "178:6-178:47",
                        "type": "Exists",
                        "operand": {
                          "localId": "501",
                          "locator": "178:13-178:47",
                          "name": "Expired in May through August",
                          "type": "ExpressionRef"
                        }
                      }
                    ]
                  },
                  {
                    "localId": "505",
                    "locator": "179:6-179:88",
                    "type": "Exists",
                    "operand": {
                      "localId": "504",
                      "locator": "179:13-179:88",
                      "name": "Disorder Diagnoses Overlaps Depression Encounter in May through August",
                      "type": "ExpressionRef"
                    }
                  }
                ]
              }
            },
            {
              "localId": "536",
              "locator": "227:1-233:91",
              "name": "Disorder Diagnoses Overlaps Depression Encounter in January through April",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "536",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Disorder Diagnoses Overlaps Depression Encounter in January through April\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "535",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "526",
                                "s": [
                                  {
                                    "r": "525",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "525",
                                        "s": [
                                          {
                                            "r": "523",
                                            "s": [
                                              {
                                                "r": "521",
                                                "s": [
                                                  {
                                                    "r": "519",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Diagnosis\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Bipolar Disorder\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "\n\t\tunion "
                                                    ]
                                                  },
                                                  {
                                                    "r": "520",
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "[",
                                                          "\"Diagnosis\"",
                                                          ": "
                                                        ]
                                                      },
                                                      {
                                                        "s": [
                                                          {
                                                            "value": [
                                                              "\"Personality Disorder\""
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "value": [
                                                          "]"
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "\n\t\tunion "
                                                ]
                                              },
                                              {
                                                "r": "522",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "[",
                                                      "\"Diagnosis\"",
                                                      ": "
                                                    ]
                                                  },
                                                  {
                                                    "s": [
                                                      {
                                                        "value": [
                                                          "\"Schizophrenia or Psychotic Disorder\""
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "value": [
                                                      "]"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "\n\t\tunion "
                                            ]
                                          },
                                          {
                                            "r": "524",
                                            "s": [
                                              {
                                                "value": [
                                                  "[",
                                                  "\"Diagnosis\"",
                                                  ": "
                                                ]
                                              },
                                              {
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Pervasive Developmental Disorder\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "]"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " )"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DisorderDiagnoses"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "534",
                            "s": [
                              {
                                "value": [
                                  "with "
                                ]
                              },
                              {
                                "r": "528",
                                "s": [
                                  {
                                    "r": "527",
                                    "s": [
                                      {
                                        "s": [
                                          {
                                            "value": [
                                              "\"Depression Encounter in January through April\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "DepressionEncounter"
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\t\tsuch that "
                                ]
                              },
                              {
                                "r": "533",
                                "s": [
                                  {
                                    "r": "530",
                                    "s": [
                                      {
                                        "r": "529",
                                        "s": [
                                          {
                                            "value": [
                                              "DisorderDiagnoses"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "530",
                                        "s": [
                                          {
                                            "value": [
                                              "prevalencePeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "overlaps",
                                      " "
                                    ]
                                  },
                                  {
                                    "r": "532",
                                    "s": [
                                      {
                                        "r": "531",
                                        "s": [
                                          {
                                            "value": [
                                              "DepressionEncounter"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "."
                                        ]
                                      },
                                      {
                                        "r": "532",
                                        "s": [
                                          {
                                            "value": [
                                              "relevantPeriod"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "535",
                "locator": "228:2-233:91",
                "type": "Query",
                "source": [
                  {
                    "localId": "526",
                    "locator": "228:2-231:77",
                    "alias": "DisorderDiagnoses",
                    "expression": {
                      "localId": "525",
                      "locator": "228:2-231:59",
                      "type": "Union",
                      "operand": [
                        {
                          "localId": "523",
                          "locator": "228:4-230:60",
                          "type": "Union",
                          "operand": [
                            {
                              "localId": "521",
                              "locator": "228:4-229:45",
                              "type": "Union",
                              "operand": [
                                {
                                  "localId": "519",
                                  "locator": "228:4-228:36",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Bipolar Disorder",
                                    "type": "ValueSetRef"
                                  }
                                },
                                {
                                  "localId": "520",
                                  "locator": "229:9-229:45",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Personality Disorder",
                                    "type": "ValueSetRef"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "522",
                              "locator": "230:9-230:60",
                              "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                              "codeProperty": "code",
                              "type": "Retrieve",
                              "codes": {
                                "name": "Schizophrenia or Psychotic Disorder",
                                "type": "ValueSetRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "524",
                          "locator": "231:9-231:57",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "Pervasive Developmental Disorder",
                            "type": "ValueSetRef"
                          }
                        }
                      ]
                    }
                  }
                ],
                "relationship": [
                  {
                    "localId": "534",
                    "locator": "232:3-233:91",
                    "alias": "DepressionEncounter",
                    "type": "With",
                    "expression": {
                      "localId": "527",
                      "locator": "232:8-232:54",
                      "name": "Depression Encounter in January through April",
                      "type": "ExpressionRef"
                    },
                    "suchThat": {
                      "localId": "533",
                      "locator": "233:14-233:91",
                      "type": "Overlaps",
                      "operand": [
                        {
                          "localId": "530",
                          "locator": "233:14-233:47",
                          "path": "prevalencePeriod",
                          "scope": "DisorderDiagnoses",
                          "type": "Property"
                        },
                        {
                          "localId": "532",
                          "locator": "233:58-233:91",
                          "path": "relevantPeriod",
                          "scope": "DepressionEncounter",
                          "type": "Property"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "localId": "540",
              "locator": "181:1-186:91",
              "name": "Denominator Exclusion 3",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "540",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Denominator Exclusion 3\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "539",
                        "s": [
                          {
                            "r": "518",
                            "s": [
                              {
                                "r": "515",
                                "s": [
                                  {
                                    "r": "512",
                                    "s": [
                                      {
                                        "r": "509",
                                        "s": [
                                          {
                                            "value": [
                                              "exists "
                                            ]
                                          },
                                          {
                                            "r": "508",
                                            "s": [
                                              {
                                                "value": [
                                                  "( "
                                                ]
                                              },
                                              {
                                                "r": "508",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Palliative Care Order Before End of April\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " )"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "\n\t\tor "
                                        ]
                                      },
                                      {
                                        "r": "511",
                                        "s": [
                                          {
                                            "value": [
                                              "exists "
                                            ]
                                          },
                                          {
                                            "r": "510",
                                            "s": [
                                              {
                                                "value": [
                                                  "( "
                                                ]
                                              },
                                              {
                                                "r": "510",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "\"Encounter Palliative Care Overlaps January through April\""
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  " )"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\tor "
                                    ]
                                  },
                                  {
                                    "r": "514",
                                    "s": [
                                      {
                                        "value": [
                                          "exists "
                                        ]
                                      },
                                      {
                                        "r": "513",
                                        "s": [
                                          {
                                            "value": [
                                              "( "
                                            ]
                                          },
                                          {
                                            "r": "513",
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Long Term Care Overlaps January through April\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              " )"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  "\n\t\tor "
                                ]
                              },
                              {
                                "r": "517",
                                "s": [
                                  {
                                    "value": [
                                      "exists "
                                    ]
                                  },
                                  {
                                    "r": "516",
                                    "s": [
                                      {
                                        "value": [
                                          "( "
                                        ]
                                      },
                                      {
                                        "r": "516",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Expired in January through April\""
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " )"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\tor "
                            ]
                          },
                          {
                            "r": "538",
                            "s": [
                              {
                                "value": [
                                  "exists "
                                ]
                              },
                              {
                                "r": "537",
                                "s": [
                                  {
                                    "value": [
                                      "( "
                                    ]
                                  },
                                  {
                                    "r": "537",
                                    "s": [
                                      {
                                        "value": [
                                          "\"Disorder Diagnoses Overlaps Depression Encounter in January through April\""
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " )"
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "539",
                "locator": "182:2-186:91",
                "type": "Or",
                "operand": [
                  {
                    "localId": "518",
                    "locator": "182:2-185:50",
                    "type": "Or",
                    "operand": [
                      {
                        "localId": "515",
                        "locator": "182:2-184:63",
                        "type": "Or",
                        "operand": [
                          {
                            "localId": "512",
                            "locator": "182:2-183:74",
                            "type": "Or",
                            "operand": [
                              {
                                "localId": "509",
                                "locator": "182:2-182:55",
                                "type": "Exists",
                                "operand": {
                                  "localId": "508",
                                  "locator": "182:9-182:55",
                                  "name": "Palliative Care Order Before End of April",
                                  "type": "ExpressionRef"
                                }
                              },
                              {
                                "localId": "511",
                                "locator": "183:6-183:74",
                                "type": "Exists",
                                "operand": {
                                  "localId": "510",
                                  "locator": "183:13-183:74",
                                  "name": "Encounter Palliative Care Overlaps January through April",
                                  "type": "ExpressionRef"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "514",
                            "locator": "184:6-184:63",
                            "type": "Exists",
                            "operand": {
                              "localId": "513",
                              "locator": "184:13-184:63",
                              "name": "Long Term Care Overlaps January through April",
                              "type": "ExpressionRef"
                            }
                          }
                        ]
                      },
                      {
                        "localId": "517",
                        "locator": "185:6-185:50",
                        "type": "Exists",
                        "operand": {
                          "localId": "516",
                          "locator": "185:13-185:50",
                          "name": "Expired in January through April",
                          "type": "ExpressionRef"
                        }
                      }
                    ]
                  },
                  {
                    "localId": "538",
                    "locator": "186:6-186:91",
                    "type": "Exists",
                    "operand": {
                      "localId": "537",
                      "locator": "186:13-186:91",
                      "name": "Disorder Diagnoses Overlaps Depression Encounter in January through April",
                      "type": "ExpressionRef"
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    },
    {
      "library": {
        "identifier": {
          "id": "MATGlobalCommonFunctions",
          "version": "2.0.000"
        },
        "schemaIdentifier": {
          "id": "urn:hl7-org:elm",
          "version": "r1"
        },
        "usings": {
          "def": [
            {
              "localIdentifier": "System",
              "uri": "urn:hl7-org:elm-types:r1"
            },
            {
              "localId": "1",
              "locator": "3:1-3:23",
              "localIdentifier": "QDM",
              "uri": "urn:healthit-gov:qdm:v5_3",
              "version": "5.3"
            }
          ]
        },
        "parameters": {
          "def": [
            {
              "localId": "13",
              "locator": "15:1-15:49",
              "name": "Measurement Period",
              "accessLevel": "Public",
              "parameterTypeSpecifier": {
                "localId": "12",
                "locator": "15:32-15:49",
                "type": "IntervalTypeSpecifier",
                "pointType": {
                  "localId": "11",
                  "locator": "15:41-15:48",
                  "name": "{urn:hl7-org:elm-types:r1}DateTime",
                  "type": "NamedTypeSpecifier"
                }
              }
            }
          ]
        },
        "codeSystems": {
          "def": [
            {
              "localId": "2",
              "locator": "5:1-5:87",
              "name": "LOINC:2.46",
              "id": "LOINC",
              "version": "urn:hl7:version:2.46",
              "accessLevel": "Public"
            },
            {
              "localId": "3",
              "locator": "6:1-6:97",
              "name": "SNOMEDCT:2016-03",
              "id": "SNOMED-CT",
              "version": "urn:hl7:version:2016-03",
              "accessLevel": "Public"
            }
          ]
        },
        "valueSets": {
          "def": [
            {
              "localId": "4",
              "locator": "8:1-8:82",
              "name": "Emergency Department Visit",
              "id": "2.16.840.1.113883.3.117.1.7.1.292",
              "accessLevel": "Public"
            },
            {
              "localId": "5",
              "locator": "9:1-9:71",
              "name": "Encounter Inpatient",
              "id": "2.16.840.1.113883.3.666.5.307",
              "accessLevel": "Public"
            },
            {
              "localId": "6",
              "locator": "10:1-10:71",
              "name": "Intensive Care Unit",
              "id": "2.16.840.1.113762.1.4.1110.23",
              "accessLevel": "Public"
            }
          ]
        },
        "codes": {
          "def": [
            {
              "localId": "8",
              "locator": "12:1-12:66",
              "name": "Birthdate",
              "id": "21112-8",
              "display": "Birth date",
              "accessLevel": "Public",
              "codeSystem": {
                "localId": "7",
                "locator": "12:34-12:45",
                "name": "LOINC:2.46"
              }
            },
            {
              "localId": "10",
              "locator": "13:1-13:63",
              "name": "Dead",
              "id": "419099009",
              "display": "Dead",
              "accessLevel": "Public",
              "codeSystem": {
                "localId": "9",
                "locator": "13:31-13:48",
                "name": "SNOMEDCT:2016-03"
              }
            }
          ]
        },
        "statements": {
          "def": [
            {
              "locator": "17:1-17:15",
              "name": "Patient",
              "context": "Patient",
              "expression": {
                "type": "SingletonFrom",
                "operand": {
                  "locator": "17:1-17:15",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                  "templateId": "Patient",
                  "type": "Retrieve"
                }
              }
            },
            {
              "localId": "15",
              "locator": "19:1-20:55",
              "name": "Encounter",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "15",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Encounter\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "14",
                        "s": [
                          {
                            "value": [
                              "[",
                              "\"Encounter, Performed\"",
                              ": "
                            ]
                          },
                          {
                            "s": [
                              {
                                "value": [
                                  "\"Emergency Department Visit\""
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "]"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "14",
                "locator": "20:2-20:55",
                "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                "templateId": "PositiveEncounterPerformed",
                "codeProperty": "code",
                "type": "Retrieve",
                "codes": {
                  "name": "Emergency Department Visit",
                  "type": "ValueSetRef"
                }
              }
            },
            {
              "localId": "27",
              "locator": "63:1-64:59",
              "name": "LengthInDays",
              "context": "Patient",
              "accessLevel": "Public",
              "type": "FunctionDef",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "27",
                    "s": [
                      {
                        "value": [
                          "define function ",
                          "\"LengthInDays\"",
                          "(",
                          "Value",
                          " "
                        ]
                      },
                      {
                        "r": "21",
                        "s": [
                          {
                            "value": [
                              "Interval<"
                            ]
                          },
                          {
                            "r": "20",
                            "s": [
                              {
                                "value": [
                                  "DateTime"
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              ">"
                            ]
                          }
                        ]
                      },
                      {
                        "value": [
                          " ):\n\t"
                        ]
                      },
                      {
                        "r": "26",
                        "s": [
                          {
                            "r": "26",
                            "s": [
                              {
                                "value": [
                                  "difference in days between "
                                ]
                              },
                              {
                                "r": "23",
                                "s": [
                                  {
                                    "value": [
                                      "start of "
                                    ]
                                  },
                                  {
                                    "r": "22",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "value": [
                                  " and "
                                ]
                              },
                              {
                                "r": "25",
                                "s": [
                                  {
                                    "value": [
                                      "end of "
                                    ]
                                  },
                                  {
                                    "r": "24",
                                    "s": [
                                      {
                                        "value": [
                                          "Value"
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "26",
                "locator": "64:2-64:59",
                "precision": "Day",
                "type": "DifferenceBetween",
                "operand": [
                  {
                    "localId": "23",
                    "locator": "64:29-64:42",
                    "type": "Start",
                    "operand": {
                      "localId": "22",
                      "locator": "64:38-64:42",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  {
                    "localId": "25",
                    "locator": "64:48-64:59",
                    "type": "End",
                    "operand": {
                      "localId": "24",
                      "locator": "64:55-64:59",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  }
                ]
              },
              "operand": [
                {
                  "name": "Value",
                  "operandTypeSpecifier": {
                    "localId": "21",
                    "locator": "63:38-63:55",
                    "type": "IntervalTypeSpecifier",
                    "pointType": {
                      "localId": "20",
                      "locator": "63:47-63:54",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                }
              ]
            },
            {
              "localId": "37",
              "locator": "22:1-25:73",
              "name": "Inpatient Encounter",
              "context": "Patient",
              "accessLevel": "Public",
              "annotation": [
                {
                  "type": "Annotation",
                  "s": {
                    "r": "37",
                    "s": [
                      {
                        "value": [
                          "define ",
                          "\"Inpatient Encounter\"",
                          ":\n\t"
                        ]
                      },
                      {
                        "r": "36",
                        "s": [
                          {
                            "s": [
                              {
                                "r": "17",
                                "s": [
                                  {
                                    "r": "16",
                                    "s": [
                                      {
                                        "r": "16",
                                        "s": [
                                          {
                                            "value": [
                                              "[",
                                              "\"Encounter, Performed\"",
                                              ": "
                                            ]
                                          },
                                          {
                                            "s": [
                                              {
                                                "value": [
                                                  "\"Encounter Inpatient\""
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "]"
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      " ",
                                      "EncounterInpatient"
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "value": [
                              "\n\t\t"
                            ]
                          },
                          {
                            "r": "35",
                            "s": [
                              {
                                "value": [
                                  "where "
                                ]
                              },
                              {
                                "r": "35",
                                "s": [
                                  {
                                    "r": "30",
                                    "s": [
                                      {
                                        "r": "28",
                                        "s": [
                                          {
                                            "value": [
                                              "\"LengthInDays\"",
                                              "("
                                            ]
                                          },
                                          {
                                            "r": "19",
                                            "s": [
                                              {
                                                "r": "18",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "EncounterInpatient"
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "value": [
                                                  "."
                                                ]
                                              },
                                              {
                                                "r": "19",
                                                "s": [
                                                  {
                                                    "value": [
                                                      "relevantPeriod"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              ")"
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          "<=",
                                          " ",
                                          "120"
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "value": [
                                      "\n\t\t\tand "
                                    ]
                                  },
                                  {
                                    "r": "34",
                                    "s": [
                                      {
                                        "r": "32",
                                        "s": [
                                          {
                                            "r": "31",
                                            "s": [
                                              {
                                                "value": [
                                                  "EncounterInpatient"
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "value": [
                                              "."
                                            ]
                                          },
                                          {
                                            "r": "32",
                                            "s": [
                                              {
                                                "value": [
                                                  "relevantPeriod"
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "value": [
                                          " ",
                                          "ends during",
                                          " "
                                        ]
                                      },
                                      {
                                        "r": "33",
                                        "s": [
                                          {
                                            "value": [
                                              "\"Measurement Period\""
                                            ]
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "expression": {
                "localId": "36",
                "locator": "23:2-25:73",
                "type": "Query",
                "source": [
                  {
                    "localId": "17",
                    "locator": "23:2-23:67",
                    "alias": "EncounterInpatient",
                    "expression": {
                      "localId": "16",
                      "locator": "23:2-23:48",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "templateId": "PositiveEncounterPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Encounter Inpatient",
                        "type": "ValueSetRef"
                      }
                    }
                  }
                ],
                "relationship": [

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

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

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

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

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

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

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

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

                  ],
                  "where": {
                    "localId": "217",
                    "locator": "112:4-113:71",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "211",
                        "locator": "112:10-112:55",
                        "type": "InValueSet",
                        "code": {
                          "localId": "209",
                          "locator": "112:10-112:30",
                          "path": "code",
                          "scope": "HospitalLocation",
                          "type": "Property"
                        },
                        "valueset": {
                          "localId": "210",
                          "locator": "112:35-112:55",
                          "name": "Intensive Care Unit"
                        }
                      },
                      {
                        "localId": "216",
                        "locator": "113:9-113:71",
                        "type": "IncludedIn",
                        "operand": [
                          {
                            "localId": "213",
                            "locator": "113:9-113:39",
                            "path": "locationPeriod",
                            "scope": "HospitalLocation",
                            "type": "Property"
                          },
                          {
                            "localId": "215",
                            "locator": "113:48-113:71",
                            "path": "relevantPeriod",
                            "type": "Property",
                            "source": {
                              "localId": "214",
                              "locator": "113:48-113:56",
                              "name": "Encounter",
                              "type": "OperandRef"
                            }
                          }
                        ]
                      }
                    ]
                  },
                  "sort": {
                    "localId": "221",
                    "locator": "114:4-114:34",
                    "by": [
                      {
                        "localId": "220",
                        "locator": "114:12-114:34",
                        "direction": "asc",
                        "type": "ByExpression",
                        "expression": {
                          "localId": "219",
                          "locator": "114:12-114:34",
                          "type": "Start",
                          "operand": {
                            "localId": "218",
                            "locator": "114:21-114:34",
                            "name": "locationPeriod",
                            "type": "IdentifierRef"
                          }
                        }
                      }
                    ]
                  }
                }
              },
              "operand": [
                {
                  "name": "Encounter",
                  "operandTypeSpecifier": {
                    "localId": "204",
                    "locator": "110:65-110:86",
                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                    "type": "NamedTypeSpecifier"
                  }
                }
              ]
            }
          ]
        }
      }
    }
  ],
  "elm_annotations": {
    "DepressionUtilizationofthePHQ9Tool": {
      "statements": [
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"SDE Ethnicity\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "[\"Patient Characteristic Ethnicity\": "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "\"Ethnicity\""
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "]"
                        }
                      ]
                    }
                  ],
                  "node_type": "Retrieve",
                  "ref_id": "23"
                }
              ],
              "ref_id": "24"
            }
          ],
          "define_name": "SDE Ethnicity"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"SDE Payer\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "[\"Patient Characteristic Payer\": "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "\"Payer\""
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "]"
                        }
                      ]
                    }
                  ],
                  "node_type": "Retrieve",
                  "ref_id": "25"
                }
              ],
              "ref_id": "26"
            }
          ],
          "define_name": "SDE Payer"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"SDE Race\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "[\"Patient Characteristic Race\": "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "\"Race\""
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "]"
                        }
                      ]
                    }
                  ],
                  "node_type": "Retrieve",
                  "ref_id": "27"
                }
              ],
              "ref_id": "28"
            }
          ],
          "define_name": "SDE Race"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"SDE Sex\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "[\"Patient Characteristic Sex\": "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "\"ONC Administrative Sex\""
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "]"
                        }
                      ]
                    }
                  ],
                  "node_type": "Retrieve",
                  "ref_id": "29"
                }
              ],
              "ref_id": "30"
            }
          ],
          "define_name": "SDE Sex"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Depression Diagnoses\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "[\"Diagnosis\": "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Major Depression Including Remission\""
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "]"
                            }
                          ]
                        }
                      ],
                      "node_type": "Retrieve",
                      "ref_id": "33"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    union "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "[\"Diagnosis\": "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Dysthymia\""
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "]"
                            }
                          ]
                        }
                      ],
                      "node_type": "Retrieve",
                      "ref_id": "34"
                    }
                  ],
                  "node_type": "Union",
                  "ref_id": "35"
                }
              ],
              "ref_id": "36"
            }
          ],
          "define_name": "Depression Diagnoses"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"September through December of Measurement Period\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "Interval["
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "start of "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ParameterRef",
                              "ref_id": "64"
                            }
                          ],
                          "node_type": "Start",
                          "ref_id": "65"
                        },
                        {
                          "children": [
                            {
                              "text": " + "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "8 months"
                                }
                              ]
                            }
                          ],
                          "node_type": "Quantity",
                          "ref_id": "66"
                        }
                      ],
                      "ref_id": "67"
                    },
                    {
                      "children": [
                        {
                          "text": ", "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "end of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Measurement Period\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ParameterRef",
                          "ref_id": "68"
                        }
                      ],
                      "ref_id": "69"
                    },
                    {
                      "children": [
                        {
                          "text": "]"
                        }
                      ]
                    }
                  ],
                  "node_type": "Interval",
                  "ref_id": "70"
                }
              ],
              "ref_id": "71"
            }
          ],
          "define_name": "September through December of Measurement Period"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Depression Encounter in September through December\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Encounter, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Contact or Office Visit\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "31"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "31"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "32"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Diagnoses\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "37"
                            },
                            {
                              "children": [
                                {
                                  "text": " Depression"
                                }
                              ]
                            }
                          ],
                          "ref_id": "38"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "DepressionEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "39"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "40"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "40"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Depression"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "41"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "prevalencePeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "42"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "42"
                            }
                          ],
                          "node_type": "Overlaps",
                          "ref_id": "43"
                        }
                      ],
                      "ref_id": "44"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Birthdate\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "45"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "45"
                            },
                            {
                              "children": [
                                {
                                  "text": " BirthDate"
                                }
                              ]
                            }
                          ],
                          "ref_id": "46"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Global"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "47"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"CalendarAgeInYearsAt\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "BirthDate"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "48"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "birthDatetime"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "49"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "49"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ", "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "50"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "51"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "51"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "52"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "53"
                                }
                              ],
                              "node_type": "FunctionRef",
                              "ref_id": "53"
                            },
                            {
                              "children": [
                                {
                                  "text": "&gt;= 12"
                                }
                              ]
                            }
                          ],
                          "node_type": "GreaterOrEqual",
                          "ref_id": "55"
                        }
                      ],
                      "ref_id": "56"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "DepressionEncounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "57"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "58"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "58"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " ends during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ParameterRef",
                                  "ref_id": "59"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "60"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "end of "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "DepressionEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "61"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "62"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "62"
                                    }
                                  ],
                                  "node_type": "End",
                                  "ref_id": "63"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " in "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"September through December of Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "72"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "73"
                            }
                          ],
                          "ref_id": "74"
                        }
                      ],
                      "ref_id": "74"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "75"
                }
              ],
              "ref_id": "76"
            }
          ],
          "define_name": "Depression Encounter in September through December"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Initial Population 1\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "exists "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "( "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Depression Encounter in September through December\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "77"
                        },
                        {
                          "children": [
                            {
                              "text": " )"
                            }
                          ]
                        }
                      ],
                      "node_type": "ExpressionRef",
                      "ref_id": "77"
                    }
                  ],
                  "node_type": "Exists",
                  "ref_id": "78"
                }
              ],
              "ref_id": "79"
            }
          ],
          "define_name": "Initial Population 1"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Denominator 1\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Initial Population 1\""
                        }
                      ]
                    }
                  ],
                  "node_type": "ExpressionRef",
                  "ref_id": "80"
                }
              ],
              "ref_id": "81"
            }
          ],
          "define_name": "Denominator 1"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"May through August of Measurement Period\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "Interval["
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "start of "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ParameterRef",
                              "ref_id": "111"
                            }
                          ],
                          "node_type": "Start",
                          "ref_id": "112"
                        },
                        {
                          "children": [
                            {
                              "text": " + "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "4 months"
                                }
                              ]
                            }
                          ],
                          "node_type": "Quantity",
                          "ref_id": "113"
                        }
                      ],
                      "ref_id": "114"
                    },
                    {
                      "children": [
                        {
                          "text": ", "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "start of "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ParameterRef",
                              "ref_id": "115"
                            }
                          ],
                          "node_type": "Start",
                          "ref_id": "116"
                        },
                        {
                          "children": [
                            {
                              "text": " + "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "8 months"
                                }
                              ]
                            }
                          ],
                          "node_type": "Quantity",
                          "ref_id": "117"
                        }
                      ],
                      "ref_id": "118"
                    },
                    {
                      "children": [
                        {
                          "text": " )"
                        }
                      ]
                    }
                  ],
                  "node_type": "Interval",
                  "ref_id": "119"
                }
              ],
              "ref_id": "120"
            }
          ],
          "define_name": "May through August of Measurement Period"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Depression Encounter in May through August\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Encounter, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Contact or Office Visit\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "82"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "82"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "83"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Diagnoses\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "84"
                            },
                            {
                              "children": [
                                {
                                  "text": " Depression"
                                }
                              ]
                            }
                          ],
                          "ref_id": "85"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "DepressionEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "86"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "87"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "87"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Depression"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "88"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "prevalencePeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "89"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "89"
                            }
                          ],
                          "node_type": "Overlaps",
                          "ref_id": "90"
                        }
                      ],
                      "ref_id": "91"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Birthdate\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "92"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "92"
                            },
                            {
                              "children": [
                                {
                                  "text": " BirthDate"
                                }
                              ]
                            }
                          ],
                          "ref_id": "93"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Global"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "94"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"CalendarAgeInYearsAt\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "BirthDate"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "95"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "birthDatetime"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "96"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "96"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ", "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "97"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "98"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "98"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "99"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "100"
                                }
                              ],
                              "node_type": "FunctionRef",
                              "ref_id": "100"
                            },
                            {
                              "children": [
                                {
                                  "text": "&gt;= 12"
                                }
                              ]
                            }
                          ],
                          "node_type": "GreaterOrEqual",
                          "ref_id": "102"
                        }
                      ],
                      "ref_id": "103"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "DepressionEncounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "104"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "105"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "105"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " ends during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ParameterRef",
                                  "ref_id": "106"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "107"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "end of "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "DepressionEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "108"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "109"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "109"
                                    }
                                  ],
                                  "node_type": "End",
                                  "ref_id": "110"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " in "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"May through August of Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "121"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "122"
                            }
                          ],
                          "ref_id": "123"
                        }
                      ],
                      "ref_id": "123"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "124"
                }
              ],
              "ref_id": "125"
            }
          ],
          "define_name": "Depression Encounter in May through August"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Initial Population 2\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "exists "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "( "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Depression Encounter in May through August\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "126"
                        },
                        {
                          "children": [
                            {
                              "text": " )"
                            }
                          ]
                        }
                      ],
                      "node_type": "ExpressionRef",
                      "ref_id": "126"
                    }
                  ],
                  "node_type": "Exists",
                  "ref_id": "127"
                }
              ],
              "ref_id": "128"
            }
          ],
          "define_name": "Initial Population 2"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Denominator 2\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Initial Population 2\""
                        }
                      ]
                    }
                  ],
                  "node_type": "ExpressionRef",
                  "ref_id": "129"
                }
              ],
              "ref_id": "130"
            }
          ],
          "define_name": "Denominator 2"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"January through April of Measurement Period\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "Interval["
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "start of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Measurement Period\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ParameterRef",
                          "ref_id": "160"
                        }
                      ],
                      "ref_id": "161"
                    },
                    {
                      "children": [
                        {
                          "text": ", "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "start of "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ParameterRef",
                              "ref_id": "162"
                            }
                          ],
                          "node_type": "Start",
                          "ref_id": "163"
                        },
                        {
                          "children": [
                            {
                              "text": " + "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "4 months"
                                }
                              ]
                            }
                          ],
                          "node_type": "Quantity",
                          "ref_id": "164"
                        }
                      ],
                      "ref_id": "165"
                    },
                    {
                      "children": [
                        {
                          "text": " )"
                        }
                      ]
                    }
                  ],
                  "node_type": "Interval",
                  "ref_id": "166"
                }
              ],
              "ref_id": "167"
            }
          ],
          "define_name": "January through April of Measurement Period"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Depression Encounter in January through April\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Encounter, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Contact or Office Visit\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "131"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "131"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "132"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Diagnoses\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "133"
                            },
                            {
                              "children": [
                                {
                                  "text": " Depression"
                                }
                              ]
                            }
                          ],
                          "ref_id": "134"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "DepressionEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "135"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "136"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "136"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Depression"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "137"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "prevalencePeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "138"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "138"
                            }
                          ],
                          "node_type": "Overlaps",
                          "ref_id": "139"
                        }
                      ],
                      "ref_id": "140"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Birthdate\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "141"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "141"
                            },
                            {
                              "children": [
                                {
                                  "text": " BirthDate"
                                }
                              ]
                            }
                          ],
                          "ref_id": "142"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Global"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "143"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"CalendarAgeInYearsAt\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "BirthDate"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "144"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "birthDatetime"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "145"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "145"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ", "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "146"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "147"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "147"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "148"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "149"
                                }
                              ],
                              "node_type": "FunctionRef",
                              "ref_id": "149"
                            },
                            {
                              "children": [
                                {
                                  "text": "&gt;= 12"
                                }
                              ]
                            }
                          ],
                          "node_type": "GreaterOrEqual",
                          "ref_id": "151"
                        }
                      ],
                      "ref_id": "152"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "DepressionEncounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "153"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "154"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "154"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " ends during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ParameterRef",
                                  "ref_id": "155"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "156"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "end of "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "DepressionEncounter"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "157"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "158"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "158"
                                    }
                                  ],
                                  "node_type": "End",
                                  "ref_id": "159"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " in "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"January through April of Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "168"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "169"
                            }
                          ],
                          "ref_id": "170"
                        }
                      ],
                      "ref_id": "170"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "171"
                }
              ],
              "ref_id": "172"
            }
          ],
          "define_name": "Depression Encounter in January through April"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Initial Population 3\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "exists "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "( "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Depression Encounter in January through April\""
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "173"
                        },
                        {
                          "children": [
                            {
                              "text": " )"
                            }
                          ]
                        }
                      ],
                      "node_type": "ExpressionRef",
                      "ref_id": "173"
                    }
                  ],
                  "node_type": "Exists",
                  "ref_id": "174"
                }
              ],
              "ref_id": "175"
            }
          ],
          "define_name": "Initial Population 3"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Denominator 3\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Initial Population 3\""
                        }
                      ]
                    }
                  ],
                  "node_type": "ExpressionRef",
                  "ref_id": "176"
                }
              ],
              "ref_id": "177"
            }
          ],
          "define_name": "Denominator 3"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Disorder Diagnoses Overlaps Depression Encounter in May through August\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "( "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "[\"Diagnosis\": "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Bipolar Disorder\""
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "]"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Retrieve",
                                              "ref_id": "178"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n    union "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "[\"Diagnosis\": "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Personality Disorder\""
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "]"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Retrieve",
                                              "ref_id": "179"
                                            }
                                          ],
                                          "node_type": "Union",
                                          "ref_id": "180"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "\n    union "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Diagnosis\": "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"Schizophrenia or Psychotic Disorder\""
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "181"
                                        }
                                      ],
                                      "node_type": "Union",
                                      "ref_id": "182"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n    union "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "[\"Diagnosis\": "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Pervasive Developmental Disorder\""
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "]"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "183"
                                    }
                                  ],
                                  "node_type": "Union",
                                  "ref_id": "184"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " )"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "184"
                            },
                            {
                              "children": [
                                {
                                  "text": " DisorderDiagnoses"
                                }
                              ]
                            }
                          ],
                          "ref_id": "185"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Encounter in May through August\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "186"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "187"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "DisorderDiagnoses"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "188"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "prevalencePeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "189"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "189"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "DepressionEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "190"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "191"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "191"
                            }
                          ],
                          "node_type": "Overlaps",
                          "ref_id": "192"
                        }
                      ],
                      "ref_id": "193"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "194"
                }
              ],
              "ref_id": "195"
            }
          ],
          "define_name": "Disorder Diagnoses Overlaps Depression Encounter in May through August"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Expired in September through December\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Expired\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "196"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "196"
                            },
                            {
                              "children": [
                                {
                                  "text": " Deceased"
                                }
                              ]
                            }
                          ],
                          "ref_id": "197"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Deceased"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "198"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "expiredDatetime"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "199"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "199"
                            },
                            {
                              "children": [
                                {
                                  "text": " in "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"September through December of Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "200"
                            }
                          ],
                          "ref_id": "201"
                        }
                      ],
                      "ref_id": "201"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "202"
                }
              ],
              "ref_id": "203"
            }
          ],
          "define_name": "Expired in September through December"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Expired in May through August\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Expired\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "204"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "204"
                            },
                            {
                              "children": [
                                {
                                  "text": " Deceased"
                                }
                              ]
                            }
                          ],
                          "ref_id": "205"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Deceased"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "206"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "expiredDatetime"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "207"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "207"
                            },
                            {
                              "children": [
                                {
                                  "text": " in "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"May through August of Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "208"
                            }
                          ],
                          "ref_id": "209"
                        }
                      ],
                      "ref_id": "209"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "210"
                }
              ],
              "ref_id": "211"
            }
          ],
          "define_name": "Expired in May through August"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Expired in January through April\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Expired\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "212"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "212"
                            },
                            {
                              "children": [
                                {
                                  "text": " Deceased"
                                }
                              ]
                            }
                          ],
                          "ref_id": "213"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Deceased"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "214"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "expiredDatetime"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "215"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "215"
                            },
                            {
                              "children": [
                                {
                                  "text": " in "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"January through April of Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "216"
                            }
                          ],
                          "ref_id": "217"
                        }
                      ],
                      "ref_id": "217"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "218"
                }
              ],
              "ref_id": "219"
            }
          ],
          "define_name": "Expired in January through April"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Stratification 1_1\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Birthdate\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "220"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "220"
                            },
                            {
                              "children": [
                                {
                                  "text": " Birthdate"
                                }
                              ]
                            }
                          ],
                          "ref_id": "221"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Encounter in September through December\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "222"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "223"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Global"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "224"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarAgeInYearsAt\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Birthdate"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "225"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "birthDatetime"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "226"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "226"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ", "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "start of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "DepressionEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "227"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "228"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "228"
                                            }
                                          ],
                                          "node_type": "Start",
                                          "ref_id": "229"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "230"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "230"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "&gt;= 12"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "GreaterOrEqual",
                              "ref_id": "232"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n        and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Global"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "233"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarAgeInYearsAt\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Birthdate"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "234"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "birthDatetime"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "235"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "235"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ", "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "start of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "DepressionEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "236"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "237"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "237"
                                            }
                                          ],
                                          "node_type": "Start",
                                          "ref_id": "238"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "239"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "239"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "&lt; 18"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Less",
                              "ref_id": "241"
                            }
                          ],
                          "node_type": "And",
                          "ref_id": "242"
                        }
                      ],
                      "ref_id": "243"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "244"
                }
              ],
              "ref_id": "245"
            }
          ],
          "define_name": "Stratification 1_1"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Stratification 1_2\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Birthdate\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "246"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "246"
                            },
                            {
                              "children": [
                                {
                                  "text": " Birthdate"
                                }
                              ]
                            }
                          ],
                          "ref_id": "247"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Encounter in September through December\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "248"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "249"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Global"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "250"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"CalendarAgeInYearsAt\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "Birthdate"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "251"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "birthDatetime"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "252"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "252"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ", "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "253"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "254"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "254"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "255"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "256"
                                }
                              ],
                              "node_type": "FunctionRef",
                              "ref_id": "256"
                            },
                            {
                              "children": [
                                {
                                  "text": "&gt;= 18"
                                }
                              ]
                            }
                          ],
                          "node_type": "GreaterOrEqual",
                          "ref_id": "258"
                        }
                      ],
                      "ref_id": "259"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "260"
                }
              ],
              "ref_id": "261"
            }
          ],
          "define_name": "Stratification 1_2"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Stratification 2_1\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Birthdate\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "262"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "262"
                            },
                            {
                              "children": [
                                {
                                  "text": " Birthdate"
                                }
                              ]
                            }
                          ],
                          "ref_id": "263"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Encounter in May through August\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "264"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "265"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Global"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "266"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarAgeInYearsAt\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Birthdate"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "267"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "birthDatetime"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "268"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "268"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ", "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "start of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "DepressionEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "269"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "270"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "270"
                                            }
                                          ],
                                          "node_type": "Start",
                                          "ref_id": "271"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "272"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "272"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "&gt;= 12"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "GreaterOrEqual",
                              "ref_id": "274"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n        and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Global"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "275"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarAgeInYearsAt\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Birthdate"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "276"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "birthDatetime"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "277"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "277"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ", "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "start of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "DepressionEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "278"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "279"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "279"
                                            }
                                          ],
                                          "node_type": "Start",
                                          "ref_id": "280"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "281"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "281"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "&lt; 18"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Less",
                              "ref_id": "283"
                            }
                          ],
                          "node_type": "And",
                          "ref_id": "284"
                        }
                      ],
                      "ref_id": "285"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "286"
                }
              ],
              "ref_id": "287"
            }
          ],
          "define_name": "Stratification 2_1"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Stratification 2_2\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Birthdate\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "288"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "288"
                            },
                            {
                              "children": [
                                {
                                  "text": " Birthdate"
                                }
                              ]
                            }
                          ],
                          "ref_id": "289"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Encounter in May through August\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "290"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "291"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Global"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "292"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"CalendarAgeInYearsAt\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "Birthdate"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "293"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "birthDatetime"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "294"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "294"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ", "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "295"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "296"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "296"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "297"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "298"
                                }
                              ],
                              "node_type": "FunctionRef",
                              "ref_id": "298"
                            },
                            {
                              "children": [
                                {
                                  "text": "&gt;= 18"
                                }
                              ]
                            }
                          ],
                          "node_type": "GreaterOrEqual",
                          "ref_id": "300"
                        }
                      ],
                      "ref_id": "301"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "302"
                }
              ],
              "ref_id": "303"
            }
          ],
          "define_name": "Stratification 2_2"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Stratification 3_1\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Birthdate\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "304"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "304"
                            },
                            {
                              "children": [
                                {
                                  "text": " Birthdate"
                                }
                              ]
                            }
                          ],
                          "ref_id": "305"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Encounter in January through April\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "306"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "307"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Global"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "308"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "CalendarAgeInYearsAt("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Birthdate"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "309"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "birthDatetime"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "310"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "310"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ", "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "start of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "DepressionEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "311"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "312"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "312"
                                            }
                                          ],
                                          "node_type": "Start",
                                          "ref_id": "313"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "314"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "314"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "&gt;= 12"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "GreaterOrEqual",
                              "ref_id": "316"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n        and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Global"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "317"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"CalendarAgeInYearsAt\"("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Birthdate"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "318"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "birthDatetime"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "319"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "319"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ", "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "start of "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "DepressionEncounter"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "320"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "."
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "relevantPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "Property",
                                                  "ref_id": "321"
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "321"
                                            }
                                          ],
                                          "node_type": "Start",
                                          "ref_id": "322"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "FunctionRef",
                                      "ref_id": "323"
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "323"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "&lt; 18"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Less",
                              "ref_id": "325"
                            }
                          ],
                          "node_type": "And",
                          "ref_id": "326"
                        }
                      ],
                      "ref_id": "327"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "328"
                }
              ],
              "ref_id": "329"
            }
          ],
          "define_name": "Stratification 3_1"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Stratification 3_2\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Patient Characteristic Birthdate\"]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "330"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "330"
                            },
                            {
                              "children": [
                                {
                                  "text": " Birthdate"
                                }
                              ]
                            }
                          ],
                          "ref_id": "331"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Encounter in January through April\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "332"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "333"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Global"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "334"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"CalendarAgeInYearsAt\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "Birthdate"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "335"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "birthDatetime"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "336"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "336"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ", "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "337"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "338"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "338"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "339"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "340"
                                }
                              ],
                              "node_type": "FunctionRef",
                              "ref_id": "340"
                            },
                            {
                              "children": [
                                {
                                  "text": "&gt;= 18"
                                }
                              ]
                            }
                          ],
                          "node_type": "GreaterOrEqual",
                          "ref_id": "342"
                        }
                      ],
                      "ref_id": "343"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "344"
                }
              ],
              "ref_id": "345"
            }
          ],
          "define_name": "Stratification 3_2"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Numerator 1\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "exists "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "( "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Assessment, Performed\": "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]\""
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "346"
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "346"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " DepressionAssessment"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "347"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "where "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionAssessment"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "348"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "result"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "349"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "349"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " is not null"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Not",
                                      "ref_id": "350"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n        and "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionAssessment"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "351"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "authorDatetime"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "352"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "352"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " in "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"September through December of Measurement Period\""
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "ExpressionRef",
                                          "ref_id": "353"
                                        }
                                      ],
                                      "node_type": "In",
                                      "ref_id": "354"
                                    }
                                  ],
                                  "ref_id": "355"
                                }
                              ],
                              "ref_id": "355"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "356"
                        },
                        {
                          "children": [
                            {
                              "text": "\n  )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "356"
                    }
                  ],
                  "node_type": "Exists",
                  "ref_id": "357"
                }
              ],
              "ref_id": "358"
            }
          ],
          "define_name": "Numerator 1"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Numerator 2\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "exists "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "( "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Assessment, Performed\": "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]\""
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "359"
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "359"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " DepressionAssessment"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "360"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "where "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionAssessment"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "361"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "result"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "362"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "362"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " is not null"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Not",
                                      "ref_id": "363"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n        and "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionAssessment"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "364"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "authorDatetime"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "365"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "365"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " in "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"May through August of Measurement Period\""
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "ExpressionRef",
                                          "ref_id": "366"
                                        }
                                      ],
                                      "node_type": "In",
                                      "ref_id": "367"
                                    }
                                  ],
                                  "ref_id": "368"
                                }
                              ],
                              "ref_id": "368"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "369"
                        },
                        {
                          "children": [
                            {
                              "text": "\n  )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "369"
                    }
                  ],
                  "node_type": "Exists",
                  "ref_id": "370"
                }
              ],
              "ref_id": "371"
            }
          ],
          "define_name": "Numerator 2"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Numerator 3\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "exists "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "( "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Assessment, Performed\": "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"Patient Health Questionnaire 9 item (PHQ-9) total score [Reported]\""
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "372"
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "372"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " DepressionAssessment"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "373"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "where "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionAssessment"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "374"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "result"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "375"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "375"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " is not null"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Not",
                                      "ref_id": "376"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n        and "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "DepressionAssessment"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "377"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "authorDatetime"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "378"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "378"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " in "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"January through April of Measurement Period\""
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "ExpressionRef",
                                          "ref_id": "379"
                                        }
                                      ],
                                      "node_type": "In",
                                      "ref_id": "380"
                                    }
                                  ],
                                  "ref_id": "381"
                                }
                              ],
                              "ref_id": "381"
                            }
                          ],
                          "node_type": "Query",
                          "ref_id": "382"
                        },
                        {
                          "children": [
                            {
                              "text": "\n  )"
                            }
                          ]
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "382"
                    }
                  ],
                  "node_type": "Exists",
                  "ref_id": "383"
                }
              ],
              "ref_id": "384"
            }
          ],
          "define_name": "Numerator 3"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Long Term Care Overlaps January through April\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Encounter, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Care Services in Long-Term Residential Facility\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "385"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "385"
                            },
                            {
                              "children": [
                                {
                                  "text": " EncounterLongTermCare"
                                }
                              ]
                            }
                          ],
                          "ref_id": "386"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "EncounterLongTermCare"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "387"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "388"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "388"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"January through April of Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "389"
                            }
                          ],
                          "ref_id": "390"
                        }
                      ],
                      "ref_id": "390"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "391"
                }
              ],
              "ref_id": "392"
            }
          ],
          "define_name": "Long Term Care Overlaps January through April"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Long Term Care Overlaps May through August\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Encounter, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Care Services in Long-Term Residential Facility\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "393"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "393"
                            },
                            {
                              "children": [
                                {
                                  "text": " EncounterLongTermCare"
                                }
                              ]
                            }
                          ],
                          "ref_id": "394"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "EncounterLongTermCare"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "395"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "396"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "396"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"May through August of Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "397"
                            }
                          ],
                          "ref_id": "398"
                        }
                      ],
                      "ref_id": "398"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "399"
                }
              ],
              "ref_id": "400"
            }
          ],
          "define_name": "Long Term Care Overlaps May through August"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Long Term Care Overlaps September through December\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Encounter, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Care Services in Long-Term Residential Facility\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "401"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "401"
                            },
                            {
                              "children": [
                                {
                                  "text": " EncounterLongTermCare"
                                }
                              ]
                            }
                          ],
                          "ref_id": "402"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "EncounterLongTermCare"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "403"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "404"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "404"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"September through December of Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "405"
                            }
                          ],
                          "ref_id": "406"
                        }
                      ],
                      "ref_id": "406"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "407"
                }
              ],
              "ref_id": "408"
            }
          ],
          "define_name": "Long Term Care Overlaps September through December"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Palliative Care Order Before End of December\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Intervention, Order\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Palliative Care\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "409"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "409"
                            },
                            {
                              "children": [
                                {
                                  "text": " OrderedPalliativeCare"
                                }
                              ]
                            }
                          ],
                          "ref_id": "410"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "OrderedPalliativeCare"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "411"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "authorDatetime"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "412"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "412"
                            },
                            {
                              "children": [
                                {
                                  "text": " before "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "end of "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"September through December of Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "413"
                                }
                              ],
                              "node_type": "End",
                              "ref_id": "414"
                            }
                          ],
                          "ref_id": "415"
                        }
                      ],
                      "ref_id": "415"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "416"
                }
              ],
              "ref_id": "417"
            }
          ],
          "define_name": "Palliative Care Order Before End of December"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Palliative Care Order Before End of April\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Intervention, Order\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Palliative Care\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "418"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "418"
                            },
                            {
                              "children": [
                                {
                                  "text": " OrderedPalliativeCare"
                                }
                              ]
                            }
                          ],
                          "ref_id": "419"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "OrderedPalliativeCare"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "420"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "authorDatetime"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "421"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "421"
                            },
                            {
                              "children": [
                                {
                                  "text": " before "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "end of "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"January through April of Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "422"
                                }
                              ],
                              "node_type": "End",
                              "ref_id": "423"
                            }
                          ],
                          "ref_id": "424"
                        }
                      ],
                      "ref_id": "424"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "425"
                }
              ],
              "ref_id": "426"
            }
          ],
          "define_name": "Palliative Care Order Before End of April"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Palliative Care Order Before End of August\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Intervention, Order\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Palliative Care\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "427"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "427"
                            },
                            {
                              "children": [
                                {
                                  "text": " OrderedPalliativeCare"
                                }
                              ]
                            }
                          ],
                          "ref_id": "428"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "OrderedPalliativeCare"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "429"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "authorDatetime"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "430"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "430"
                            },
                            {
                              "children": [
                                {
                                  "text": " before "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "end of "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"May through August of Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "431"
                                }
                              ],
                              "node_type": "End",
                              "ref_id": "432"
                            }
                          ],
                          "ref_id": "433"
                        }
                      ],
                      "ref_id": "433"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "434"
                }
              ],
              "ref_id": "435"
            }
          ],
          "define_name": "Palliative Care Order Before End of August"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Encounter Palliative Care Overlaps September through December\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Encounter, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Palliative care encounter\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "436"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "436"
                            },
                            {
                              "children": [
                                {
                                  "text": " PalliativeCareEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "437"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "PalliativeCareEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "438"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "439"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "439"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"September through December of Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "440"
                            }
                          ],
                          "ref_id": "441"
                        }
                      ],
                      "ref_id": "441"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "442"
                }
              ],
              "ref_id": "443"
            }
          ],
          "define_name": "Encounter Palliative Care Overlaps September through December"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Encounter Palliative Care Overlaps May through August\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Encounter, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Palliative care encounter\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "444"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "444"
                            },
                            {
                              "children": [
                                {
                                  "text": " PalliativeCareEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "445"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "PalliativeCareEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "446"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "447"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "447"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"May through August of Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "448"
                            }
                          ],
                          "ref_id": "449"
                        }
                      ],
                      "ref_id": "449"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "450"
                }
              ],
              "ref_id": "451"
            }
          ],
          "define_name": "Encounter Palliative Care Overlaps May through August"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Encounter Palliative Care Overlaps January through April\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Encounter, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Palliative care encounter\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "452"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "452"
                            },
                            {
                              "children": [
                                {
                                  "text": " PalliativeCareEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "453"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "PalliativeCareEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "454"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "455"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "455"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"January through April of Measurement Period\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "456"
                            }
                          ],
                          "ref_id": "457"
                        }
                      ],
                      "ref_id": "457"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "458"
                }
              ],
              "ref_id": "459"
            }
          ],
          "define_name": "Encounter Palliative Care Overlaps January through April"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Disorder Diagnoses Overlaps Depression Encounter in September through December\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "( "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "[\"Diagnosis\": "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Bipolar Disorder\""
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "]"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Retrieve",
                                              "ref_id": "471"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n    union "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "[\"Diagnosis\": "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Personality Disorder\""
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "]"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Retrieve",
                                              "ref_id": "472"
                                            }
                                          ],
                                          "node_type": "Union",
                                          "ref_id": "473"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "\n    union "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Diagnosis\": "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"Schizophrenia or Psychotic Disorder\""
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "474"
                                        }
                                      ],
                                      "node_type": "Union",
                                      "ref_id": "475"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n    union "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "[\"Diagnosis\": "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Pervasive Developmental Disorder\""
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "]"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "476"
                                    }
                                  ],
                                  "node_type": "Union",
                                  "ref_id": "477"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " )"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "477"
                            },
                            {
                              "children": [
                                {
                                  "text": " DisorderDiagnoses"
                                }
                              ]
                            }
                          ],
                          "ref_id": "478"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Encounter in September through December\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "479"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "480"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "DisorderDiagnoses"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "481"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "prevalencePeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "482"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "482"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "DepressionEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "483"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "484"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "484"
                            }
                          ],
                          "node_type": "Overlaps",
                          "ref_id": "485"
                        }
                      ],
                      "ref_id": "486"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "487"
                }
              ],
              "ref_id": "488"
            }
          ],
          "define_name": "Disorder Diagnoses Overlaps Depression Encounter in September through December"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Denominator Exclusion 1\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "exists "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "( "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Palliative Care Order Before End of December\""
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "ExpressionRef",
                                          "ref_id": "460"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " )"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "460"
                                    }
                                  ],
                                  "node_type": "Exists",
                                  "ref_id": "461"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n    or "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "exists "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "( "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Encounter Palliative Care Overlaps September through December\""
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "ExpressionRef",
                                          "ref_id": "462"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " )"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "462"
                                    }
                                  ],
                                  "node_type": "Exists",
                                  "ref_id": "463"
                                }
                              ],
                              "node_type": "Or",
                              "ref_id": "464"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n    or "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "exists "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "( "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Long Term Care Overlaps September through December\""
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "465"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " )"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "465"
                                }
                              ],
                              "node_type": "Exists",
                              "ref_id": "466"
                            }
                          ],
                          "node_type": "Or",
                          "ref_id": "467"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    or "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "exists "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "( "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Expired in September through December\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "468"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " )"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "468"
                            }
                          ],
                          "node_type": "Exists",
                          "ref_id": "469"
                        }
                      ],
                      "node_type": "Or",
                      "ref_id": "470"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    or "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "exists "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "( "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Disorder Diagnoses Overlaps Depression Encounter in September through December\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "489"
                            },
                            {
                              "children": [
                                {
                                  "text": " )"
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "489"
                        }
                      ],
                      "node_type": "Exists",
                      "ref_id": "490"
                    }
                  ],
                  "node_type": "Or",
                  "ref_id": "491"
                }
              ],
              "ref_id": "492"
            }
          ],
          "define_name": "Denominator Exclusion 1"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Denominator Exclusion 2\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "exists "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "( "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Palliative Care Order Before End of August\""
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "ExpressionRef",
                                          "ref_id": "493"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " )"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "493"
                                    }
                                  ],
                                  "node_type": "Exists",
                                  "ref_id": "494"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n    or "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "exists "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "( "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Encounter Palliative Care Overlaps May through August\""
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "ExpressionRef",
                                          "ref_id": "495"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " )"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "495"
                                    }
                                  ],
                                  "node_type": "Exists",
                                  "ref_id": "496"
                                }
                              ],
                              "node_type": "Or",
                              "ref_id": "497"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n    or "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "exists "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "( "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Long Term Care Overlaps May through August\""
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "498"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " )"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "498"
                                }
                              ],
                              "node_type": "Exists",
                              "ref_id": "499"
                            }
                          ],
                          "node_type": "Or",
                          "ref_id": "500"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    or "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "exists "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "( "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Expired in May through August\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "501"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " )"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "501"
                            }
                          ],
                          "node_type": "Exists",
                          "ref_id": "502"
                        }
                      ],
                      "node_type": "Or",
                      "ref_id": "503"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    or "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "exists "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "( "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Disorder Diagnoses Overlaps Depression Encounter in May through August\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "504"
                            },
                            {
                              "children": [
                                {
                                  "text": " )"
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "504"
                        }
                      ],
                      "node_type": "Exists",
                      "ref_id": "505"
                    }
                  ],
                  "node_type": "Or",
                  "ref_id": "506"
                }
              ],
              "ref_id": "507"
            }
          ],
          "define_name": "Denominator Exclusion 2"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Disorder Diagnoses Overlaps Depression Encounter in January through April\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "( "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "[\"Diagnosis\": "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Bipolar Disorder\""
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "]"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Retrieve",
                                              "ref_id": "519"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n    union "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "[\"Diagnosis\": "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Personality Disorder\""
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "]"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Retrieve",
                                              "ref_id": "520"
                                            }
                                          ],
                                          "node_type": "Union",
                                          "ref_id": "521"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "\n    union "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "[\"Diagnosis\": "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\"Schizophrenia or Psychotic Disorder\""
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "]"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Retrieve",
                                          "ref_id": "522"
                                        }
                                      ],
                                      "node_type": "Union",
                                      "ref_id": "523"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n    union "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "[\"Diagnosis\": "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Pervasive Developmental Disorder\""
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "]"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Retrieve",
                                      "ref_id": "524"
                                    }
                                  ],
                                  "node_type": "Union",
                                  "ref_id": "525"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " )"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Union",
                              "ref_id": "525"
                            },
                            {
                              "children": [
                                {
                                  "text": " DisorderDiagnoses"
                                }
                              ]
                            }
                          ],
                          "ref_id": "526"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "with "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Depression Encounter in January through April\""
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "527"
                            },
                            {
                              "children": [
                                {
                                  "text": " DepressionEncounter"
                                }
                              ]
                            }
                          ],
                          "ref_id": "528"
                        },
                        {
                          "children": [
                            {
                              "text": "\n      such that "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "DisorderDiagnoses"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "529"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "prevalencePeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "530"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "530"
                            },
                            {
                              "children": [
                                {
                                  "text": " overlaps "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "DepressionEncounter"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "531"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "."
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "relevantPeriod"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "532"
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "532"
                            }
                          ],
                          "node_type": "Overlaps",
                          "ref_id": "533"
                        }
                      ],
                      "ref_id": "534"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "535"
                }
              ],
              "ref_id": "536"
            }
          ],
          "define_name": "Disorder Diagnoses Overlaps Depression Encounter in January through April"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Denominator Exclusion 3\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "exists "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "( "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Palliative Care Order Before End of April\""
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "ExpressionRef",
                                          "ref_id": "508"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " )"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "508"
                                    }
                                  ],
                                  "node_type": "Exists",
                                  "ref_id": "509"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n    or "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "exists "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "( "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Encounter Palliative Care Overlaps January through April\""
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "ExpressionRef",
                                          "ref_id": "510"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " )"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "510"
                                    }
                                  ],
                                  "node_type": "Exists",
                                  "ref_id": "511"
                                }
                              ],
                              "node_type": "Or",
                              "ref_id": "512"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n    or "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "exists "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "( "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Long Term Care Overlaps January through April\""
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "ExpressionRef",
                                      "ref_id": "513"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " )"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "513"
                                }
                              ],
                              "node_type": "Exists",
                              "ref_id": "514"
                            }
                          ],
                          "node_type": "Or",
                          "ref_id": "515"
                        },
                        {
                          "children": [
                            {
                              "text": "\n    or "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "exists "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "( "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Expired in January through April\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ExpressionRef",
                                  "ref_id": "516"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " )"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "516"
                            }
                          ],
                          "node_type": "Exists",
                          "ref_id": "517"
                        }
                      ],
                      "node_type": "Or",
                      "ref_id": "518"
                    },
                    {
                      "children": [
                        {
                          "text": "\n    or "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "exists "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "( "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "\"Disorder Diagnoses Overlaps Depression Encounter in January through April\""
                                    }
                                  ]
                                }
                              ],
                              "node_type": "ExpressionRef",
                              "ref_id": "537"
                            },
                            {
                              "children": [
                                {
                                  "text": " )"
                                }
                              ]
                            }
                          ],
                          "node_type": "ExpressionRef",
                          "ref_id": "537"
                        }
                      ],
                      "node_type": "Exists",
                      "ref_id": "538"
                    }
                  ],
                  "node_type": "Or",
                  "ref_id": "539"
                }
              ],
              "ref_id": "540"
            }
          ],
          "define_name": "Denominator Exclusion 3"
        }
      ],
      "identifier": {
        "id": "DepressionUtilizationofthePHQ9Tool",
        "version": "7.3.000"
      }
    },
    "MATGlobalCommonFunctions": {
      "statements": [
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Encounter\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "[\"Encounter, Performed\": "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "\"Emergency Department Visit\""
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "]"
                        }
                      ]
                    }
                  ],
                  "node_type": "Retrieve",
                  "ref_id": "14"
                }
              ],
              "ref_id": "15"
            }
          ],
          "define_name": "Encounter"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"LengthInDays\"(Value "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "Interval&lt;"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "DateTime"
                            }
                          ]
                        }
                      ],
                      "ref_id": "20"
                    },
                    {
                      "children": [
                        {
                          "text": "&gt;"
                        }
                      ]
                    }
                  ],
                  "ref_id": "21"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "difference in days between "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "start of "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "22"
                            }
                          ],
                          "node_type": "Start",
                          "ref_id": "23"
                        },
                        {
                          "children": [
                            {
                              "text": " and "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "end of "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "24"
                            }
                          ],
                          "node_type": "End",
                          "ref_id": "25"
                        }
                      ],
                      "node_type": "DifferenceBetween",
                      "ref_id": "26"
                    }
                  ],
                  "node_type": "DifferenceBetween",
                  "ref_id": "26"
                }
              ],
              "ref_id": "27"
            }
          ],
          "define_name": "LengthInDays"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define \"Inpatient Encounter\":\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "[\"Encounter, Performed\": "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "\"Encounter Inpatient\""
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "Retrieve",
                                  "ref_id": "16"
                                }
                              ],
                              "node_type": "Retrieve",
                              "ref_id": "16"
                            },
                            {
                              "children": [
                                {
                                  "text": " EncounterInpatient"
                                }
                              ]
                            }
                          ],
                          "ref_id": "17"
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "text": "\n    "
                        }
                      ]
                    },
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "where "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"LengthInDays\"("
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "EncounterInpatient"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "18"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "."
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "relevantPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "19"
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "19"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ")"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "FunctionRef",
                                  "ref_id": "28"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "&lt;= 120"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "LessOrEqual",
                              "ref_id": "30"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      and "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "EncounterInpatient"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "31"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "32"
                                    }
                                  ],
                                  "node_type": "Property",
                                  "ref_id": "32"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " ends during "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "\"Measurement Period\""
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "ParameterRef",
                                  "ref_id": "33"
                                }
                              ],
                              "node_type": "In",
                              "ref_id": "34"
                            }
                          ],
                          "ref_id": "35"
                        }
                      ],
                      "ref_id": "35"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "36"
                }
              ],
              "ref_id": "37"
            }
          ],
          "define_name": "Inpatient Encounter"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"ToDate\"(Value "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "38"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "DateTime("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "year from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "39"
                            }
                          ],
                          "ref_id": "40"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "month from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "41"
                            }
                          ],
                          "ref_id": "42"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "day from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "43"
                            }
                          ],
                          "ref_id": "44"
                        },
                        {
                          "children": [
                            {
                              "text": ", 0, 0, 0, 0, "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "timezone from "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Value"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "49"
                            }
                          ],
                          "ref_id": "50"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "DateTime",
                      "ref_id": "51"
                    }
                  ],
                  "node_type": "DateTime",
                  "ref_id": "51"
                }
              ],
              "ref_id": "52"
            }
          ],
          "define_name": "ToDate"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInDaysAt\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "53"
                },
                {
                  "children": [
                    {
                      "text": ", AsOf "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "54"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "days between "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "BirthDateTime"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "55"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "56"
                        },
                        {
                          "children": [
                            {
                              "text": "and "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "AsOf"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "57"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "58"
                        }
                      ],
                      "node_type": "DurationBetween",
                      "ref_id": "59"
                    }
                  ],
                  "node_type": "DurationBetween",
                  "ref_id": "59"
                }
              ],
              "ref_id": "60"
            }
          ],
          "define_name": "CalendarAgeInDaysAt"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInDays\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "61"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "CalendarAgeInDaysAt("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "BirthDateTime"
                                }
                              ]
                            }
                          ],
                          "node_type": "OperandRef",
                          "ref_id": "62"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "Today()"
                                }
                              ]
                            }
                          ],
                          "node_type": "Today",
                          "ref_id": "63"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "FunctionRef",
                      "ref_id": "64"
                    }
                  ],
                  "node_type": "FunctionRef",
                  "ref_id": "64"
                }
              ],
              "ref_id": "65"
            }
          ],
          "define_name": "CalendarAgeInDays"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInMonthsAt\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "66"
                },
                {
                  "children": [
                    {
                      "text": ", AsOf "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "67"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "months between "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "BirthDateTime"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "68"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "69"
                        },
                        {
                          "children": [
                            {
                              "text": "and "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "AsOf"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "70"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "71"
                        }
                      ],
                      "node_type": "DurationBetween",
                      "ref_id": "72"
                    }
                  ],
                  "node_type": "DurationBetween",
                  "ref_id": "72"
                }
              ],
              "ref_id": "73"
            }
          ],
          "define_name": "CalendarAgeInMonthsAt"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInMonths\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "74"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "CalendarAgeInMonthsAt("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "BirthDateTime"
                                }
                              ]
                            }
                          ],
                          "node_type": "OperandRef",
                          "ref_id": "75"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "Today()"
                                }
                              ]
                            }
                          ],
                          "node_type": "Today",
                          "ref_id": "76"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "FunctionRef",
                      "ref_id": "77"
                    }
                  ],
                  "node_type": "FunctionRef",
                  "ref_id": "77"
                }
              ],
              "ref_id": "78"
            }
          ],
          "define_name": "CalendarAgeInMonths"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInYearsAt\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "79"
                },
                {
                  "children": [
                    {
                      "text": ", AsOf "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "80"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "years between "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "BirthDateTime"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "81"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "82"
                        },
                        {
                          "children": [
                            {
                              "text": "and "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "ToDate("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "AsOf"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "83"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "84"
                        }
                      ],
                      "node_type": "DurationBetween",
                      "ref_id": "85"
                    }
                  ],
                  "node_type": "DurationBetween",
                  "ref_id": "85"
                }
              ],
              "ref_id": "86"
            }
          ],
          "define_name": "CalendarAgeInYearsAt"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"CalendarAgeInYears\"(BirthDateTime "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "DateTime"
                        }
                      ]
                    }
                  ],
                  "ref_id": "87"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "CalendarAgeInYearsAt("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "BirthDateTime"
                                }
                              ]
                            }
                          ],
                          "node_type": "OperandRef",
                          "ref_id": "88"
                        },
                        {
                          "children": [
                            {
                              "text": ", "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "Today()"
                                }
                              ]
                            }
                          ],
                          "node_type": "Today",
                          "ref_id": "89"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "FunctionRef",
                      "ref_id": "90"
                    }
                  ],
                  "node_type": "FunctionRef",
                  "ref_id": "90"
                }
              ],
              "ref_id": "91"
            }
          ],
          "define_name": "CalendarAgeInYears"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospitalization\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "92"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "( "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "singleton from "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "( "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "[\"Encounter, Performed\": "
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "\"Emergency Department Visit\""
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "]"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Retrieve",
                                                              "ref_id": "93"
                                                            }
                                                          ],
                                                          "node_type": "Retrieve",
                                                          "ref_id": "93"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " EDVisit"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "94"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\n      "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "where "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "EDVisit"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "ref_id": "95"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "."
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "relevantPeriod"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Property",
                                                              "ref_id": "96"
                                                            }
                                                          ],
                                                          "node_type": "Property",
                                                          "ref_id": "96"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "ends "
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "1 hour"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Quantity",
                                                              "ref_id": "100"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": " or less on or before"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "101"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "start of "
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "Encounter"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "ref_id": "97"
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "."
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "relevantPeriod"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "node_type": "Property",
                                                                  "ref_id": "98"
                                                                }
                                                              ],
                                                              "node_type": "Property",
                                                              "ref_id": "98"
                                                            }
                                                          ],
                                                          "node_type": "Start",
                                                          "ref_id": "99"
                                                        }
                                                      ],
                                                      "ref_id": "101"
                                                    }
                                                  ],
                                                  "ref_id": "101"
                                                }
                                              ],
                                              "node_type": "Query",
                                              "ref_id": "102"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n  )"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Query",
                                          "ref_id": "102"
                                        }
                                      ],
                                      "node_type": "SingletonFrom",
                                      "ref_id": "103"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " )"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "SingletonFrom",
                                  "ref_id": "103"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " X"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "104"
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "return "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "if "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "X"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "AliasRef",
                                      "ref_id": "105"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " is null"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "IsNull",
                                  "ref_id": "106"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " then "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Encounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "107"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "relevantPeriod"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "108"
                                    }
                                  ],
                                  "ref_id": "108"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " else "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "Interval["
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "X"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "109"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "110"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "110"
                                        }
                                      ],
                                      "ref_id": "111"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": ", "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "end of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Encounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "112"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "113"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "113"
                                        }
                                      ],
                                      "ref_id": "114"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "]"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "115"
                                }
                              ],
                              "node_type": "If",
                              "ref_id": "116"
                            }
                          ],
                          "ref_id": "117"
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "118"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "118"
                }
              ],
              "ref_id": "119"
            }
          ],
          "define_name": "Hospitalization"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospitalization Locations\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "123"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "( "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "singleton from "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "( "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "[\"Encounter, Performed\": "
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "\"Emergency Department Visit\""
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "]"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Retrieve",
                                                              "ref_id": "124"
                                                            }
                                                          ],
                                                          "node_type": "Retrieve",
                                                          "ref_id": "124"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " EDVisit"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "125"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": "\n      "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "where "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "EDVisit"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "ref_id": "126"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "."
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "relevantPeriod"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Property",
                                                              "ref_id": "127"
                                                            }
                                                          ],
                                                          "node_type": "Property",
                                                          "ref_id": "127"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "ends "
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "1 hour"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "Quantity",
                                                              "ref_id": "131"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": " or less on or before"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "132"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": " "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "start of "
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "Encounter"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "ref_id": "128"
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "."
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "children": [
                                                                        {
                                                                          "text": "relevantPeriod"
                                                                        }
                                                                      ]
                                                                    }
                                                                  ],
                                                                  "node_type": "Property",
                                                                  "ref_id": "129"
                                                                }
                                                              ],
                                                              "node_type": "Property",
                                                              "ref_id": "129"
                                                            }
                                                          ],
                                                          "node_type": "Start",
                                                          "ref_id": "130"
                                                        }
                                                      ],
                                                      "ref_id": "132"
                                                    }
                                                  ],
                                                  "ref_id": "132"
                                                }
                                              ],
                                              "node_type": "Query",
                                              "ref_id": "133"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n  )"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "Query",
                                          "ref_id": "133"
                                        }
                                      ],
                                      "node_type": "SingletonFrom",
                                      "ref_id": "134"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " )"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "SingletonFrom",
                                  "ref_id": "134"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " EDEncounter"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "135"
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "text": "\n    "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "return "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "if "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "EDEncounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "AliasRef",
                                      "ref_id": "136"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": " is null"
                                        }
                                      ]
                                    }
                                  ],
                                  "node_type": "IsNull",
                                  "ref_id": "137"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " then "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "Encounter"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "138"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "."
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "facilityLocations"
                                            }
                                          ]
                                        }
                                      ],
                                      "ref_id": "139"
                                    }
                                  ],
                                  "ref_id": "139"
                                },
                                {
                                  "children": [
                                    {
                                      "text": " else "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "flatten "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "{ "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "EDEncounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "140"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "facilityLocations"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "141"
                                            }
                                          ],
                                          "ref_id": "141"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ", "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Encounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "142"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "facilityLocations"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "143"
                                            }
                                          ],
                                          "ref_id": "143"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " }"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "List",
                                      "ref_id": "144"
                                    }
                                  ],
                                  "ref_id": "145"
                                }
                              ],
                              "node_type": "If",
                              "ref_id": "146"
                            }
                          ],
                          "ref_id": "147"
                        }
                      ],
                      "node_type": "Query",
                      "ref_id": "148"
                    }
                  ],
                  "node_type": "Query",
                  "ref_id": "148"
                }
              ],
              "ref_id": "149"
            }
          ],
          "define_name": "Hospitalization Locations"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospitalization Length of Stay\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "150"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "LengthInDays("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Hospitalization\"("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Encounter"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "151"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "152"
                        },
                        {
                          "children": [
                            {
                              "text": ")"
                            }
                          ]
                        }
                      ],
                      "node_type": "FunctionRef",
                      "ref_id": "153"
                    }
                  ],
                  "node_type": "FunctionRef",
                  "ref_id": "153"
                }
              ],
              "ref_id": "154"
            }
          ],
          "define_name": "Hospitalization Length of Stay"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospital Admission Time\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "155"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "start of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "text": "\"Hospitalization\"("
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Encounter"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "OperandRef",
                              "ref_id": "156"
                            },
                            {
                              "children": [
                                {
                                  "text": ")"
                                }
                              ]
                            }
                          ],
                          "node_type": "FunctionRef",
                          "ref_id": "157"
                        }
                      ],
                      "node_type": "Start",
                      "ref_id": "158"
                    }
                  ],
                  "node_type": "Start",
                  "ref_id": "158"
                }
              ],
              "ref_id": "159"
            }
          ],
          "define_name": "Hospital Admission Time"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospital Discharge Time\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "160"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "end of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Encounter"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "161"
                            },
                            {
                              "children": [
                                {
                                  "text": "."
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "relevantPeriod"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "162"
                            }
                          ],
                          "node_type": "Property",
                          "ref_id": "162"
                        }
                      ],
                      "node_type": "End",
                      "ref_id": "163"
                    }
                  ],
                  "node_type": "End",
                  "ref_id": "163"
                }
              ],
              "ref_id": "164"
            }
          ],
          "define_name": "Hospital Discharge Time"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospital Arrival Time\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "165"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "start of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "First("
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "("
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Hospitalization Locations\"("
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "Encounter"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "OperandRef",
                                                      "ref_id": "166"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": ")"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "FunctionRef",
                                                  "ref_id": "167"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": ")"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "FunctionRef",
                                              "ref_id": "167"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "HospitalLocation"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "168"
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n      "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "sort by "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "start of "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "locationPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "IdentifierRef",
                                                  "ref_id": "169"
                                                }
                                              ],
                                              "node_type": "Start",
                                              "ref_id": "170"
                                            }
                                          ],
                                          "ref_id": "171"
                                        }
                                      ],
                                      "ref_id": "172"
                                    }
                                  ],
                                  "ref_id": "173"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n  )"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "174"
                            },
                            {
                              "children": [
                                {
                                  "text": "."
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "locationPeriod"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "175"
                            }
                          ],
                          "node_type": "Property",
                          "ref_id": "175"
                        }
                      ],
                      "node_type": "Start",
                      "ref_id": "176"
                    }
                  ],
                  "node_type": "Start",
                  "ref_id": "176"
                }
              ],
              "ref_id": "177"
            }
          ],
          "define_name": "Hospital Arrival Time"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Hospital Departure Time\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "178"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "end of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "Last("
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "("
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "\"Hospitalization Locations\"("
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "Encounter"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "OperandRef",
                                                      "ref_id": "179"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": ")"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "FunctionRef",
                                                  "ref_id": "180"
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "text": ")"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "FunctionRef",
                                              "ref_id": "180"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "HospitalLocation"
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "181"
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n      "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "sort by "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "start of "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "text": "locationPeriod"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "node_type": "IdentifierRef",
                                                  "ref_id": "182"
                                                }
                                              ],
                                              "node_type": "Start",
                                              "ref_id": "183"
                                            }
                                          ],
                                          "ref_id": "184"
                                        }
                                      ],
                                      "ref_id": "185"
                                    }
                                  ],
                                  "ref_id": "186"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n  )"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "187"
                            },
                            {
                              "children": [
                                {
                                  "text": "."
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "locationPeriod"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "188"
                            }
                          ],
                          "node_type": "Property",
                          "ref_id": "188"
                        }
                      ],
                      "node_type": "End",
                      "ref_id": "189"
                    }
                  ],
                  "node_type": "End",
                  "ref_id": "189"
                }
              ],
              "ref_id": "190"
            }
          ],
          "define_name": "Hospital Departure Time"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"Emergency Department Arrival Time\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "191"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "start of "
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "( "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "text": "singleton from "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "( "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "( "
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "\"Hospitalization Locations\"("
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "children": [
                                                                    {
                                                                      "text": "Encounter"
                                                                    }
                                                                  ]
                                                                }
                                                              ],
                                                              "node_type": "OperandRef",
                                                              "ref_id": "192"
                                                            },
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": ")"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "node_type": "FunctionRef",
                                                          "ref_id": "193"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": ")"
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "node_type": "FunctionRef",
                                                      "ref_id": "193"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": " HospitalLocation"
                                                        }
                                                      ]
                                                    }
                                                  ],
                                                  "ref_id": "194"
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "\n        "
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "where "
                                                    }
                                                  ]
                                                },
                                                {
                                                  "children": [
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "HospitalLocation"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "195"
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "."
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "children": [
                                                            {
                                                              "children": [
                                                                {
                                                                  "text": "code"
                                                                }
                                                              ]
                                                            }
                                                          ],
                                                          "ref_id": "196"
                                                        }
                                                      ],
                                                      "ref_id": "196"
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "text": " in "
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "children": [
                                                        {
                                                          "children": [
                                                            {
                                                              "text": "\"Emergency Department Visit\""
                                                            }
                                                          ]
                                                        }
                                                      ],
                                                      "ref_id": "197"
                                                    }
                                                  ],
                                                  "ref_id": "198"
                                                }
                                              ],
                                              "ref_id": "198"
                                            }
                                          ],
                                          "node_type": "Query",
                                          "ref_id": "199"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": "\n    )"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Query",
                                      "ref_id": "199"
                                    }
                                  ],
                                  "ref_id": "200"
                                },
                                {
                                  "children": [
                                    {
                                      "text": "\n  )"
                                    }
                                  ]
                                }
                              ],
                              "ref_id": "200"
                            },
                            {
                              "children": [
                                {
                                  "text": "."
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "locationPeriod"
                                    }
                                  ]
                                }
                              ],
                              "node_type": "Property",
                              "ref_id": "201"
                            }
                          ],
                          "node_type": "Property",
                          "ref_id": "201"
                        }
                      ],
                      "node_type": "Start",
                      "ref_id": "202"
                    }
                  ],
                  "node_type": "Start",
                  "ref_id": "202"
                }
              ],
              "ref_id": "203"
            }
          ],
          "define_name": "Emergency Department Arrival Time"
        },
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "text": "define function \"First Inpatient Intensive Care Unit\"(Encounter "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "text": "\"Encounter, Performed\""
                        }
                      ]
                    }
                  ],
                  "ref_id": "204"
                },
                {
                  "children": [
                    {
                      "text": " ):\n  "
                    }
                  ]
                },
                {
                  "children": [
                    {
                      "children": [
                        {
                          "children": [
                            {
                              "text": "First("
                            }
                          ]
                        },
                        {
                          "children": [
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "("
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Encounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "205"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "facilityLocations"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "206"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "206"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": ")"
                                            }
                                          ]
                                        }
                                      ],
                                      "node_type": "Property",
                                      "ref_id": "206"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "HospitalLocation"
                                        }
                                      ]
                                    }
                                  ],
                                  "ref_id": "207"
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "where "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "HospitalLocation"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "208"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "code"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "209"
                                            }
                                          ],
                                          "ref_id": "209"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " in "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "\"Intensive Care Unit\""
                                                }
                                              ]
                                            }
                                          ],
                                          "ref_id": "210"
                                        }
                                      ],
                                      "node_type": "InValueSet",
                                      "ref_id": "211"
                                    },
                                    {
                                      "children": [
                                        {
                                          "text": "\n        and "
                                        }
                                      ]
                                    },
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "HospitalLocation"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "212"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "locationPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "213"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "213"
                                        },
                                        {
                                          "children": [
                                            {
                                              "text": " during "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "Encounter"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "ref_id": "214"
                                            },
                                            {
                                              "children": [
                                                {
                                                  "text": "."
                                                }
                                              ]
                                            },
                                            {
                                              "children": [
                                                {
                                                  "children": [
                                                    {
                                                      "text": "relevantPeriod"
                                                    }
                                                  ]
                                                }
                                              ],
                                              "node_type": "Property",
                                              "ref_id": "215"
                                            }
                                          ],
                                          "node_type": "Property",
                                          "ref_id": "215"
                                        }
                                      ],
                                      "node_type": "IncludedIn",
                                      "ref_id": "216"
                                    }
                                  ],
                                  "ref_id": "217"
                                }
                              ],
                              "ref_id": "217"
                            },
                            {
                              "children": [
                                {
                                  "text": "\n      "
                                }
                              ]
                            },
                            {
                              "children": [
                                {
                                  "children": [
                                    {
                                      "text": "sort by "
                                    }
                                  ]
                                },
                                {
                                  "children": [
                                    {
                                      "children": [
                                        {
                                          "children": [
                                            {
                                              "text": "start of "
                                            }
                                          ]
                                        },
                                        {
                                          "children": [
                                            {
                                              "children": [
                                                {
                                                  "text": "locationPeriod"
                                                }
                                              ]
                                            }
                                          ],
                                          "node_type": "IdentifierRef",
                                          "ref_id": "218"
                                        }
                                      ],
                                      "node_type": "Start",
                                      "ref_id": "219"
                                    }
                                  ],
                                  "ref_id": "220"
                                }
                              ],
                              "ref_id": "221"
                            }
                          ],
                          "ref_id": "222"
                        },
                        {
                          "children": [
                            {
                              "text": "\n  )"
                            }
                          ]
                        }
                      ],
                      "node_type": "First",
                      "ref_id": "223"
                    }
                  ],
                  "node_type": "First",
                  "ref_id": "223"
                }
              ],
              "ref_id": "224"
            }
          ],
          "define_name": "First Inpatient Intensive Care Unit"
        }
      ],
      "identifier": {
        "id": "MATGlobalCommonFunctions",
        "version": "2.0.000"
      }
    }
  },
  "episode_ids": null,
  "episode_of_care": false,
  "hqmf_id": "40280382-6258-7581-0162-63106F9201B2",
  "hqmf_set_id": "A4B9763C-847E-4E02-BB7E-ACC596E90E2C",
  "hqmf_version_number": 7,
  "id": "5ab9422eb848465f6789206a",
  "main_cql_library": "DepressionUtilizationofthePHQ9Tool",
  "measure_attributes": [
    {
      "code": "OTH",
      "value": "160",
      "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": "160",
        "media_type": "text/plain"
      }
    },
    {
      "code": "OTH",
      "value": "0712",
      "name": "NQF Number",
      "code_obj": {
        "type": "CD",
        "null_flavor": "OTH",
        "original_text": "NQF Number"
      },
      "value_obj": {
        "type": "ED",
        "value": "0712",
        "media_type": "text/plain"
      }
    },
    {
      "code": "COPY",
      "value": "Copyright MN Community Measurement, 2018. 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": "Copyright MN Community Measurement, 2018. All rights reserved.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DISC",
      "value": "This measure is \"re-tooled\" from the existing NQF # 712 measure. eMeasure development was a collaboration between MN Community Measurement and Telligen with technical assistance provided by Telligen.",
      "name": "Disclaimer",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DISC",
        "title": "Disclaimer"
      },
      "value_obj": {
        "type": "ED",
        "value": "This measure is \"re-tooled\" from the existing NQF # 712 measure. eMeasure development was a collaboration between MN Community Measurement and Telligen with technical assistance provided by Telligen.",
        "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": "Ages 12 to 17\nAges 18 and older",
      "name": "Stratification",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "STRAT",
        "title": "Stratification"
      },
      "value_obj": {
        "type": "ED",
        "value": "Ages 12 to 17\nAges 18 and older",
        "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": "Adults:\nDepression is a common and treatable mental disorder. The Centers for Disease Control and Prevention states that an estimated 6.6% of the U.S. adult population (14.8 million people) experiences a major depressive disorder during any given 12-month period. Additionally, dysthymia accounts for an additional 3.3 million Americans. In 2006 and 2008, an estimated 9.1% of U.S. adults reported symptoms for current depression (Centers for Disease Control and Prevention, 2010).\n\nPersons with a current diagnosis of depression and a lifetime diagnosis of depression or anxiety were significantly more likely than persons without these conditions to have cardiovascular disease, diabetes, asthma and obesity and to be a current smoker, to be physically inactive and to drink heavily (Strine, 2008).\n \nPeople who suffer from depression have lower incomes, lower educational attainment and fewer days working each year, leading to seven fewer weeks of work per year, a loss of 20% in potential income and a lifetime loss for each family who has a depressed family member of $300,000 (Smith, 2010). \n\nThe cost of depression (lost productivity and increased medical expense) in the United States is $83 billion each year (Greenberg, 2003). \n\n \nAdolescents and Adults:\nThe Centers for Disease Control and Prevention states that during 2009-2012 an estimated 7.6% of the U.S. population aged 12 and over had depression, including 3% of Americans with severe depressive symptoms. Almost 43% of persons with severe depressive symptoms reported serious difficulties in work, home and social activities, yet only 35% reported having contact with a mental health professional in the past year.\nDepression is associated with higher mortality rates in all age groups. People who are depressed are 30 times more likely to take their own lives than people who are not depressed and five times more likely to abuse drugs. Depression is the leading cause of medical disability for people aged 14 - 44. Depressed people lose 5.6 hours of productive work every week when they are depressed, fifty percent of which is due to absenteeism and short-term disability.\n\nAdolescents:\nIn 2014, an estimated 2.8 million adolescents age 12 to 17 in the United States had at least one major depressive episode in the past year. This represented 11.4% of the U.S. population. The same survey found that only 41.2 percent of those who had a Major Depressive Episode received treatment in the past year. The 2013 Youth Risk Behavior Survey of students grades 9 to 12 indicated that during the past 12 months 39.1% (F) and 20.8% (M) indicated feeling sad or hopeless almost every day for at least 2 weeks, planned suicide attempt 16.9% (F) and 10.3% (M), with attempted suicide 10.6% (F) and 5.4% (M). Adolescent-onset depression is associated with chronic depression in adulthood. Many mental health conditions (anxiety, bipolar, depression, eating disorders, and substance abuse) are evident by age 14. The 12-month prevalence of MDEs increased from 8.7% in 2005 to 11.3% in 2014 in adolescents and from 8.8% to 9.6% in young adults (both P < .001). The increase was larger and statistically significant only in the age range of 12 to 20 years. The trends remained significant after adjustment for substance use disorders and sociodemographic factors. Mental health care contacts overall did not change over time; however, the use of specialty mental health providers increased in adolescents and young adults, and the use of prescription medications and inpatient hospitalizations increased in adolescents. In 2015, 9.7% of adolescents in MN who were screened for depression or other mental health conditions, screened positively.\n\nPlease note that this process measure for administration of the PHQ-9 or PHQ-9M depression tool, a PROM that is validated for both the assessment and diagnosis of depression as well as for monitoring ongoing outcomes of treatment, is a PAIRED process measure with RELATED measures of depression remission (PHQ-9/PHQ-9M < 5) and depression response (PHQ-9/PHQ-9M is improved by > 50%) at six and twelve months.  To quote a NQF Behavioral Steering Committee member as these measures were initially endorsed \"the best way to avoid being measured is to never give the PHQ-9\".  This process measure allows an understanding of the use of the tool in the target population, promotes frequent and follow-up contact with patients whose score indicates a need for treatment and serves as a catalyst in a collaborative care model for patients with major depression or dysthymia.  It is estimated that up to 90% of patients diagnosed with depression and anxiety are treated solely in primary care (National Institute for Health and Care Excellence, 2011).",
      "name": "Rationale",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "RAT",
        "title": "Rationale"
      },
      "value_obj": {
        "type": "ED",
        "value": "Adults:\nDepression is a common and treatable mental disorder. The Centers for Disease Control and Prevention states that an estimated 6.6% of the U.S. adult population (14.8 million people) experiences a major depressive disorder during any given 12-month period. Additionally, dysthymia accounts for an additional 3.3 million Americans. In 2006 and 2008, an estimated 9.1% of U.S. adults reported symptoms for current depression (Centers for Disease Control and Prevention, 2010).\n\nPersons with a current diagnosis of depression and a lifetime diagnosis of depression or anxiety were significantly more likely than persons without these conditions to have cardiovascular disease, diabetes, asthma and obesity and to be a current smoker, to be physically inactive and to drink heavily (Strine, 2008).\n \nPeople who suffer from depression have lower incomes, lower educational attainment and fewer days working each year, leading to seven fewer weeks of work per year, a loss of 20% in potential income and a lifetime loss for each family who has a depressed family member of $300,000 (Smith, 2010). \n\nThe cost of depression (lost productivity and increased medical expense) in the United States is $83 billion each year (Greenberg, 2003). \n\n \nAdolescents and Adults:\nThe Centers for Disease Control and Prevention states that during 2009-2012 an estimated 7.6% of the U.S. population aged 12 and over had depression, including 3% of Americans with severe depressive symptoms. Almost 43% of persons with severe depressive symptoms reported serious difficulties in work, home and social activities, yet only 35% reported having contact with a mental health professional in the past year.\nDepression is associated with higher mortality rates in all age groups. People who are depressed are 30 times more likely to take their own lives than people who are not depressed and five times more likely to abuse drugs. Depression is the leading cause of medical disability for people aged 14 - 44. Depressed people lose 5.6 hours of productive work every week when they are depressed, fifty percent of which is due to absenteeism and short-term disability.\n\nAdolescents:\nIn 2014, an estimated 2.8 million adolescents age 12 to 17 in the United States had at least one major depressive episode in the past year. This represented 11.4% of the U.S. population. The same survey found that only 41.2 percent of those who had a Major Depressive Episode received treatment in the past year. The 2013 Youth Risk Behavior Survey of students grades 9 to 12 indicated that during the past 12 months 39.1% (F) and 20.8% (M) indicated feeling sad or hopeless almost every day for at least 2 weeks, planned suicide attempt 16.9% (F) and 10.3% (M), with attempted suicide 10.6% (F) and 5.4% (M). Adolescent-onset depression is associated with chronic depression in adulthood. Many mental health conditions (anxiety, bipolar, depression, eating disorders, and substance abuse) are evident by age 14. The 12-month prevalence of MDEs increased from 8.7% in 2005 to 11.3% in 2014 in adolescents and from 8.8% to 9.6% in young adults (both P < .001). The increase was larger and statistically significant only in the age range of 12 to 20 years. The trends remained significant after adjustment for substance use disorders and sociodemographic factors. Mental health care contacts overall did not change over time; however, the use of specialty mental health providers increased in adolescents and young adults, and the use of prescription medications and inpatient hospitalizations increased in adolescents. In 2015, 9.7% of adolescents in MN who were screened for depression or other mental health conditions, screened positively.\n\nPlease note that this process measure for administration of the PHQ-9 or PHQ-9M depression tool, a PROM that is validated for both the assessment and diagnosis of depression as well as for monitoring ongoing outcomes of treatment, is a PAIRED process measure with RELATED measures of depression remission (PHQ-9/PHQ-9M < 5) and depression response (PHQ-9/PHQ-9M is improved by > 50%) at six and twelve months.  To quote a NQF Behavioral Steering Committee member as these measures were initially endorsed \"the best way to avoid being measured is to never give the PHQ-9\".  This process measure allows an understanding of the use of the tool in the target population, promotes frequent and follow-up contact with patients whose score indicates a need for treatment and serves as a catalyst in a collaborative care model for patients with major depression or dysthymia.  It is estimated that up to 90% of patients diagnosed with depression and anxiety are treated solely in primary care (National Institute for Health and Care Excellence, 2011).",
        "media_type": "text/plain"
      }
    },
    {
      "code": "CRS",
      "value": "Adults: \nSource: Institute for Clinical Systems Improvement (ICSI) Health Care Guideline for Adult Depression in Primary Care (Trangle, 2016)\n\nMajor depression is a treatable cause of pain, suffering, disability and death, yet primary care clinicians detect major depression in only one-third to one-half of their patients with major depression (Williams Jr, 2002; Schonfeld, 1997).\n\nUsual care for depression in the primary care setting has resulted in only about half of depressed adults getting treated (Kessler, 2005) and only 20-40% showing substantial improvement over 12 months (Unutzer, 2002; Katon, 1999).\n\nRecommendations and algorithm notations supporting depression assessment and monitoring of depression outcomes according to ICSI's Health Care Guideline:\n\nRecommendation:  Clinicians should establish and maintain follow-up with patients.  Appropriate, reliable follow-up is highly correlated with improved response and remission scores.  It is also correlated with the improved safety and efficacy of medications and helps prevent relapse. \n\nProactive follow-up contacts (in person, telephone) based on the collaborative care model have been shown to significantly lower depression severity (Unutzer, 2002).  In the available clinical effectiveness trials conducted in real clinical practice settings, even the addition of a care manager leads to modest remission rates (Trivedi, 2006-; Unutzer, 2002).  Interventions are critical to educating the patient regarding the importance of preventing relapse, safety and efficacy of medications, and management of potential side effects.  Establish and maintain initial follow-up contact intervals (office, phone, other) (Hunkeler, 2000; Simon, 2000).\n \nPHQ-9 as monitor and management tool.  The PHQ-9 is an effective management tool, as well, and should be used routinely for subsequent visits to monitor treatment outcomes and severity. It can also help the clinician decide if/how to modify the treatment plan (Duffy, 2008; Lowe, 2004).  Using a measurement-based approach to depression care, PHQ-9 results and side effect evaluation should be combined with treatment algorithms to drive patients toward remission.  A five-point drop in PHQ-9 score is considered the minimal clinically significant difference (Trivedi, 2009). \n\nEvery time that the PHQ-9 is assessed, suicidality is assessed, as well. If the suicidality was indeed of high risk, urgent referral to crisis specialty health care is advised. In case of low suicide risk, the patient can proceed with treatment in the primary care practice (Huijbregts, 2013).\n\nAdult Depression in Primary Care - Guideline Aims \n- Increase the percentage of patients with major depression or persistent depressive disorder who have improvement in outcomes from treatment for major depression or persistent depressive disorder. \n- Increase the percentage of patients with major depression or persistent depressive disorder who have follow-up to assess for outcomes from treatment.\n- Improve communication between the primary care physician and the mental health care clinician (if patient is co-managed).\n\nAdolescents:\nSource: American Academy of Child and Adolescent Psychiatry Practice Parameter for the Assessment and Treatment of Children and Adolescents with Depressive Disorders (2007)\nhttp://www.jaacap.com/article/S0890-8567(09)62053-0/pdf\n\nRecommendations:\nRecommendations supporting depression outcomes and duration of treatment according to AACAP guideline:\n- Treatment of depressive disorders should always include an acute and continuation phase; some children may also require maintenance treatment. The main goal of the acute phase is to achieve response and ultimately full symptomatic remission (definitions below).\n- Each phase of treatment should include psychoeducation, supportive management, and family and school involvement\n- Education, support, and case management appear to be sufficient treatment for the management of depressed children and adolescents with an uncomplicated or brief depression or with mild psychosocial impairment\n- For children and adolescents who do not respond to supportive psychotherapy or who have more complicated depressions, a trial with specific types of psychotherapy and/or antidepressants is indicated\n\nDefinitions:\nResponse: No symptoms or a significant reduction in depressive symptoms for at least 2 weeks\nRemission: A period of at least 2 weeks and <2months with no or few depressive symptoms \nRecovery: Absence of significant symptoms of depression (eg, no more than 1 to 2 symptoms) for greater than 2 months \nRelapse: A DSM episode of depression during the period of remission\nRecurrence: The emergence of symptoms of depression during the period of recovery (a new episode)\n\nSources:  \nGuidelines for Adolescent Depression in Primary Care (GLAD-PC) (2018) http://pediatrics.aappublications.org/content/141/3/e20174081\nGuidelines for adolescent depression in primary care (GLAD-PC): II. Treatment and ongoing management\nhttp://pediatrics.aappublications.org/content/141/3/e20174082\n\nRecommendations supporting depression outcomes and duration of treatment according to GLAD-PC:\nRecommendations for Ongoing Management of Depression:\n- Mild depression: consider a period of active support and monitoring before starting other evidence based treatment\n- Moderate or severe major clinical depression or complicating factors: \n  -- consultation with mental health specialist with agreed upon roles \n  -- evidence based treatment (CBT or IPT and/or antidepressant SSRI)\n- Monitor for adverse effects during antidepressant therapy\n  -- clinical worsening, suicidality, unusual changes in behavior\n- Systematic and regular tracking of goals and outcomes\n  -- improvement in functioning status and resolution of depressive symptoms \nRegardless of the length of treatment, all patients should be monitored on a monthly basis for 6 to 12 months after the full resolution of symptoms",
      "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": "Adults: \nSource: Institute for Clinical Systems Improvement (ICSI) Health Care Guideline for Adult Depression in Primary Care (Trangle, 2016)\n\nMajor depression is a treatable cause of pain, suffering, disability and death, yet primary care clinicians detect major depression in only one-third to one-half of their patients with major depression (Williams Jr, 2002; Schonfeld, 1997).\n\nUsual care for depression in the primary care setting has resulted in only about half of depressed adults getting treated (Kessler, 2005) and only 20-40% showing substantial improvement over 12 months (Unutzer, 2002; Katon, 1999).\n\nRecommendations and algorithm notations supporting depression assessment and monitoring of depression outcomes according to ICSI's Health Care Guideline:\n\nRecommendation:  Clinicians should establish and maintain follow-up with patients.  Appropriate, reliable follow-up is highly correlated with improved response and remission scores.  It is also correlated with the improved safety and efficacy of medications and helps prevent relapse. \n\nProactive follow-up contacts (in person, telephone) based on the collaborative care model have been shown to significantly lower depression severity (Unutzer, 2002).  In the available clinical effectiveness trials conducted in real clinical practice settings, even the addition of a care manager leads to modest remission rates (Trivedi, 2006-; Unutzer, 2002).  Interventions are critical to educating the patient regarding the importance of preventing relapse, safety and efficacy of medications, and management of potential side effects.  Establish and maintain initial follow-up contact intervals (office, phone, other) (Hunkeler, 2000; Simon, 2000).\n \nPHQ-9 as monitor and management tool.  The PHQ-9 is an effective management tool, as well, and should be used routinely for subsequent visits to monitor treatment outcomes and severity. It can also help the clinician decide if/how to modify the treatment plan (Duffy, 2008; Lowe, 2004).  Using a measurement-based approach to depression care, PHQ-9 results and side effect evaluation should be combined with treatment algorithms to drive patients toward remission.  A five-point drop in PHQ-9 score is considered the minimal clinically significant difference (Trivedi, 2009). \n\nEvery time that the PHQ-9 is assessed, suicidality is assessed, as well. If the suicidality was indeed of high risk, urgent referral to crisis specialty health care is advised. In case of low suicide risk, the patient can proceed with treatment in the primary care practice (Huijbregts, 2013).\n\nAdult Depression in Primary Care - Guideline Aims \n- Increase the percentage of patients with major depression or persistent depressive disorder who have improvement in outcomes from treatment for major depression or persistent depressive disorder. \n- Increase the percentage of patients with major depression or persistent depressive disorder who have follow-up to assess for outcomes from treatment.\n- Improve communication between the primary care physician and the mental health care clinician (if patient is co-managed).\n\nAdolescents:\nSource: American Academy of Child and Adolescent Psychiatry Practice Parameter for the Assessment and Treatment of Children and Adolescents with Depressive Disorders (2007)\nhttp://www.jaacap.com/article/S0890-8567(09)62053-0/pdf\n\nRecommendations:\nRecommendations supporting depression outcomes and duration of treatment according to AACAP guideline:\n- Treatment of depressive disorders should always include an acute and continuation phase; some children may also require maintenance treatment. The main goal of the acute phase is to achieve response and ultimately full symptomatic remission (definitions below).\n- Each phase of treatment should include psychoeducation, supportive management, and family and school involvement\n- Education, support, and case management appear to be sufficient treatment for the management of depressed children and adolescents with an uncomplicated or brief depression or with mild psychosocial impairment\n- For children and adolescents who do not respond to supportive psychotherapy or who have more complicated depressions, a trial with specific types of psychotherapy and/or antidepressants is indicated\n\nDefinitions:\nResponse: No symptoms or a significant reduction in depressive symptoms for at least 2 weeks\nRemission: A period of at least 2 weeks and <2months with no or few depressive symptoms \nRecovery: Absence of significant symptoms of depression (eg, no more than 1 to 2 symptoms) for greater than 2 months \nRelapse: A DSM episode of depression during the period of remission\nRecurrence: The emergence of symptoms of depression during the period of recovery (a new episode)\n\nSources:  \nGuidelines for Adolescent Depression in Primary Care (GLAD-PC) (2018) http://pediatrics.aappublications.org/content/141/3/e20174081\nGuidelines for adolescent depression in primary care (GLAD-PC): II. Treatment and ongoing management\nhttp://pediatrics.aappublications.org/content/141/3/e20174082\n\nRecommendations supporting depression outcomes and duration of treatment according to GLAD-PC:\nRecommendations for Ongoing Management of Depression:\n- Mild depression: consider a period of active support and monitoring before starting other evidence based treatment\n- Moderate or severe major clinical depression or complicating factors: \n  -- consultation with mental health specialist with agreed upon roles \n  -- evidence based treatment (CBT or IPT and/or antidepressant SSRI)\n- Monitor for adverse effects during antidepressant therapy\n  -- clinical worsening, suicidality, unusual changes in behavior\n- Systematic and regular tracking of goals and outcomes\n  -- improvement in functioning status and resolution of depressive symptoms \nRegardless of the length of treatment, all patients should be monitored on a monthly basis for 6 to 12 months after the full resolution of symptoms",
        "media_type": "text/plain"
      }
    },
    {
      "code": "IDUR",
      "value": "Higher scores indicate better quality",
      "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": "Higher scores indicate better quality",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Trangle M, Gursky J, Haight R, Hardwig J, Hinnenkamp T, Kessler D, Mack N, Myszkowski M. Institute for Clinical Systems Improvement. Adult Depression in Primary Care. Updated March 2016. https://www.icsi.org/guidelines__more/catalog_guidelines_and_more/catalog_guidelines/catalog_behavioral_health_guidelines/depression/",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Trangle M, Gursky J, Haight R, Hardwig J, Hinnenkamp T, Kessler D, Mack N, Myszkowski M. Institute for Clinical Systems Improvement. Adult Depression in Primary Care. Updated March 2016. https://www.icsi.org/guidelines__more/catalog_guidelines_and_more/catalog_guidelines/catalog_behavioral_health_guidelines/depression/",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Gonzolez O, Berry JT, McKnight-Eily LR, et al. Centers for Disease Control and Prevention. Current Depression Among Adults United States, 2006 and 2008. MMWR 2010;59(38);1229-1235. https://www.cdc.gov/mmwr/preview/mmwrhtml/mm5938a2.htm",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Gonzolez O, Berry JT, McKnight-Eily LR, et al. Centers for Disease Control and Prevention. Current Depression Among Adults United States, 2006 and 2008. MMWR 2010;59(38);1229-1235. https://www.cdc.gov/mmwr/preview/mmwrhtml/mm5938a2.htm",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Strine TW, Mokdad AH, Balluz LS, et al. Depression and anxiety in the United States: findings from the 2006 Behavioral Risk Factor Surveillance System. Psychiatr Serv 2008;59:1383-90. http://ps.psychiatryonline.org/doi/abs/10.1176/ps.2008.59.12.1383",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Strine TW, Mokdad AH, Balluz LS, et al. Depression and anxiety in the United States: findings from the 2006 Behavioral Risk Factor Surveillance System. Psychiatr Serv 2008;59:1383-90. http://ps.psychiatryonline.org/doi/abs/10.1176/ps.2008.59.12.1383",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Smith JP, Smith GC. Long-term economic costs of psychological problems during childhood. Soc Sci Med 2010;71:110-115. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2887689/",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Smith JP, Smith GC. Long-term economic costs of psychological problems during childhood. Soc Sci Med 2010;71:110-115. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2887689/",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Greenberg PE, Kessler RC, Birnbaum HG, et al. The economic burden of depression in the United States: how did it change between 1990 and 2000? J Clin Psychiatry 2003;64(10):1465-1475.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Greenberg PE, Kessler RC, Birnbaum HG, et al. The economic burden of depression in the United States: how did it change between 1990 and 2000? J Clin Psychiatry 2003;64(10):1465-1475.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Kendrick T, Pilling S, et al. National Institute for Health and Care Excellence. Clinical guideline CG123. Common mental health problems; identification and pathways to care. May 2011. https://www.nice.org.uk/guidance/cg123/chapter/introduction",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Kendrick T, Pilling S, et al. National Institute for Health and Care Excellence. Clinical guideline CG123. Common mental health problems; identification and pathways to care. May 2011. https://www.nice.org.uk/guidance/cg123/chapter/introduction",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Williams Jr JW, Noel PH, Cordes JA, et al. Is this patient clinically depressed? JAMA 2002;287:1160-70.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Williams Jr JW, Noel PH, Cordes JA, et al. Is this patient clinically depressed? JAMA 2002;287:1160-70.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Schonfeld WH, Verboncoeur CJ, Fifer SK, et al. The functioning and well-being of patients with unrecognized anxiety disorders and major depressive disorder. J Affect Disord 1997;43:105-19.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Schonfeld WH, Verboncoeur CJ, Fifer SK, et al. The functioning and well-being of patients with unrecognized anxiety disorders and major depressive disorder. J Affect Disord 1997;43:105-19.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Kessler RC, Chiu WT, Demler O, Walters EE. Prevalence, severity, and comorbidity of 12-month DSM-IV disorders in the national comorbidity survey replication. Arch Gen Psychiatry 2005;62:617-27.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Kessler RC, Chiu WT, Demler O, Walters EE. Prevalence, severity, and comorbidity of 12-month DSM-IV disorders in the national comorbidity survey replication. Arch Gen Psychiatry 2005;62:617-27.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Unutzer J, Katon W, Callahan CM, et al. Collaborative care management of late-life depression in the primary care setting: a randomized controlled trial. JAMA 2002;288:2836-45.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Unutzer J, Katon W, Callahan CM, et al. Collaborative care management of late-life depression in the primary care setting: a randomized controlled trial. JAMA 2002;288:2836-45.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Katon W, Von Korff M, Lin E, et al. Stepped collaborative care for primary care patients with persistent symptoms of depression: a randomized trial. Arch Gen Psychiatry 1999;56:1109-15.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Katon W, Von Korff M, Lin E, et al. Stepped collaborative care for primary care patients with persistent symptoms of depression: a randomized trial. Arch Gen Psychiatry 1999;56:1109-15.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Trivedi MH, Rush AJ, Wisniewski SR, et al. Evaluation of outcomes with citalopram for depression using measurement-based care in STAR*D: implications for clinical practice. Am J Psychiatry 2006;163:28-40.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Trivedi MH, Rush AJ, Wisniewski SR, et al. Evaluation of outcomes with citalopram for depression using measurement-based care in STAR*D: implications for clinical practice. Am J Psychiatry 2006;163:28-40.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Hunkeler EM, Meresman JF, Hargreaves WA, et al. Efficacy of nurse telehealth care and peer support in augmenting treatment of depression in primary care. Arch Fam Med 2000;9:700-08.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Hunkeler EM, Meresman JF, Hargreaves WA, et al. Efficacy of nurse telehealth care and peer support in augmenting treatment of depression in primary care. Arch Fam Med 2000;9:700-08.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Simon GE, Van Korff M, Rutter C, Wagner E. Randomised trial of monitoring, feedback, and management of care by telephone to improve treatment of depression in primary care. BMJ 2000;320:550-54.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Simon GE, Van Korff M, Rutter C, Wagner E. Randomised trial of monitoring, feedback, and management of care by telephone to improve treatment of depression in primary care. BMJ 2000;320:550-54.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Duffy FF, Chung H, Trivedi M, et al. Systematic use of patient-rated depression severity monitoring: is it helpful and feasible in clinical psychiatry? Psychiatric Serv 2008;59:1148-54.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Duffy FF, Chung H, Trivedi M, et al. Systematic use of patient-rated depression severity monitoring: is it helpful and feasible in clinical psychiatry? Psychiatric Serv 2008;59:1148-54.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Lowe B, Unutzer J, Callahan CM, et al. Monitoring depression treatment outcomes with the patient health questionnaire-9. Med Care 2004;42:1194-1201.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Lowe B, Unutzer J, Callahan CM, et al. Monitoring depression treatment outcomes with the patient health questionnaire-9. Med Care 2004;42:1194-1201.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Trivedi MH. Tools and strategies for ongoing assessment of depression: a measurement-based approach to remission. J Clin Psychiatry 2009;70:26-31.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Trivedi MH. Tools and strategies for ongoing assessment of depression: a measurement-based approach to remission. J Clin Psychiatry 2009;70:26-31.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Huijbregts KML, de Jong FJ, van Marwijk HWJ, et al. A target-driven collaborative care model for major depressive disorder is effective in primary care in the Netherlands: a randomized clinical trial from the depression initiative. J Affect Dis 2013;146:328-37.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Huijbregts KML, de Jong FJ, van Marwijk HWJ, et al. A target-driven collaborative care model for major depressive disorder is effective in primary care in the Netherlands: a randomized clinical trial from the depression initiative. J Affect Dis 2013;146:328-37.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Kroenke K, Spitzer RL, Williams JBW. The PHQ-9: validity of a brief depression severity measure. J Gen Intern Med 2001;16:606-13. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Kroenke K, Spitzer RL, Williams JBW. The PHQ-9: validity of a brief depression severity measure. J Gen Intern Med 2001;16:606-13. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Birmaher B, Brent D. Practice parameter for the assessment and treatment of children and adolescents with depressive disorders. J Am Acad Child Adoles Psychiatry 2007;46(11)1503-1526. http://www.jaacap.com/article/S0890-8567(09)62053-0/pdf",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Birmaher B, Brent D. Practice parameter for the assessment and treatment of children and adolescents with depressive disorders. J Am Acad Child Adoles Psychiatry 2007;46(11)1503-1526. http://www.jaacap.com/article/S0890-8567(09)62053-0/pdf",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Zuckerbrot RA, Cheung A, Jensen PS, et al.  Guidelines for adolescent depression in primary care (GLAD-PC): Part I. Practice preparation, identification, assessment, and initial management. Pediatrics March 2018, Volume 141 / Issue 3. http://pediatrics.aappublications.org/content/141/3/e20174081",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Zuckerbrot RA, Cheung A, Jensen PS, et al.  Guidelines for adolescent depression in primary care (GLAD-PC): Part I. Practice preparation, identification, assessment, and initial management. Pediatrics March 2018, Volume 141 / Issue 3. http://pediatrics.aappublications.org/content/141/3/e20174081",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Cheung AH, Zuckerbrot RA, Jensen PS, et al. Guidelines for adolescent depression in primary care (GLAD-PC): Part II. Treatment and ongoing management. Pediatrics March 2018, Volume 141 / Issue 3. http://pediatrics.aappublications.org/content/141/3/e20174082",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Cheung AH, Zuckerbrot RA, Jensen PS, et al. Guidelines for adolescent depression in primary care (GLAD-PC): Part II. Treatment and ongoing management. Pediatrics March 2018, Volume 141 / Issue 3. http://pediatrics.aappublications.org/content/141/3/e20174082",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Pratt LA, Brody DJ. Depression in the U.S. household population, 2009-2012. NCHS data brief, no 172. Hyattsville, MD: National Center for Health Statistics. 2014.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Pratt LA, Brody DJ. Depression in the U.S. household population, 2009-2012. NCHS data brief, no 172. Hyattsville, MD: National Center for Health Statistics. 2014.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Joiner T. Myths about suicide. Cambridge: Harvard University Press; 2010.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Joiner T. Myths about suicide. Cambridge: Harvard University Press; 2010.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Stewart WF, Ricci JA, Chee E, Hahn SR, Morganstein D. Cost of lost productive work time among US workers with depression. JAMA 2003;289:3135-44.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Stewart WF, Ricci JA, Chee E, Hahn SR, Morganstein D. Cost of lost productive work time among US workers with depression. JAMA 2003;289:3135-44.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "National Institute of Mental Health. Prevalence of major depressive episode among adolescents. 2014. https://www.nimh.nih.gov/health/statistics/prevalence/major-depression-among-adolescents.shtml",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "National Institute of Mental Health. Prevalence of major depressive episode among adolescents. 2014. https://www.nimh.nih.gov/health/statistics/prevalence/major-depression-among-adolescents.shtml",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Shain B. Suicide and suicide attempts in adolescents. Pediatrics 2016;138(1):e1-11. http://pediatrics.aappublications.org/content/138/1/e20161420",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Shain B. Suicide and suicide attempts in adolescents. Pediatrics 2016;138(1):e1-11. http://pediatrics.aappublications.org/content/138/1/e20161420",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Lewinsohn PM, Rohde P, Klein DN, Seeley JR. Natural course of adolescent major depressive disorder: I. Continuity into young adulthood. J Am Acad Child Adoles Psychiatry 1999;38(1):56-63.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Lewinsohn PM, Rohde P, Klein DN, Seeley JR. Natural course of adolescent major depressive disorder: I. Continuity into young adulthood. J Am Acad Child Adoles Psychiatry 1999;38(1):56-63.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Giedd JN, Keshavan M, Paus T. Why do many psychiatric disorders emerge during adolescence? Nat Rev Neurosci 2008;9(12):947-57. http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2762785/",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Giedd JN, Keshavan M, Paus T. Why do many psychiatric disorders emerge during adolescence? Nat Rev Neurosci 2008;9(12):947-57. http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2762785/",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Ramin M, Olfson M, Han B. National trends in the prevalence and treatment of depression in adolescents and young adults. Pediatrics 2016;138(6):e20161878. http://pediatrics.aappublications.org/content/early/2016/11/10/peds.2016-1878",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Ramin M, Olfson M, Han B. National trends in the prevalence and treatment of depression in adolescents and young adults. Pediatrics 2016;138(6):e20161878. http://pediatrics.aappublications.org/content/early/2016/11/10/peds.2016-1878",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Minnesota Community Measurement. New measures evaluate rates of obesity counseling for kids, depression screening for teens. Oct 2015. http://www.mncm.org/new-measures-evaluate-rates-of-obesity-counseling-for-kids-depression-screening-for-teens/",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Minnesota Community Measurement. New measures evaluate rates of obesity counseling for kids, depression screening for teens. Oct 2015. http://www.mncm.org/new-measures-evaluate-rates-of-obesity-counseling-for-kids-depression-screening-for-teens/",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DEF",
      "value": "Completed PHQ-9 or PHQ-9M - The patient must answer ALL nine questions for the score to be valid",
      "name": "Definition",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DEF",
        "title": "Definition"
      },
      "value_obj": {
        "type": "ED",
        "value": "Completed PHQ-9 or PHQ-9M - The patient must answer ALL nine questions for the score to be valid",
        "media_type": "text/plain"
      }
    },
    {
      "code": "GUIDE",
      "value": "If a patient has a qualifying diagnosis and encounter in more than one of the 4 month periods within the measurement year, the patient must be counted (denominator and numerator) in each qualifying 4 month period.  For example, a patient could be counted in the first and third 4 month periods.",
      "name": "Guidance",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "GUIDE",
        "title": "Guidance"
      },
      "value_obj": {
        "type": "ED",
        "value": "If a patient has a qualifying diagnosis and encounter in more than one of the 4 month periods within the measurement year, the patient must be counted (denominator and numerator) in each qualifying 4 month period.  For example, a patient could be counted in the first and third 4 month periods.",
        "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": "Adolescent patients 12 to 17 years of age and adult patients 18 years of age and older with an office visit and the diagnosis of major depression or dysthymia during the four month 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": "Adolescent patients 12 to 17 years of age and adult patients 18 years of age and older with an office visit and the diagnosis of major depression or dysthymia during the four month period",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENOM",
      "value": "Equals Initial Population",
      "name": "Denominator",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DENOM",
        "title": "Denominator"
      },
      "value_obj": {
        "type": "ED",
        "value": "Equals Initial Population",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENEX",
      "value": "1: Patients who died\n2: Patients who received hospice or palliative care services\n3: Patients who were permanent nursing home residents \n4: Patients with a diagnosis of bipolar disorder\n5: Patients with a diagnosis of personality disorder\n6: Patients with a diagnosis of schizophrenia or psychotic disorder\n7: Patients with a diagnosis of pervasive developmental disorder",
      "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": "1: Patients who died\n2: Patients who received hospice or palliative care services\n3: Patients who were permanent nursing home residents \n4: Patients with a diagnosis of bipolar disorder\n5: Patients with a diagnosis of personality disorder\n6: Patients with a diagnosis of schizophrenia or psychotic disorder\n7: Patients with a diagnosis of pervasive developmental disorder",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMER",
      "value": "Adolescent patients 12 to 17 years of age and adult patients 18 years of age and older who have a PHQ-9 or PHQ-9M tool administered at least once during the four-month period",
      "name": "Numerator",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "NUMER",
        "title": "Numerator"
      },
      "value_obj": {
        "type": "ED",
        "value": "Adolescent patients 12 to 17 years of age and adult patients 18 years of age and older who have a PHQ-9 or PHQ-9M tool administered at least once during the four-month period",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMEX",
      "value": "Not applicable",
      "name": "Numerator Exclusions",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "NUMEX",
        "title": "Numerator Exclusions"
      },
      "value_obj": {
        "type": "ED",
        "value": "Not applicable",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DENEXCEP",
      "value": "None",
      "name": "Denominator Exceptions",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DENEXCEP",
        "title": "Denominator Exceptions"
      },
      "value_obj": {
        "type": "ED",
        "value": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "SDE",
      "value": "For every patient evaluated by this measure also identify payer, race, ethnicity and sex",
      "name": "Supplemental Data Elements",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "SDE",
        "title": "Supplemental Data Elements"
      },
      "value_obj": {
        "type": "ED",
        "value": "For every patient evaluated by this measure also identify payer, race, ethnicity and sex",
        "media_type": "text/plain"
      }
    }
  ],
  "measure_id": "40280382-6258-7581-0162-63106F9201B2",
  "measure_period": {
    "type": "IVL_TS",
    "low": {
      "type": "TS",
      "value": "201201010000",
      "inclusive?": true,
      "derived?": false
    },
    "high": {
      "type": "TS",
      "value": "201212312359",
      "inclusive?": true,
      "derived?": false
    },
    "width": {
      "type": "PQ",
      "unit": "a",
      "value": "1",
      "inclusive?": true,
      "derived?": false
    }
  },
  "needs_finalize": false,
  "observations": [

  ],
  "population_criteria": {
    "IPP": {
      "conjunction?": true,
      "type": "IPP",
      "hqmf_id": "D00E7D31-7F59-468D-99C6-631D07715E59",
      "preconditions": [
        {
          "id": 2,
          "preconditions": [
            {
              "id": 1,
              "reference": "DepressionUtilizationofthePHQ9Tool__Initial_Population_1__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "A52E93B8-A2D1-414E-94D0-90155E8FF81F",
      "preconditions": [
        {
          "id": 4,
          "preconditions": [
            {
              "id": 3,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_1__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "539B0A53-F5B0-47CB-887E-392792E9D4ED",
      "preconditions": [
        {
          "id": 6,
          "preconditions": [
            {
              "id": 5,
              "reference": "DepressionUtilizationofthePHQ9Tool__Numerator_1__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENEX": {
      "conjunction?": true,
      "type": "DENEX",
      "hqmf_id": "0830DDCA-C45E-4D80-B359-E69E2F83D7B2",
      "preconditions": [
        {
          "id": 8,
          "preconditions": [
            {
              "id": 7,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_Exclusion_1__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    },
    "STRAT": {
      "conjunction?": true,
      "type": "STRAT",
      "hqmf_id": "13406420-1144-4100-9439-ED134656A4FC",
      "preconditions": [
        {
          "id": 12,
          "preconditions": [
            {
              "id": 11,
              "reference": "DepressionUtilizationofthePHQ9Tool__Stratification_1_1__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "STRAT_1": {
      "conjunction?": true,
      "type": "STRAT",
      "hqmf_id": "DD7E5C35-6825-496B-A155-A4CBE9056535",
      "preconditions": [
        {
          "id": 16,
          "preconditions": [
            {
              "id": 15,
              "reference": "DepressionUtilizationofthePHQ9Tool__Stratification_1_2__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "IPP_1": {
      "conjunction?": true,
      "type": "IPP",
      "hqmf_id": "95F5AFA0-CB23-4786-A2E0-0646C0494E4F",
      "preconditions": [
        {
          "id": 18,
          "preconditions": [
            {
              "id": 17,
              "reference": "DepressionUtilizationofthePHQ9Tool__Initial_Population_2__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM_1": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "1B9C4359-5DF7-4B6D-ACD8-C12175C67EFD",
      "preconditions": [
        {
          "id": 20,
          "preconditions": [
            {
              "id": 19,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_2__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER_1": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "92D313A7-3A3D-44EC-8A94-103CC0003A30",
      "preconditions": [
        {
          "id": 22,
          "preconditions": [
            {
              "id": 21,
              "reference": "DepressionUtilizationofthePHQ9Tool__Numerator_2__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENEX_1": {
      "conjunction?": true,
      "type": "DENEX",
      "hqmf_id": "7889D513-C24C-482F-8C9C-FC31F35E3999",
      "preconditions": [
        {
          "id": 24,
          "preconditions": [
            {
              "id": 23,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_Exclusion_2__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    },
    "STRAT_2": {
      "conjunction?": true,
      "type": "STRAT",
      "hqmf_id": "39B15197-7895-4AFC-B4AA-83DABFF66373",
      "preconditions": [
        {
          "id": 28,
          "preconditions": [
            {
              "id": 27,
              "reference": "DepressionUtilizationofthePHQ9Tool__Stratification_2_1__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "STRAT_3": {
      "conjunction?": true,
      "type": "STRAT",
      "hqmf_id": "0416AB91-F7FF-4432-A5D9-77B27F5AE30C",
      "preconditions": [
        {
          "id": 32,
          "preconditions": [
            {
              "id": 31,
              "reference": "DepressionUtilizationofthePHQ9Tool__Stratification_2_2__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "IPP_2": {
      "conjunction?": true,
      "type": "IPP",
      "hqmf_id": "750B4DDA-EC94-4082-9AB4-86824666D808",
      "preconditions": [
        {
          "id": 34,
          "preconditions": [
            {
              "id": 33,
              "reference": "DepressionUtilizationofthePHQ9Tool__Initial_Population_3__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM_2": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "2E3A7115-247D-4A0E-918C-AB581E13486A",
      "preconditions": [
        {
          "id": 36,
          "preconditions": [
            {
              "id": 35,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_3__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER_2": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "9FCE046B-5EF9-4A19-9D22-D3A6518EDA51",
      "preconditions": [
        {
          "id": 38,
          "preconditions": [
            {
              "id": 37,
              "reference": "DepressionUtilizationofthePHQ9Tool__Numerator_3__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENEX_2": {
      "conjunction?": true,
      "type": "DENEX",
      "hqmf_id": "DE1952F9-9E35-4493-BA65-3F6CD8904059",
      "preconditions": [
        {
          "id": 40,
          "preconditions": [
            {
              "id": 39,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_Exclusion_3__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    },
    "STRAT_4": {
      "conjunction?": true,
      "type": "STRAT",
      "hqmf_id": "1FD9CB54-2485-43C9-A9CB-041E6FE078F0",
      "preconditions": [
        {
          "id": 44,
          "preconditions": [
            {
              "id": 43,
              "reference": "DepressionUtilizationofthePHQ9Tool__Stratification_3_1__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "STRAT_5": {
      "conjunction?": true,
      "type": "STRAT",
      "hqmf_id": "B4B269AE-AE95-4FFF-AD3A-0C7F62DC0C72",
      "preconditions": [
        {
          "id": 48,
          "preconditions": [
            {
              "id": 47,
              "reference": "DepressionUtilizationofthePHQ9Tool__Stratification_3_2__3003D888_8AE9_466D_8CF7_221D8E0A24B8"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    }
  },
  "populations": [
    {
      "IPP": "IPP",
      "DENOM": "DENOM",
      "NUMER": "NUMER",
      "DENEX": "DENEX",
      "id": "PopulationCriteria1",
      "title": "Population 1 - Sept thru Dec"
    },
    {
      "IPP": "IPP_1",
      "DENOM": "DENOM_1",
      "NUMER": "NUMER_1",
      "DENEX": "DENEX_1",
      "id": "PopulationCriteria2",
      "title": "Population 2 - May thru Aug"
    },
    {
      "IPP": "IPP_2",
      "DENOM": "DENOM_2",
      "NUMER": "NUMER_2",
      "DENEX": "DENEX_2",
      "id": "PopulationCriteria3",
      "title": "Population 3 - Jan thru April"
    },
    {
      "IPP": "IPP",
      "DENOM": "DENOM",
      "NUMER": "NUMER",
      "DENEX": "DENEX",
      "id": "PopulationCriteria1 - Stratification 1",
      "title": "Population 1 Strata 1",
      "stratification": "13406420-1144-4100-9439-ED134656A4FC",
      "STRAT": "STRAT",
      "population_index": 0,
      "stratification_index": 0
    },
    {
      "IPP": "IPP",
      "DENOM": "DENOM",
      "NUMER": "NUMER",
      "DENEX": "DENEX",
      "id": "PopulationCriteria1 - Stratification 2",
      "title": "Population 1 Strata 2",
      "stratification": "DD7E5C35-6825-496B-A155-A4CBE9056535",
      "STRAT": "STRAT_1",
      "population_index": 0,
      "stratification_index": 1
    },
    {
      "IPP": "IPP_1",
      "DENOM": "DENOM_1",
      "NUMER": "NUMER_1",
      "DENEX": "DENEX_1",
      "id": "PopulationCriteria2 - Stratification 1",
      "title": "Population 2 Strata 1",
      "stratification": "39B15197-7895-4AFC-B4AA-83DABFF66373",
      "STRAT": "STRAT_2",
      "population_index": 1,
      "stratification_index": 0
    },
    {
      "IPP": "IPP_1",
      "DENOM": "DENOM_1",
      "NUMER": "NUMER_1",
      "DENEX": "DENEX_1",
      "id": "PopulationCriteria2 - Stratification 2",
      "title": "Population 2 Strata 2",
      "stratification": "0416AB91-F7FF-4432-A5D9-77B27F5AE30C",
      "STRAT": "STRAT_3",
      "population_index": 1,
      "stratification_index": 1
    },
    {
      "IPP": "IPP_2",
      "DENOM": "DENOM_2",
      "NUMER": "NUMER_2",
      "DENEX": "DENEX_2",
      "id": "PopulationCriteria3 - Stratification 1",
      "title": "Population 3 Strata 1",
      "stratification": "1FD9CB54-2485-43C9-A9CB-041E6FE078F0",
      "STRAT": "STRAT_4",
      "population_index": 2,
      "stratification_index": 0
    },
    {
      "IPP": "IPP_2",
      "DENOM": "DENOM_2",
      "NUMER": "NUMER_2",
      "DENEX": "DENEX_2",
      "id": "PopulationCriteria3 - Stratification 2",
      "title": "Population 3 Strata 2",
      "stratification": "B4B269AE-AE95-4FFF-AD3A-0C7F62DC0C72",
      "STRAT": "STRAT_5",
      "population_index": 2,
      "stratification_index": 1
    }
  ],
  "populations_cql_map": {
    "IPP": [
      "Initial Population 1",
      "Initial Population 2",
      "Initial Population 3"
    ],
    "DENOM": [
      "Denominator 1",
      "Denominator 2",
      "Denominator 3"
    ],
    "DENEX": [
      "Denominator Exclusion 1",
      "Denominator Exclusion 2",
      "Denominator Exclusion 3"
    ],
    "NUMER": [
      "Numerator 1",
      "Numerator 2",
      "Numerator 3"
    ],
    "STRAT": [
      "Stratification 1_1",
      "Stratification 1_2",
      "Stratification 2_1",
      "Stratification 2_2",
      "Stratification 3_1",
      "Stratification 3_2"
    ]
  },
  "publish_date": null,
  "published": null,
  "record_ids": [

  ],
  "source_data_criteria": {
    "Payer_PatientCharacteristicPayer_51c5eb3e_7f59_43f3_ac6e_a2d2a0562e4e_source": {
      "title": "Payer",
      "description": "Patient Characteristic Payer: Payer",
      "code_list_id": "2.16.840.1.114222.4.11.3591",
      "property": "payer",
      "type": "characteristic",
      "definition": "patient_characteristic_payer",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Payer_PatientCharacteristicPayer_51c5eb3e_7f59_43f3_ac6e_a2d2a0562e4e_source",
      "variable": false,
      "inline_code_list": {
        "Source of Payment Typology": [
          "1",
          "11",
          "111",
          "112",
          "113",
          "119",
          "12",
          "121",
          "122",
          "123",
          "129",
          "13",
          "14",
          "19",
          "191",
          "2",
          "21",
          "211",
          "212",
          "213",
          "219",
          "22",
          "23",
          "24",
          "25",
          "26",
          "29",
          "291",
          "299",
          "3",
          "31",
          "311",
          "3111",
          "3112",
          "3113",
          "3114",
          "3115",
          "3116",
          "3119",
          "312",
          "3121",
          "3122",
          "3123",
          "313",
          "32",
          "321",
          "3211",
          "3212",
          "32121",
          "32122",
          "32123",
          "32124",
          "32125",
          "32126",
          "32127",
          "32128",
          "322",
          "3221",
          "3222",
          "3223",
          "3229",
          "33",
          "331",
          "332",
          "333",
          "334",
          "34",
          "341",
          "342",
          "343",
          "349",
          "35",
          "36",
          "361",
          "362",
          "369",
          "37",
          "371",
          "3711",
          "3712",
          "3713",
          "372",
          "379",
          "38",
          "381",
          "3811",
          "3812",
          "3813",
          "3819",
          "382",
          "389",
          "39",
          "391",
          "4",
          "41",
          "42",
          "43",
          "44",
          "5",
          "51",
          "511",
          "512",
          "513",
          "514",
          "515",
          "516",
          "517",
          "519",
          "52",
          "521",
          "522",
          "523",
          "524",
          "529",
          "53",
          "54",
          "55",
          "56",
          "561",
          "562",
          "59",
          "6",
          "61",
          "611",
          "612",
          "613",
          "614",
          "619",
          "62",
          "621",
          "622",
          "623",
          "629",
          "7",
          "71",
          "72",
          "73",
          "79",
          "8",
          "81",
          "82",
          "821",
          "822",
          "823",
          "83",
          "84",
          "85",
          "89",
          "9",
          "91",
          "92",
          "93",
          "94",
          "95",
          "951",
          "953",
          "954",
          "959",
          "96",
          "97",
          "98",
          "99",
          "9999"
        ]
      }
    },
    "ONCAdministrativeSex_PatientCharacteristicSex_62630a16_6370_41b6_a1fe_bbf014f6076a_source": {
      "title": "ONCAdministrativeSex",
      "description": "Patient Characteristic Sex: ONCAdministrativeSex",
      "code_list_id": "2.16.840.1.113762.1.4.1",
      "property": "gender",
      "type": "characteristic",
      "definition": "patient_characteristic_gender",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "ONCAdministrativeSex_PatientCharacteristicSex_62630a16_6370_41b6_a1fe_bbf014f6076a_source",
      "variable": false,
      "value": {
        "type": "CD",
        "system": "Administrative Sex",
        "code": "F"
      }
    },
    "PersonalityDisorder_Diagnosis_02fbde96_d881_44a0_b315_59e4c3eeb158_source": {
      "title": "PersonalityDisorder",
      "description": "Diagnosis: PersonalityDisorder",
      "code_list_id": "2.16.840.1.113883.3.67.1.101.1.246",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "PersonalityDisorder_Diagnosis_02fbde96_d881_44a0_b315_59e4c3eeb158_source",
      "variable": false
    },
    "PalliativeCare_InterventionOrder_40280381_3d61_56a7_013e_8a3638283368_source": {
      "title": "PalliativeCare",
      "description": "Intervention, Order: PalliativeCare",
      "code_list_id": "2.16.840.1.113883.3.600.1.1579",
      "type": "interventions",
      "definition": "intervention",
      "status": "ordered",
      "hard_status": true,
      "negation": false,
      "source_data_criteria": "PalliativeCare_InterventionOrder_40280381_3d61_56a7_013e_8a3638283368_source",
      "variable": false
    },
    "CareServicesinLong_TermResidentialFacility_EncounterPerformed_40280381_3e93_d1af_013e_a8c4e64a4ad3_source": {
      "title": "CareServicesinLong-TermResidentialFacility",
      "description": "Encounter, Performed: CareServicesinLong-TermResidentialFacility",
      "code_list_id": "2.16.840.1.113883.3.464.1003.101.12.1014",
      "type": "encounters",
      "definition": "encounter",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "CareServicesinLong_TermResidentialFacility_EncounterPerformed_40280381_3e93_d1af_013e_a8c4e64a4ad3_source",
      "variable": false
    },
    "PervasiveDevelopmentalDisorder_Diagnosis_ed02a53c_7e29_47e7_9c4d_df4de6ef2e2f_source": {
      "title": "PervasiveDevelopmentalDisorder",
      "description": "Diagnosis: PervasiveDevelopmentalDisorder",
      "code_list_id": "2.16.840.1.113883.3.464.1003.105.12.1152",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "PervasiveDevelopmentalDisorder_Diagnosis_ed02a53c_7e29_47e7_9c4d_df4de6ef2e2f_source",
      "variable": false
    },
    "Dysthymia_Diagnosis_6193b77b_e502_40cd_8ff4_a51a269f141a_source": {
      "title": "Dysthymia",
      "description": "Diagnosis: Dysthymia",
      "code_list_id": "2.16.840.1.113883.3.67.1.101.1.254",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Dysthymia_Diagnosis_6193b77b_e502_40cd_8ff4_a51a269f141a_source",
      "variable": false
    },
    "Ethnicity_PatientCharacteristicEthnicity_246a82b4_2eaf_4b8e_ac36_ca036e1b97dd_source": {
      "title": "Ethnicity",
      "description": "Patient Characteristic Ethnicity: Ethnicity",
      "code_list_id": "2.16.840.1.114222.4.11.837",
      "property": "ethnicity",
      "type": "characteristic",
      "definition": "patient_characteristic_ethnicity",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Ethnicity_PatientCharacteristicEthnicity_246a82b4_2eaf_4b8e_ac36_ca036e1b97dd_source",
      "variable": false,
      "inline_code_list": {
        "CDC Race": [
          "2135-2",
          "2186-5"
        ]
      }
    },
    "BipolarDisorder_Diagnosis_89a1244b_f388_4261_949a_70b82971f63d_source": {
      "title": "BipolarDisorder",
      "description": "Diagnosis: BipolarDisorder",
      "code_list_id": "2.16.840.1.113883.3.67.1.101.1.128",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "BipolarDisorder_Diagnosis_89a1244b_f388_4261_949a_70b82971f63d_source",
      "variable": false
    },
    "ContactorOfficeVisit_EncounterPerformed_10738510_f38d_45d2_ba1b_c6705db1da37_source": {
      "title": "ContactorOfficeVisit",
      "description": "Encounter, Performed: ContactorOfficeVisit",
      "code_list_id": "2.16.840.1.113762.1.4.1080.5",
      "type": "encounters",
      "definition": "encounter",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "ContactorOfficeVisit_EncounterPerformed_10738510_f38d_45d2_ba1b_c6705db1da37_source",
      "variable": false
    },
    "Race_PatientCharacteristicRace_18b082b8_69da_4b5a_ab71_943a6f8f64e5_source": {
      "title": "Race",
      "description": "Patient Characteristic Race: Race",
      "code_list_id": "2.16.840.1.114222.4.11.836",
      "property": "race",
      "type": "characteristic",
      "definition": "patient_characteristic_race",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Race_PatientCharacteristicRace_18b082b8_69da_4b5a_ab71_943a6f8f64e5_source",
      "variable": false,
      "inline_code_list": {
        "CDC Race": [
          "1002-5",
          "2028-9",
          "2054-5",
          "2076-8",
          "2106-3",
          "2131-1"
        ]
      }
    },
    "SchizophreniaorPsychoticDisorder_Diagnosis_1c90cdb3_3fe2_4c3d_913b_21991327a8fd_source": {
      "title": "SchizophreniaorPsychoticDisorder",
      "description": "Diagnosis: SchizophreniaorPsychoticDisorder",
      "code_list_id": "2.16.840.1.113883.3.464.1003.105.12.1104",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "SchizophreniaorPsychoticDisorder_Diagnosis_1c90cdb3_3fe2_4c3d_913b_21991327a8fd_source",
      "variable": false
    },
    "Palliativecareencounter_EncounterPerformed_c69c8f5b_5312_470b_bf8b_b43ee052e0d4_source": {
      "title": "Palliativecareencounter",
      "description": "Encounter, Performed: Palliativecareencounter",
      "code_list_id": "2.16.840.1.113883.3.600.1.1575",
      "type": "encounters",
      "definition": "encounter",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "Palliativecareencounter_EncounterPerformed_c69c8f5b_5312_470b_bf8b_b43ee052e0d4_source",
      "variable": false
    },
    "MajorDepressionIncludingRemission_Diagnosis_aa4805f4_54e9_4e60_9bbf_b316aeaa95ba_source": {
      "title": "MajorDepressionIncludingRemission",
      "description": "Diagnosis: MajorDepressionIncludingRemission",
      "code_list_id": "2.16.840.113883.3.67.1.101.3.2444",
      "type": "conditions",
      "definition": "diagnosis",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "MajorDepressionIncludingRemission_Diagnosis_aa4805f4_54e9_4e60_9bbf_b316aeaa95ba_source",
      "variable": false
    },
    "prefix_44261_6_AssessmentPerformed_659C4D87_AD09_477D_8252_CBCC5238ACA1_source": {
      "title": "Assessment, Performed: Assessment, Performed",
      "description": "Assessment, Performed: Assessment, Performed",
      "type": "assessments",
      "definition": "assessment",
      "status": "performed",
      "hard_status": false,
      "negation": false,
      "source_data_criteria": "prefix_44261_6_AssessmentPerformed_659C4D87_AD09_477D_8252_CBCC5238ACA1_source",
      "variable": false,
      "inline_code_list": {
        "LOINC": [
          "44261-6"
        ]
      },
      "code_list_id": "drc-da9071720e893683cdde0cc3aaa1bc49e05e169bdeda96800c723f8563830965"
    }
  },
  "title": "Depression Utilization of the PHQ-9 Tool",
  "type": "ep",
  "updated_at": "2018-03-26T18:55:42.571Z",
  "user_id": "582c709a6c5d1c1cf10006a9",
  "value_set_oid_version_objects": [
    {
      "oid": "2.16.840.1.113762.1.4.1",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.114222.4.11.836",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.114222.4.11.837",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.114222.4.11.3591",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113883.3.67.1.101.1.128",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113883.3.464.1003.101.12.1014",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113883.3.67.1.101.1.254",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.113883.3.67.1.101.3.2444",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113883.3.600.1.1579",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113883.3.67.1.101.1.246",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113883.3.600.1.1575",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113762.1.4.1080.5",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113883.3.464.1003.105.12.1152",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113883.3.464.1003.105.12.1104",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113883.3.117.1.7.1.292",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113883.3.666.5.307",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "2.16.840.1.113762.1.4.1110.23",
      "version": "Draft-A4B9763C-847E-4E02-BB7E-ACC596E90E2C"
    },
    {
      "oid": "drc-da9071720e893683cdde0cc3aaa1bc49e05e169bdeda96800c723f8563830965",
      "version": ""
    },
    {
      "oid": "drc-5e3dd7a2b908c12dc1dd525dd16ae9b969b86825d92d4b58d101ef476d44510b",
      "version": ""
    },
    {
      "oid": "drc-288b28533ea3e20c8bed70cf4e0a8d78afa536cf3be01339e67e189ef32d0b58",
      "version": ""
    }
  ],
  "value_set_oids": [
    "2.16.840.1.113762.1.4.1",
    "2.16.840.1.114222.4.11.836",
    "2.16.840.1.114222.4.11.837",
    "2.16.840.1.114222.4.11.3591",
    "2.16.840.1.113883.3.67.1.101.1.128",
    "2.16.840.1.113883.3.464.1003.101.12.1014",
    "2.16.840.1.113883.3.67.1.101.1.254",
    "2.16.840.113883.3.67.1.101.3.2444",
    "2.16.840.1.113883.3.600.1.1579",
    "2.16.840.1.113883.3.67.1.101.1.246",
    "2.16.840.1.113883.3.600.1.1575",
    "2.16.840.1.113762.1.4.1080.5",
    "2.16.840.1.113883.3.464.1003.105.12.1152",
    "2.16.840.1.113883.3.464.1003.105.12.1104",
    "2.16.840.1.113883.3.117.1.7.1.292",
    "2.16.840.1.113883.3.666.5.307",
    "2.16.840.1.113762.1.4.1110.23",
    "drc-da9071720e893683cdde0cc3aaa1bc49e05e169bdeda96800c723f8563830965",
    "drc-5e3dd7a2b908c12dc1dd525dd16ae9b969b86825d92d4b58d101ef476d44510b",
    "drc-288b28533ea3e20c8bed70cf4e0a8d78afa536cf3be01339e67e189ef32d0b58"
  ],
  "version": null
}